forked from Imagelibrary/rtems
Most bsp.h: Switch to LIBBSP_@CPU@_@BSP_FAMILY@_H for guard
This was done by the following script run from libbsp:
find * -name bsp.h | xargs -e grep -l "#ifndef.*_BSP_H" | while read b
do
echo $b
cpu=`echo $b | cut -d'/' -f1 | tr '[:lower:]' '[:upper:]' `
bsp=`echo $b | cut -d'/' -f2 | tr '[:lower:]' '[:upper:]' `
g="LIBBSP_${cpu}_${bsp}_BSP_H"
# echo $g
sed -e "s/ifndef _BSP_H/ifndef ${g}/" \
-e "s/define _BSP_H/define ${g}/" \
-i $b
done
This commit is contained in:
@@ -18,8 +18,8 @@
|
||||
* Micro-Research Finland Oy
|
||||
*/
|
||||
|
||||
#ifndef _BSP_H
|
||||
#define _BSP_H
|
||||
#ifndef LIBBSP_LM32_LM32_EVR_BSP_H
|
||||
#define LIBBSP_LM32_LM32_EVR_BSP_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <bspopts.h>
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
* COPYRIGHT (c) 2011 Sebastien Bourdeauducq
|
||||
*/
|
||||
|
||||
#ifndef _BSP_H
|
||||
#define _BSP_H
|
||||
#ifndef LIBBSP_LM32_MILKYMIST_BSP_H
|
||||
#define LIBBSP_LM32_MILKYMIST_BSP_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <bspopts.h>
|
||||
|
||||
Reference in New Issue
Block a user