blob: 48f56fccfdb547936e2e02568ee6f0fa25d433f3 [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.
Arthur Heymansb18fec52022-10-08 23:09:32 +020010$(objcbfs)/pt: $(dir)/pt.S $(obj)/config.h
Arthur Heymans597b9e92022-04-19 20:48:42 +020011 $(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)