~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/x86/realmode/rm/Makefile

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 #
  2 # arch/x86/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 
 10 always-y := realmode.bin realmode.relocs
 11 
 12 wakeup-objs     := wakeup_asm.o wakemain.o video-mode.o
 13 wakeup-objs     += copy.o bioscall.o regs.o
 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-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_$(BITS).o
 24 realmode-y                      += stack.o
 25 realmode-y                      += reboot.o
 26 realmode-$(CONFIG_ACPI_SLEEP)   += $(wakeup-objs)
 27 
 28 targets += $(realmode-y)
 29 
 30 REALMODE_OBJS = $(addprefix $(obj)/,$(realmode-y))
 31 
 32 sed-pasyms := -n -r -e 's/^([0-9a-fA-F]+) [ABCDGRSTVW] (.+)$$/pa_\2 = \2;/p'
 33 
 34 quiet_cmd_pasyms = PASYMS  $@
 35       cmd_pasyms = $(NM) $(real-prereqs) | sed $(sed-pasyms) | sort | uniq > $@
 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-relocs -T
 45 CPPFLAGS_realmode.lds += -P -C -I$(objtree)/$(obj)
 46 
 47 targets += realmode.elf
 48 $(obj)/realmode.elf: $(obj)/realmode.lds $(REALMODE_OBJS) FORCE
 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)/realmode.relocs FORCE
 55         $(call if_changed,objcopy)
 56 
 57 quiet_cmd_relocs = RELOCS  $@
 58       cmd_relocs = arch/x86/tools/relocs --realmode $< > $@
 59 
 60 targets += realmode.relocs
 61 $(obj)/realmode.relocs: $(obj)/realmode.elf FORCE
 62         $(call if_changed,relocs)
 63 
 64 # ---------------------------------------------------------------------------
 65 
 66 KBUILD_CFLAGS   := $(REALMODE_CFLAGS) -D_SETUP -D_WAKEUP \
 67                    -I$(srctree)/arch/x86/boot
 68 KBUILD_AFLAGS   := $(KBUILD_CFLAGS) -D__ASSEMBLY__
 69 KBUILD_CFLAGS   += -fno-asynchronous-unwind-tables

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php