]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
ARM: prepare for including <mach/*.h>
authorMasahiro Yamada <yamada.m@jp.panasonic.com>
Fri, 20 Feb 2015 08:04:19 +0000 (17:04 +0900)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 1 Sep 2015 11:53:55 +0000 (13:53 +0200)
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>
arch/arm/Makefile

index bf1d111031afbbfec1d3dae2bf5ba09674c096a4..cd2fa5efed580e1cfe805caeaa244ec601d4b6da 100644 (file)
@@ -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