From: Nishanth Menon Date: Thu, 12 Nov 2015 23:43:40 -0600 Subject: [U-Boot] [PATCH V2 10/12] board: siemens: 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-11-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/siemens 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: Paul Kocialkowski Cc: Joe Hershberger Cc: Simon Glass Cc: Samuel Egli Cc: Heiko Schocher Cc: Roger Meier Signed-off-by: Nishanth Menon --- board/siemens/common/board.c | 2 +- board/siemens/common/factoryset.c | 2 +- board/siemens/common/{ => include/board-common}/factoryset.h | 0 board/siemens/draco/board.c | 2 +- board/siemens/pxm2/board.c | 2 +- board/siemens/rut/board.c | 2 +- 6 files changed, 5 insertions(+), 5 deletions(-) rename board/siemens/common/{ => include/board-common}/factoryset.h (100%) diff --git a/board/siemens/common/board.c b/board/siemens/common/board.c index c127f6ca271d..00f4e355720a 100644 --- a/board/siemens/common/board.c +++ b/board/siemens/common/board.c @@ -28,7 +28,7 @@ #include #include #include -#include "../common/factoryset.h" +#include DECLARE_GLOBAL_DATA_PTR; diff --git a/board/siemens/common/factoryset.c b/board/siemens/common/factoryset.c index 6c869ed2b035..827e2a17eb8f 100644 --- a/board/siemens/common/factoryset.c +++ b/board/siemens/common/factoryset.c @@ -17,7 +17,7 @@ #include #include #include -#include "factoryset.h" +#include #define EEPR_PG_SZ 0x80 #define EEPROM_FATORYSET_OFFSET 0x400 diff --git a/board/siemens/common/factoryset.h b/board/siemens/common/include/board-common/factoryset.h similarity index 100% rename from board/siemens/common/factoryset.h rename to board/siemens/common/include/board-common/factoryset.h diff --git a/board/siemens/draco/board.c b/board/siemens/draco/board.c index 48823141daa3..05b10a93a342 100644 --- a/board/siemens/draco/board.c +++ b/board/siemens/draco/board.c @@ -32,7 +32,7 @@ #include #include #include "board.h" -#include "../common/factoryset.h" +#include DECLARE_GLOBAL_DATA_PTR; diff --git a/board/siemens/pxm2/board.c b/board/siemens/pxm2/board.c index 750f33889742..9998a3f52bf4 100644 --- a/board/siemens/pxm2/board.c +++ b/board/siemens/pxm2/board.c @@ -33,7 +33,7 @@ #include #include #include "board.h" -#include "../common/factoryset.h" +#include #include "pmic.h" #include #include diff --git a/board/siemens/rut/board.c b/board/siemens/rut/board.c index f94e3e5736f3..cafcfbd3358f 100644 --- a/board/siemens/rut/board.c +++ b/board/siemens/rut/board.c @@ -32,7 +32,7 @@ #include #include #include "board.h" -#include "../common/factoryset.h" +#include #include "../../../drivers/video/da8xx-fb.h" DECLARE_GLOBAL_DATA_PTR; -- 2.6.2.402.g2635c2b