diff options
Diffstat (limited to 'arch/x86/Makefile')
-rw-r--r-- | arch/x86/Makefile | 6 |
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)/ |