1## SPDX-License-Identifier: GPL-2.0-only 2 3all_x86-y += mode_switch.S 4all_x86-y += mode_switch2.S 5 6ifeq ($(CONFIG_NEED_SMALL_2MB_PAGE_TABLES),y) 7PAGETABLE_SRC := pt.S 8else 9PAGETABLE_SRC := pt1G.S 10endif 11 12all_x86-y += $(PAGETABLE_SRC) 13 14# Add --defsym=_start=0 to suppress a linker warning. 15$(objcbfs)/pt: $(dir)/$(PAGETABLE_SRC) $(obj)/config.h 16 $(CC_bootblock) $(CFLAGS_bootblock) $(CPPFLAGS_bootblock) -o $@.tmp $< -Wl,--section-start=.rodata=$(CONFIG_ARCH_X86_64_PGTBL_LOC),--defsym=_start=0 17 $(OBJCOPY_ramstage) -Obinary -j .rodata $@.tmp $@ 18 rm $@.tmp 19 20cbfs-files-$(CONFIG_PAGE_TABLES_IN_CBFS) += pagetables 21pagetables-file := $(objcbfs)/pt 22pagetables-type := raw 23pagetables-compression := none 24pagetables-COREBOOT-position := $(CONFIG_ARCH_X86_64_PGTBL_LOC) 25