From 1126f04e99f5df070353c63439645b2cb15850a3 Mon Sep 17 00:00:00 2001 From: Juergen Beisert Date: Tue, 21 Dec 2010 12:48:26 +0100 Subject: x86: Use the generic linker script initializing Signed-off-by: Juergen Beisert --- arch/x86/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'arch/x86/Makefile') 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)/ -- cgit v1.2.3