diff options
-rw-r--r-- | arch/alpha/boot/Makefile | 2 | ||||
-rw-r--r-- | arch/powerpc/boot/Makefile | 2 | ||||
-rw-r--r-- | arch/powerpc/kvm/Makefile | 2 | ||||
-rw-r--r-- | arch/s390/boot/compressed/Makefile | 4 | ||||
-rw-r--r-- | arch/um/Makefile | 4 | ||||
-rw-r--r-- | arch/x86/boot/Makefile | 2 | ||||
-rw-r--r-- | arch/x86/realmode/rm/Makefile | 2 |
7 files changed, 9 insertions, 9 deletions
diff --git a/arch/alpha/boot/Makefile b/arch/alpha/boot/Makefile index 8399bd0e68e8..0cbe4c59d3ce 100644 --- a/arch/alpha/boot/Makefile +++ b/arch/alpha/boot/Makefile | |||
@@ -15,7 +15,7 @@ targets := vmlinux.gz vmlinux \ | |||
15 | OBJSTRIP := $(obj)/tools/objstrip | 15 | OBJSTRIP := $(obj)/tools/objstrip |
16 | 16 | ||
17 | HOSTCFLAGS := -Wall -I$(objtree)/usr/include | 17 | HOSTCFLAGS := -Wall -I$(objtree)/usr/include |
18 | BOOTCFLAGS += -I$(obj) -I$(srctree)/$(obj) | 18 | BOOTCFLAGS += -I$(objtree)/$(obj) -I$(srctree)/$(obj) |
19 | 19 | ||
20 | # SRM bootable image. Copy to offset 512 of a partition. | 20 | # SRM bootable image. Copy to offset 512 of a partition. |
21 | $(obj)/bootimage: $(addprefix $(obj)/tools/,mkbb lxboot bootlx) $(obj)/vmlinux.nh | 21 | $(obj)/bootimage: $(addprefix $(obj)/tools/,mkbb lxboot bootlx) $(obj)/vmlinux.nh |
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) \ |
diff --git a/arch/s390/boot/compressed/Makefile b/arch/s390/boot/compressed/Makefile index 1dd210347e12..2657a29a2026 100644 --- a/arch/s390/boot/compressed/Makefile +++ b/arch/s390/boot/compressed/Makefile | |||
@@ -31,10 +31,10 @@ quiet_cmd_sizes = GEN $@ | |||
31 | $(obj)/sizes.h: vmlinux | 31 | $(obj)/sizes.h: vmlinux |
32 | $(call if_changed,sizes) | 32 | $(call if_changed,sizes) |
33 | 33 | ||
34 | AFLAGS_head.o += -I$(obj) | 34 | AFLAGS_head.o += -I$(objtree)/$(obj) |
35 | $(obj)/head.o: $(obj)/sizes.h | 35 | $(obj)/head.o: $(obj)/sizes.h |
36 | 36 | ||
37 | CFLAGS_misc.o += -I$(obj) | 37 | CFLAGS_misc.o += -I$(objtree)/$(obj) |
38 | $(obj)/misc.o: $(obj)/sizes.h | 38 | $(obj)/misc.o: $(obj)/sizes.h |
39 | 39 | ||
40 | OBJCOPYFLAGS_vmlinux.bin := -R .comment -S | 40 | OBJCOPYFLAGS_vmlinux.bin := -R .comment -S |
diff --git a/arch/um/Makefile b/arch/um/Makefile index e3abe6f3156d..0ca46ededfc7 100644 --- a/arch/um/Makefile +++ b/arch/um/Makefile | |||
@@ -78,8 +78,8 @@ include $(ARCH_DIR)/Makefile-os-$(OS) | |||
78 | 78 | ||
79 | KBUILD_CPPFLAGS += -I$(srctree)/$(HOST_DIR)/include \ | 79 | KBUILD_CPPFLAGS += -I$(srctree)/$(HOST_DIR)/include \ |
80 | -I$(srctree)/$(HOST_DIR)/include/uapi \ | 80 | -I$(srctree)/$(HOST_DIR)/include/uapi \ |
81 | -I$(HOST_DIR)/include/generated \ | 81 | -I$(objtree)/$(HOST_DIR)/include/generated \ |
82 | -I$(HOST_DIR)/include/generated/uapi | 82 | -I$(objtree)/$(HOST_DIR)/include/generated/uapi |
83 | 83 | ||
84 | # -Derrno=kernel_errno - This turns all kernel references to errno into | 84 | # -Derrno=kernel_errno - This turns all kernel references to errno into |
85 | # kernel_errno to separate them from the libc errno. This allows -fno-common | 85 | # kernel_errno to separate them from the libc errno. This allows -fno-common |
diff --git a/arch/x86/boot/Makefile b/arch/x86/boot/Makefile index 700a9c6e6159..f3784c35fda2 100644 --- a/arch/x86/boot/Makefile +++ b/arch/x86/boot/Makefile | |||
@@ -96,7 +96,7 @@ $(obj)/zoffset.h: $(obj)/compressed/vmlinux FORCE | |||
96 | $(call if_changed,zoffset) | 96 | $(call if_changed,zoffset) |
97 | 97 | ||
98 | 98 | ||
99 | AFLAGS_header.o += -I$(obj) | 99 | AFLAGS_header.o += -I$(objtree)/$(obj) |
100 | $(obj)/header.o: $(obj)/zoffset.h | 100 | $(obj)/header.o: $(obj)/zoffset.h |
101 | 101 | ||
102 | LDFLAGS_setup.elf := -T | 102 | LDFLAGS_setup.elf := -T |
diff --git a/arch/x86/realmode/rm/Makefile b/arch/x86/realmode/rm/Makefile index c556c5ae8de5..25012abc3409 100644 --- a/arch/x86/realmode/rm/Makefile +++ b/arch/x86/realmode/rm/Makefile | |||
@@ -48,7 +48,7 @@ targets += realmode.lds | |||
48 | $(obj)/realmode.lds: $(obj)/pasyms.h | 48 | $(obj)/realmode.lds: $(obj)/pasyms.h |
49 | 49 | ||
50 | LDFLAGS_realmode.elf := --emit-relocs -T | 50 | LDFLAGS_realmode.elf := --emit-relocs -T |
51 | CPPFLAGS_realmode.lds += -P -C -I$(obj) | 51 | CPPFLAGS_realmode.lds += -P -C -I$(objtree)/$(obj) |
52 | 52 | ||
53 | targets += realmode.elf | 53 | targets += realmode.elf |
54 | $(obj)/realmode.elf: $(obj)/realmode.lds $(REALMODE_OBJS) FORCE | 54 | $(obj)/realmode.elf: $(obj)/realmode.lds $(REALMODE_OBJS) FORCE |