1 # 2 # arch/x86/realmode/Makefile 3 # 4 # This file is subject to the terms and condit 5 # License. See the file "COPYING" in the main 6 # for more details. 7 # 8 # 9 10 always-y := realmode.bin realmode.relocs 11 12 wakeup-objs := wakeup_asm.o wakemain.o vid 13 wakeup-objs += copy.o bioscall.o regs.o 14 # The link order of the video-*.o modules can 15 # video-vga.o *must* be listed first, followed 16 # Hardware-specific drivers should follow in t 17 # probed, and video-bios.o should typically be 18 wakeup-objs += video-vga.o 19 wakeup-objs += video-vesa.o 20 wakeup-objs += video-bios.o 21 22 realmode-y += header.o 23 realmode-y += trampoline_ 24 realmode-y += stack.o 25 realmode-y += reboot.o 26 realmode-$(CONFIG_ACPI_SLEEP) += $(wakeup-ob 27 28 targets += $(realmode-y) 29 30 REALMODE_OBJS = $(addprefix $(obj)/,$(realmode 31 32 sed-pasyms := -n -r -e 's/^([0-9a-fA-F]+) [ABC 33 34 quiet_cmd_pasyms = PASYMS $@ 35 cmd_pasyms = $(NM) $(real-prereqs) | sed 36 37 targets += pasyms.h 38 $(obj)/pasyms.h: $(REALMODE_OBJS) FORCE 39 $(call if_changed,pasyms) 40 41 targets += realmode.lds 42 $(obj)/realmode.lds: $(obj)/pasyms.h 43 44 LDFLAGS_realmode.elf := -m elf_i386 --emit-rel 45 CPPFLAGS_realmode.lds += -P -C -I$(objtree)/$( 46 47 targets += realmode.elf 48 $(obj)/realmode.elf: $(obj)/realmode.lds $(REA 49 $(call if_changed,ld) 50 51 OBJCOPYFLAGS_realmode.bin := -O binary 52 53 targets += realmode.bin 54 $(obj)/realmode.bin: $(obj)/realmode.elf $(obj 55 $(call if_changed,objcopy) 56 57 quiet_cmd_relocs = RELOCS $@ 58 cmd_relocs = arch/x86/tools/relocs --rea 59 60 targets += realmode.relocs 61 $(obj)/realmode.relocs: $(obj)/realmode.elf FO 62 $(call if_changed,relocs) 63 64 # -------------------------------------------- 65 66 KBUILD_CFLAGS := $(REALMODE_CFLAGS) -D_SETUP 67 -I$(srctree)/arch/x86/boot 68 KBUILD_AFLAGS := $(KBUILD_CFLAGS) -D__ASSEMB 69 KBUILD_CFLAGS += -fno-asynchronous-unwind-ta
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.