
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/seco 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"/<board-common/$hbase>/g" $vendor/*/*.[chS] sed -i -e "s/"$hbase"/<board-common/$hbase>/g" $vendor/common/*.[chS] done
Cc: Boris Brezillon boris.brezillon@free-electrons.com
Signed-off-by: Nishanth Menon nm@ti.com --- board/seco/common/{ => include/board-common}/mx6.h | 0 board/seco/mx6quq7/mx6quq7.c | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename board/seco/common/{ => include/board-common}/mx6.h (100%)
diff --git a/board/seco/common/mx6.h b/board/seco/common/include/board-common/mx6.h similarity index 100% rename from board/seco/common/mx6.h rename to board/seco/common/include/board-common/mx6.h diff --git a/board/seco/mx6quq7/mx6quq7.c b/board/seco/mx6quq7/mx6quq7.c index ea1d4b8e4972..fd8104c29398 100644 --- a/board/seco/mx6quq7/mx6quq7.c +++ b/board/seco/mx6quq7/mx6quq7.c @@ -31,7 +31,7 @@ #include <asm/imx-common/mxc_i2c.h> #include <i2c.h>
-#include "../common/mx6.h" +#include <board-common/mx6.h>
DECLARE_GLOBAL_DATA_PTR;