blob: 24a5a966fb904c47da383bd235555a7b2ce75a13 [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
Patrick Rudolph3052e9e2023-12-28 07:45:19 +01004all_x86-y += mode_switch2.S
Arthur Heymans597b9e92022-04-19 20:48:42 +02005
6# Add --defsym=_start=0 to suppress a linker warning.
Arthur Heymansb18fec52022-10-08 23:09:32 +02007$(objcbfs)/pt: $(dir)/pt.S $(obj)/config.h
Arthur Heymans597b9e92022-04-19 20:48:42 +02008 $(CC_bootblock) $(CFLAGS_bootblock) $(CPPFLAGS_bootblock) -o $@.tmp $< -Wl,--section-start=.rodata=$(CONFIG_ARCH_X86_64_PGTBL_LOC),--defsym=_start=0
9 $(OBJCOPY_ramstage) -Obinary -j .rodata $@.tmp $@
10 rm $@.tmp
11
12cbfs-files-y += pagetables
13pagetables-file := $(objcbfs)/pt
14pagetables-type := raw
15pagetables-compression := none
16pagetables-COREBOOT-position := $(CONFIG_ARCH_X86_64_PGTBL_LOC)