blob: 36c69b9520944a1d09ffe34e79212f2793d1beb4 [file] [log] [blame]
Felix Held2439b2e2023-04-03 19:18:32 +02001all_x86-y += mode_switch.S
Arthur Heymans597b9e92022-04-19 20:48:42 +02002
3# Add --defsym=_start=0 to suppress a linker warning.
Arthur Heymansb18fec52022-10-08 23:09:32 +02004$(objcbfs)/pt: $(dir)/pt.S $(obj)/config.h
Arthur Heymans597b9e92022-04-19 20:48:42 +02005 $(CC_bootblock) $(CFLAGS_bootblock) $(CPPFLAGS_bootblock) -o $@.tmp $< -Wl,--section-start=.rodata=$(CONFIG_ARCH_X86_64_PGTBL_LOC),--defsym=_start=0
6 $(OBJCOPY_ramstage) -Obinary -j .rodata $@.tmp $@
7 rm $@.tmp
8
9cbfs-files-y += pagetables
10pagetables-file := $(objcbfs)/pt
11pagetables-type := raw
12pagetables-compression := none
13pagetables-COREBOOT-position := $(CONFIG_ARCH_X86_64_PGTBL_LOC)