summaryrefslogtreecommitdiffstats
path: root/arch/x86/Makefile
diff options
context:
space:
mode:
authorJuergen Beisert <jbe@pengutronix.de>2010-12-21 12:48:26 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2011-03-10 11:14:47 +0100
commit1126f04e99f5df070353c63439645b2cb15850a3 (patch)
treee52de3e501081e2879df155b4aa892f6db2af3c8 /arch/x86/Makefile
parent6ef848c1f76f0549b7820aa78b847a9b80425d06 (diff)
downloadbarebox-1126f04e99f5df070353c63439645b2cb15850a3.tar.gz
barebox-1126f04e99f5df070353c63439645b2cb15850a3.tar.xz
x86: Use the generic linker script initializing
Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Diffstat (limited to 'arch/x86/Makefile')
-rw-r--r--arch/x86/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/x86/Makefile b/arch/x86/Makefile
index e607b893a2..3b034c0516 100644
--- a/arch/x86/Makefile
+++ b/arch/x86/Makefile
@@ -19,7 +19,13 @@ all: $(KBUILD_IMAGE)
+machdirs := $(patsubst %,arch/x86/mach-%/,$(machine-y))
+ifeq ($(KBUILD_SRC),)
+CPPFLAGS += $(patsubst %,-I%include,$(machdirs))
+else
+CPPFLAGS += $(patsubst %,-I$(srctree)/%include,$(machdirs))
+endif
ifneq ($(board-y),)
BOARD := arch/x86/boards/$(board-y)/