Arthur Heymans | 34f5cd9 | 2022-04-21 12:00:21 +0200 | [diff] [blame] | 1 | bootblock-y += mode_switch.S |
| 2 | ifneq ($(CONFIG_VBOOT_STARTS_BEFORE_BOOTBLOCK),y) |
| 3 | verstage-y += mode_switch.S |
| 4 | endif |
| 5 | romstage-y += mode_switch.S |
| 6 | postcar-y += mode_switch.S |
| 7 | ramstage-y += mode_switch.S |
Arthur Heymans | 597b9e9 | 2022-04-19 20:48:42 +0200 | [diff] [blame] | 8 | |
| 9 | # Add --defsym=_start=0 to suppress a linker warning. |
Arthur Heymans | b18fec5 | 2022-10-08 23:09:32 +0200 | [diff] [blame^] | 10 | $(objcbfs)/pt: $(dir)/pt.S $(obj)/config.h |
Arthur Heymans | 597b9e9 | 2022-04-19 20:48:42 +0200 | [diff] [blame] | 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 | |
| 15 | cbfs-files-y += pagetables |
| 16 | pagetables-file := $(objcbfs)/pt |
| 17 | pagetables-type := raw |
| 18 | pagetables-compression := none |
| 19 | pagetables-COREBOOT-position := $(CONFIG_ARCH_X86_64_PGTBL_LOC) |