summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.m@jp.panasonic.com>2015-02-20 17:04:19 +0900
committerTom Rini <trini@ti.com>2015-02-21 08:23:52 -0500
commit30ebf88f44917abf070ab899111cd2684000e204 (patch)
treeec21778cb44f4003991834913b4ddc7d922f4459
parentdc7de222aa82cc962f15b5d04e1e4c6b0ab62398 (diff)
downloadu-boot-imx-30ebf88f44917abf070ab899111cd2684000e204.zip
u-boot-imx-30ebf88f44917abf070ab899111cd2684000e204.tar.gz
u-boot-imx-30ebf88f44917abf070ab899111cd2684000e204.tar.bz2
ARM: prepare for including <mach/*.h>
This commit adds $(srctree)/arch/arm/$(machdirs)/include/mach to the headers search path. It allows us to replace "#include <asm/arch/foo.h>" with "#include <mach/foo.h>". As "#include <asm/arch/foo.h>" is still supported, we can modify each file one by one. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
-rw-r--r--arch/arm/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/Makefile b/arch/arm/Makefile
index 678ac13..878ae26 100644
--- a/arch/arm/Makefile
+++ b/arch/arm/Makefile
@@ -19,6 +19,8 @@ machine-$(CONFIG_ARCH_VERSATILE) += versatile
machdirs := $(patsubst %,arch/arm/mach-%/,$(machine-y))
+PLATFORM_CPPFLAGS += $(patsubst %,-I$(srctree)/%include,$(machdirs))
+
libs-y += $(machdirs)
head-y := arch/arm/cpu/$(CPU)/start.o