From: Nishanth Menon Date: Thu, 12 Nov 2015 23:43:42 -0600 Subject: [U-Boot] [PATCH V2 12/12] board: xes: Move common headers to board-common directory In-Reply-To: <1447393422-4169-1-git-send-email-nm@ti.com> References: <1447393422-4169-1-git-send-email-nm@ti.com> Message-ID: <1447393422-4169-13-git-send-email-nm@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Header files can be located in a generic location without needing to reference them with ../common/ Generated with the following script #!/bin/bash vendor=board/xes common=$vendor/common cfiles=`git grep "../common" $vendor|grep "#include"|cut -d '"' -f2|sort -u|grep c$` headers=`git grep "../common" $vendor|grep "#include"|cut -d '"' -f2|sort -u|grep h$` mkdir -p $common/include/board-common set -x for header in $headers do echo "processing $header in $common" hbase=`basename $header` git mv $common/$hbase $common/include/board-common sed -i -e "s/\"..\/common\/$hbase\"//g" $vendor/*/*.[chS] sed -i -e "s/\"$hbase\"//g" $vendor/common/*.[chS] done Cc: Peter Tyser Signed-off-by: Nishanth Menon --- board/xes/common/board.c | 2 +- board/xes/common/{ => include/board-common}/fsl_8xxx_misc.h | 0 board/xes/xpedite517x/xpedite517x.c | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename board/xes/common/{ => include/board-common}/fsl_8xxx_misc.h (100%) diff --git a/board/xes/common/board.c b/board/xes/common/board.c index 4ed6f50e5cf8..ca156e60bec0 100644 --- a/board/xes/common/board.c +++ b/board/xes/common/board.c @@ -5,7 +5,7 @@ */ #include -#include "fsl_8xxx_misc.h" +#include int checkboard(void) { diff --git a/board/xes/common/fsl_8xxx_misc.h b/board/xes/common/include/board-common/fsl_8xxx_misc.h similarity index 100% rename from board/xes/common/fsl_8xxx_misc.h rename to board/xes/common/include/board-common/fsl_8xxx_misc.h diff --git a/board/xes/xpedite517x/xpedite517x.c b/board/xes/xpedite517x/xpedite517x.c index 0028870db077..38c25ccf46b9 100644 --- a/board/xes/xpedite517x/xpedite517x.c +++ b/board/xes/xpedite517x/xpedite517x.c @@ -11,7 +11,7 @@ #include #include #include -#include "../common/fsl_8xxx_misc.h" +#include #if defined(CONFIG_OF_BOARD_SETUP) && defined(CONFIG_PCI) extern void ft_board_pci_setup(void *blob, bd_t *bd); -- 2.6.2.402.g2635c2b