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:
Joel Sherrill
2015-07-16 08:40:05 -07:00
parent 93f5adb644
commit 9cff822a26
71 changed files with 142 additions and 142 deletions

View File

@@ -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>

View File

@@ -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>