diff mbox

[U-Boot,v3,19/19] ARM: prepare for including <mach/*.h>

Message ID 1424419459-3498-20-git-send-email-yamada.m@jp.panasonic.com
State Accepted
Delegated to: Tom Rini
Headers show

Commit Message

Masahiro Yamada Feb. 20, 2015, 8:04 a.m. UTC
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>
---

Changes in v3: None

 arch/arm/Makefile | 2 ++
 1 file changed, 2 insertions(+)

Comments

Tom Rini Feb. 22, 2015, 2:57 a.m. UTC | #1
On Fri, Feb 20, 2015 at 05:04:19PM +0900, Masahiro Yamada wrote:

> 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>

Applied to u-boot/master, thanks!
diff mbox

Patch

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