blob: e1cf743f6c2b50049692595d24a07184930cc2e4 [file] [log] [blame]
Martin Rothf6ca89c2023-08-04 12:06:21 -06001## SPDX-License-Identifier: GPL-2.0-only
2
Felix Held2439b2e2023-04-03 19:18:32 +02003all_x86-y += mode_switch.S
Arthur Heymans597b9e92022-04-19 20:48:42 +02004
5# Add --defsym=_start=0 to suppress a linker warning.
Arthur Heymansb18fec52022-10-08 23:09:32 +02006$(objcbfs)/pt: $(dir)/pt.S $(obj)/config.h
Arthur Heymans597b9e92022-04-19 20:48:42 +02007 $(CC_bootblock) $(CFLAGS_bootblock) $(CPPFLAGS_bootblock) -o $@.tmp $< -Wl,--section-start=.rodata=$(CONFIG_ARCH_X86_64_PGTBL_LOC),--defsym=_start=0
8 $(OBJCOPY_ramstage) -Obinary -j .rodata $@.tmp $@
9 rm $@.tmp
10
11cbfs-files-y += pagetables
12pagetables-file := $(objcbfs)/pt
13pagetables-type := raw
14pagetables-compression := none
15pagetables-COREBOOT-position := $(CONFIG_ARCH_X86_64_PGTBL_LOC)