diff options
author | Arnd Bergmann <arnd@arndb.de> | 2016-06-15 11:45:46 -0400 |
---|---|---|
committer | Michal Marek <mmarek@suse.com> | 2016-07-18 15:31:35 -0400 |
commit | 58ab5e0c2c40ec48e682179e8f2e4cda2ece201b (patch) | |
tree | e3346feaefd272946190306b96da8215b74b50c0 /arch/powerpc | |
parent | 3308b28569ba3327419658edd194a967e3fd51e2 (diff) |
Kbuild: arch: look for generated headers in obtree
There are very few files that need add an -I$(obj) gcc for the preprocessor
or the assembler. For C files, we add always these for both the objtree and
srctree, but for the other ones we require the Makefile to add them, and
Kbuild then adds it for both trees.
As a preparation for changing the meaning of the -I$(obj) directive to
only refer to the srctree, this changes the two instances in arch/x86 to use
an explictit $(objtree) prefix where needed, otherwise we won't find the
headers any more, as reported by the kbuild 0day builder.
arch/x86/realmode/rm/realmode.lds.S:75:20: fatal error: pasyms.h: No such file or directory
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Michal Marek <mmarek@suse.com>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/boot/Makefile | 2 | ||||
-rw-r--r-- | arch/powerpc/kvm/Makefile | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile index 8fe78a3efc92..ad3782610cf1 100644 --- a/arch/powerpc/boot/Makefile +++ b/arch/powerpc/boot/Makefile | |||
@@ -43,7 +43,7 @@ ifeq ($(call cc-option-yn, -fstack-protector),y) | |||
43 | BOOTCFLAGS += -fno-stack-protector | 43 | BOOTCFLAGS += -fno-stack-protector |
44 | endif | 44 | endif |
45 | 45 | ||
46 | BOOTCFLAGS += -I$(obj) -I$(srctree)/$(obj) | 46 | BOOTCFLAGS += -I$(objtree)/$(obj) -I$(srctree)/$(obj) |
47 | 47 | ||
48 | DTC_FLAGS ?= -p 1024 | 48 | DTC_FLAGS ?= -p 1024 |
49 | 49 | ||
diff --git a/arch/powerpc/kvm/Makefile b/arch/powerpc/kvm/Makefile index eba0bea6e032..1f9e5529e692 100644 --- a/arch/powerpc/kvm/Makefile +++ b/arch/powerpc/kvm/Makefile | |||
@@ -20,7 +20,7 @@ common-objs-y += powerpc.o emulate.o emulate_loadstore.o | |||
20 | obj-$(CONFIG_KVM_EXIT_TIMING) += timing.o | 20 | obj-$(CONFIG_KVM_EXIT_TIMING) += timing.o |
21 | obj-$(CONFIG_KVM_BOOK3S_HANDLER) += book3s_exports.o | 21 | obj-$(CONFIG_KVM_BOOK3S_HANDLER) += book3s_exports.o |
22 | 22 | ||
23 | AFLAGS_booke_interrupts.o := -I$(obj) | 23 | AFLAGS_booke_interrupts.o := -I$(objtree)/$(obj) |
24 | 24 | ||
25 | kvm-e500-objs := \ | 25 | kvm-e500-objs := \ |
26 | $(common-objs-y) \ | 26 | $(common-objs-y) \ |