diff options
| author | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-22 10:38:37 -0500 |
|---|---|---|
| committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-22 10:38:37 -0500 |
| commit | fcc9d2e5a6c89d22b8b773a64fb4ad21ac318446 (patch) | |
| tree | a57612d1888735a2ec7972891b68c1ac5ec8faea /arch/x86/kernel/acpi/realmode/Makefile | |
| parent | 8dea78da5cee153b8af9c07a2745f6c55057fe12 (diff) | |
Diffstat (limited to 'arch/x86/kernel/acpi/realmode/Makefile')
| -rw-r--r-- | arch/x86/kernel/acpi/realmode/Makefile | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/arch/x86/kernel/acpi/realmode/Makefile b/arch/x86/kernel/acpi/realmode/Makefile new file mode 100644 index 00000000000..6a564ac67ef --- /dev/null +++ b/arch/x86/kernel/acpi/realmode/Makefile | |||
| @@ -0,0 +1,59 @@ | |||
| 1 | # | ||
| 2 | # arch/x86/kernel/acpi/realmode/Makefile | ||
| 3 | # | ||
| 4 | # This file is subject to the terms and conditions of the GNU General Public | ||
| 5 | # License. See the file "COPYING" in the main directory of this archive | ||
| 6 | # for more details. | ||
| 7 | # | ||
| 8 | |||
| 9 | always := wakeup.bin | ||
| 10 | targets := wakeup.elf wakeup.lds | ||
| 11 | |||
| 12 | wakeup-y += wakeup.o wakemain.o video-mode.o copy.o bioscall.o regs.o | ||
| 13 | |||
| 14 | # The link order of the video-*.o modules can matter. In particular, | ||
| 15 | # video-vga.o *must* be listed first, followed by video-vesa.o. | ||
| 16 | # Hardware-specific drivers should follow in the order they should be | ||
| 17 | # probed, and video-bios.o should typically be last. | ||
| 18 | wakeup-y += video-vga.o | ||
| 19 | wakeup-y += video-vesa.o | ||
| 20 | wakeup-y += video-bios.o | ||
| 21 | |||
| 22 | targets += $(wakeup-y) | ||
| 23 | |||
| 24 | bootsrc := $(src)/../../../boot | ||
| 25 | |||
| 26 | # --------------------------------------------------------------------------- | ||
| 27 | |||
| 28 | # How to compile the 16-bit code. Note we always compile for -march=i386, | ||
| 29 | # that way we can complain to the user if the CPU is insufficient. | ||
| 30 | # Compile with _SETUP since this is similar to the boot-time setup code. | ||
| 31 | KBUILD_CFLAGS := $(LINUXINCLUDE) -g -Os -D_SETUP -D_WAKEUP -D__KERNEL__ \ | ||
| 32 | -I$(srctree)/$(bootsrc) \ | ||
| 33 | $(cflags-y) \ | ||
| 34 | -Wall -Wstrict-prototypes \ | ||
| 35 | -march=i386 -mregparm=3 \ | ||
| 36 | -include $(srctree)/$(bootsrc)/code16gcc.h \ | ||
| 37 | -fno-strict-aliasing -fomit-frame-pointer \ | ||
| 38 | $(call cc-option, -ffreestanding) \ | ||
| 39 | $(call cc-option, -fno-toplevel-reorder,\ | ||
| 40 | $(call cc-option, -fno-unit-at-a-time)) \ | ||
| 41 | $(call cc-option, -fno-stack-protector) \ | ||
| 42 | $(call cc-option, -mpreferred-stack-boundary=2) | ||
| 43 | KBUILD_CFLAGS += $(call cc-option, -m32) | ||
| 44 | KBUILD_AFLAGS := $(KBUILD_CFLAGS) -D__ASSEMBLY__ | ||
| 45 | GCOV_PROFILE := n | ||
| 46 | |||
| 47 | WAKEUP_OBJS = $(addprefix $(obj)/,$(wakeup-y)) | ||
| 48 | |||
| 49 | LDFLAGS_wakeup.elf := -T | ||
| 50 | |||
| 51 | CPPFLAGS_wakeup.lds += -P -C | ||
| 52 | |||
| 53 | $(obj)/wakeup.elf: $(obj)/wakeup.lds $(WAKEUP_OBJS) FORCE | ||
| 54 | $(call if_changed,ld) | ||
| 55 | |||
| 56 | OBJCOPYFLAGS_wakeup.bin := -O binary | ||
| 57 | |||
| 58 | $(obj)/wakeup.bin: $(obj)/wakeup.elf FORCE | ||
| 59 | $(call if_changed,objcopy) | ||
