blob: 1895498111ea874582d6fdd5dcfc3b37635b2b1b [file] [log] [blame]
Arthur Heymans34f5cd92022-04-21 12:00:21 +02001bootblock-y += mode_switch.S
2ifneq ($(CONFIG_VBOOT_STARTS_BEFORE_BOOTBLOCK),y)
3verstage-y += mode_switch.S
4endif
5romstage-y += mode_switch.S
6postcar-y += mode_switch.S
7ramstage-y += mode_switch.S
Arthur Heymans597b9e92022-04-19 20:48:42 +02008
9# Add --defsym=_start=0 to suppress a linker warning.
10$(objcbfs)/pt: $(dir)/pt.S
11 $(CC_bootblock) $(CFLAGS_bootblock) $(CPPFLAGS_bootblock) -o $@.tmp $< -Wl,--section-start=.rodata=$(CONFIG_ARCH_X86_64_PGTBL_LOC),--defsym=_start=0
12 $(OBJCOPY_ramstage) -Obinary -j .rodata $@.tmp $@
13 rm $@.tmp
14
15cbfs-files-y += pagetables
16pagetables-file := $(objcbfs)/pt
17pagetables-type := raw
18pagetables-compression := none
19pagetables-COREBOOT-position := $(CONFIG_ARCH_X86_64_PGTBL_LOC)