@@ -28,7 +28,7 @@
#include <miiphy.h>
#include <cpsw.h>
#include <watchdog.h>
-#include "../common/factoryset.h"
+#include <board-common/factoryset.h>
DECLARE_GLOBAL_DATA_PTR;
@@ -17,7 +17,7 @@
#include <net.h>
#include <errno.h>
#include <g_dnl.h>
-#include "factoryset.h"
+#include <board-common/factoryset.h>
#define EEPR_PG_SZ 0x80
#define EEPROM_FATORYSET_OFFSET 0x400
similarity index 100%
rename from board/siemens/common/factoryset.h
rename to board/siemens/common/include/board-common/factoryset.h
@@ -32,7 +32,7 @@
#include <cpsw.h>
#include <watchdog.h>
#include "board.h"
-#include "../common/factoryset.h"
+#include <board-common/factoryset.h>
DECLARE_GLOBAL_DATA_PTR;
@@ -33,7 +33,7 @@
#include <cpsw.h>
#include <watchdog.h>
#include "board.h"
-#include "../common/factoryset.h"
+#include <board-common/factoryset.h>
#include "pmic.h"
#include <nand.h>
#include <bmp_layout.h>
@@ -32,7 +32,7 @@
#include <video.h>
#include <watchdog.h>
#include "board.h"
-#include "../common/factoryset.h"
+#include <board-common/factoryset.h>
#include "../../../drivers/video/da8xx-fb.h"
DECLARE_GLOBAL_DATA_PTR;
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\"/<board-common\/$hbase>/g" $vendor/*/*.[chS] sed -i -e "s/\"$hbase\"/<board-common\/$hbase>/g" $vendor/common/*.[chS] done Cc: Paul Kocialkowski <contact@paulk.fr> Cc: Joe Hershberger <joe.hershberger@ni.com> Cc: Simon Glass <sjg@chromium.org> Cc: Samuel Egli <samuel.egli@siemens.com> Cc: Heiko Schocher <hs@denx.de> Cc: Roger Meier <r.meier@siemens.com> Signed-off-by: Nishanth Menon <nm@ti.com> --- 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%) -- 2.6.2.402.g2635c2b _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot