@@ -8,7 +8,7 @@
#include <common.h>
#include <command.h>
#include <video_fb.h>
-#include "common_util.h"
+#include <board-common/common_util.h>
#include <asm/processor.h>
#include <asm/byteorder.h>
#include <i2c.h>
similarity index 100%
rename from board/mpl/common/common_util.h
rename to board/mpl/common/include/board-common/common_util.h
similarity index 100%
rename from board/mpl/common/isa.h
rename to board/mpl/common/include/board-common/isa.h
@@ -10,7 +10,7 @@
#include <common.h>
#include <asm/processor.h>
#include <stdio_dev.h>
-#include "isa.h"
+#include <board-common/isa.h>
#include "piix4_pci.h"
#include "kbd.h"
#include "video.h"
@@ -10,7 +10,7 @@
#include <common.h>
#include <asm/processor.h>
#include <stdio_dev.h>
-#include "isa.h"
+#include <board-common/isa.h>
#include "kbd.h"
@@ -10,7 +10,7 @@
#include <common.h>
#include <pci.h>
-#include "isa.h"
+#include <board-common/isa.h>
#ifdef CONFIG_405GP
#ifdef CONFIG_PCI
@@ -10,7 +10,7 @@
#include <common.h>
#include <command.h>
#include "mip405.h"
-#include "../common/common_util.h"
+#include <board-common/common_util.h>
extern void print_mip405_info(void);
@@ -51,7 +51,7 @@
#include <asm/ppc4xx.h>
#include <asm/ppc4xx-i2c.h>
#include <miiphy.h>
-#include "../common/common_util.h"
+#include <board-common/common_util.h>
#include <stdio_dev.h>
#include <i2c.h>
#include <rtc.h>
@@ -10,7 +10,7 @@
#include <common.h>
#include <command.h>
#include "pip405.h"
-#include "../common/common_util.h"
+#include <board-common/common_util.h>
extern void print_pip405_info(void);
@@ -12,8 +12,8 @@
#include <asm/processor.h>
#include <i2c.h>
#include <stdio_dev.h>
-#include "../common/isa.h"
-#include "../common/common_util.h"
+#include <board-common/isa.h>
+#include <board-common/common_util.h>
DECLARE_GLOBAL_DATA_PTR;
@@ -12,7 +12,7 @@
#include <command.h>
#include <net.h>
#include "vcma9.h"
-#include "../common/common_util.h"
+#include <board-common/common_util.h>
#if defined(CONFIG_CS8900)
#include <../drivers/net/cs8900.h>
@@ -16,7 +16,7 @@
#include <asm/arch/s3c24x0_cpu.h>
#include "vcma9.h"
-#include "../common/common_util.h"
+#include <board-common/common_util.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/mpl 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: Bin Meng <bmeng.cn@gmail.com> Cc: "David Müller" <d.mueller@elsoft.ch> Cc: Denis Peter <d.peter@mpl.ch> Signed-off-by: Nishanth Menon <nm@ti.com> --- board/mpl/common/common_util.c | 2 +- board/mpl/common/{ => include/board-common}/common_util.h | 0 board/mpl/common/{ => include/board-common}/isa.h | 0 board/mpl/common/isa.c | 2 +- board/mpl/common/kbd.c | 2 +- board/mpl/common/pci.c | 2 +- board/mpl/mip405/cmd_mip405.c | 2 +- board/mpl/mip405/mip405.c | 2 +- board/mpl/pip405/cmd_pip405.c | 2 +- board/mpl/pip405/pip405.c | 4 ++-- board/mpl/vcma9/cmd_vcma9.c | 2 +- board/mpl/vcma9/vcma9.c | 2 +- 12 files changed, 11 insertions(+), 11 deletions(-) rename board/mpl/common/{ => include/board-common}/common_util.h (100%) rename board/mpl/common/{ => include/board-common}/isa.h (100%)