diff options
Diffstat (limited to 'arch/x86/realmode/rm/Makefile')
-rw-r--r-- | arch/x86/realmode/rm/Makefile | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/arch/x86/realmode/rm/Makefile b/arch/x86/realmode/rm/Makefile index c2c27a41ab8f..fc8854b09dfa 100644 --- a/arch/x86/realmode/rm/Makefile +++ b/arch/x86/realmode/rm/Makefile | |||
@@ -7,21 +7,26 @@ | |||
7 | # | 7 | # |
8 | # | 8 | # |
9 | 9 | ||
10 | subdir- := wakeup | ||
11 | |||
12 | always := realmode.bin | 10 | always := realmode.bin |
13 | 11 | ||
14 | realmode-y += header.o | 12 | realmode-y += header.o |
15 | realmode-y += trampoline_$(BITS).o | 13 | realmode-y += trampoline_$(BITS).o |
16 | realmode-y += stack.o | 14 | realmode-y += stack.o |
17 | realmode-$(CONFIG_X86_32) += reboot_32.o | 15 | realmode-$(CONFIG_X86_32) += reboot_32.o |
18 | realmode-$(CONFIG_ACPI_SLEEP) += wakeup/wakeup.o | 16 | realmode-$(CONFIG_ACPI_SLEEP) += $(wakeup-objs) |
17 | |||
18 | wakeup-objs := wakeup_asm.o wakemain.o video-mode.o | ||
19 | wakeup-objs += copy.o bioscall.o regs.o | ||
20 | # The link order of the video-*.o modules can matter. In particular, | ||
21 | # video-vga.o *must* be listed first, followed by video-vesa.o. | ||
22 | # Hardware-specific drivers should follow in the order they should be | ||
23 | # probed, and video-bios.o should typically be last. | ||
24 | wakeup-objs += video-vga.o | ||
25 | wakeup-objs += video-vesa.o | ||
26 | wakeup-objs += video-bios.o | ||
19 | 27 | ||
20 | targets += $(realmode-y) | 28 | targets += $(realmode-y) |
21 | 29 | ||
22 | $(obj)/wakeup/wakeup.o: FORCE | ||
23 | $(Q)$(MAKE) $(build)=$(obj)/wakeup $@ | ||
24 | |||
25 | REALMODE_OBJS = $(addprefix $(obj)/,$(realmode-y)) | 30 | REALMODE_OBJS = $(addprefix $(obj)/,$(realmode-y)) |
26 | 31 | ||
27 | sed-pasyms := -n -r -e 's/^([0-9a-fA-F]+) [ABCDGRSTVW] (.+)$$/pa_\2 = \2;/p' | 32 | sed-pasyms := -n -r -e 's/^([0-9a-fA-F]+) [ABCDGRSTVW] (.+)$$/pa_\2 = \2;/p' |
@@ -55,7 +60,8 @@ $(obj)/realmode.relocs: $(obj)/realmode.elf FORCE | |||
55 | 60 | ||
56 | # How to compile the 16-bit code. Note we always compile for -march=i386, | 61 | # How to compile the 16-bit code. Note we always compile for -march=i386, |
57 | # that way we can complain to the user if the CPU is insufficient. | 62 | # that way we can complain to the user if the CPU is insufficient. |
58 | KBUILD_CFLAGS := $(LINUXINCLUDE) -m32 -g -Os -D_SETUP -D__KERNEL__ \ | 63 | KBUILD_CFLAGS := $(LINUXINCLUDE) -m32 -g -Os -D_SETUP -D__KERNEL__ -D_WAKEUP \ |
64 | -I$(srctree)/arch/x86/boot \ | ||
59 | -DDISABLE_BRANCH_PROFILING \ | 65 | -DDISABLE_BRANCH_PROFILING \ |
60 | -Wall -Wstrict-prototypes \ | 66 | -Wall -Wstrict-prototypes \ |
61 | -march=i386 -mregparm=3 \ | 67 | -march=i386 -mregparm=3 \ |