diff options
author | Josh Triplett <josh@joshtriplett.org> | 2014-03-10 16:03:10 -0400 |
---|---|---|
committer | Josh Triplett <josh@joshtriplett.org> | 2014-08-17 17:58:24 -0400 |
commit | 9a1cb47112eff140659f04c261ca19fb1f002607 (patch) | |
tree | e1bb40a664961b1ebb46062e43a418dcf956f342 /arch/x86/boot/compressed | |
parent | 7d1311b93e58ed55f3a31cc8f94c4b8fe988a2b9 (diff) |
x86, boot: Use the usual -y -n mechanism for objects in vmlinux
Switch VMLINUX_OBJS to vmlinux-objs-y, to eliminate Makefile
conditionals in favor of vmlinux-objs-$(CONFIG_*) constructs.
This does not change the generated code at all.
Signed-off-by: Josh Triplett <josh@joshtriplett.org>
Diffstat (limited to 'arch/x86/boot/compressed')
-rw-r--r-- | arch/x86/boot/compressed/Makefile | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/arch/x86/boot/compressed/Makefile b/arch/x86/boot/compressed/Makefile index 7a801a310e37..80709a98cc9c 100644 --- a/arch/x86/boot/compressed/Makefile +++ b/arch/x86/boot/compressed/Makefile | |||
@@ -26,18 +26,16 @@ LDFLAGS_vmlinux := -T | |||
26 | hostprogs-y := mkpiggy | 26 | hostprogs-y := mkpiggy |
27 | HOST_EXTRACFLAGS += -I$(srctree)/tools/include | 27 | HOST_EXTRACFLAGS += -I$(srctree)/tools/include |
28 | 28 | ||
29 | VMLINUX_OBJS = $(obj)/vmlinux.lds $(obj)/head_$(BITS).o $(obj)/misc.o \ | 29 | vmlinux-objs-y := $(obj)/vmlinux.lds $(obj)/head_$(BITS).o $(obj)/misc.o \ |
30 | $(obj)/string.o $(obj)/cmdline.o $(obj)/early_serial_console.o \ | 30 | $(obj)/string.o $(obj)/cmdline.o $(obj)/early_serial_console.o \ |
31 | $(obj)/piggy.o $(obj)/cpuflags.o $(obj)/aslr.o | 31 | $(obj)/piggy.o $(obj)/cpuflags.o $(obj)/aslr.o |
32 | 32 | ||
33 | $(obj)/eboot.o: KBUILD_CFLAGS += -fshort-wchar -mno-red-zone | 33 | $(obj)/eboot.o: KBUILD_CFLAGS += -fshort-wchar -mno-red-zone |
34 | 34 | ||
35 | ifeq ($(CONFIG_EFI_STUB), y) | 35 | vmlinux-objs-$(CONFIG_EFI_STUB) += $(obj)/eboot.o $(obj)/efi_stub_$(BITS).o \ |
36 | VMLINUX_OBJS += $(obj)/eboot.o $(obj)/efi_stub_$(BITS).o \ | 36 | $(objtree)/drivers/firmware/efi/libstub/lib.a |
37 | $(objtree)/drivers/firmware/efi/libstub/lib.a | ||
38 | endif | ||
39 | 37 | ||
40 | $(obj)/vmlinux: $(VMLINUX_OBJS) FORCE | 38 | $(obj)/vmlinux: $(vmlinux-objs-y) FORCE |
41 | $(call if_changed,ld) | 39 | $(call if_changed,ld) |
42 | @: | 40 | @: |
43 | 41 | ||
@@ -45,7 +43,7 @@ OBJCOPYFLAGS_vmlinux.bin := -R .comment -S | |||
45 | $(obj)/vmlinux.bin: vmlinux FORCE | 43 | $(obj)/vmlinux.bin: vmlinux FORCE |
46 | $(call if_changed,objcopy) | 44 | $(call if_changed,objcopy) |
47 | 45 | ||
48 | targets += $(patsubst $(obj)/%,%,$(VMLINUX_OBJS)) vmlinux.bin.all vmlinux.relocs | 46 | targets += $(patsubst $(obj)/%,%,$(vmlinux-objs-y)) vmlinux.bin.all vmlinux.relocs |
49 | 47 | ||
50 | CMD_RELOCS = arch/x86/tools/relocs | 48 | CMD_RELOCS = arch/x86/tools/relocs |
51 | quiet_cmd_relocs = RELOCS $@ | 49 | quiet_cmd_relocs = RELOCS $@ |