Arthur Heymans | 34f5cd9 | 2022-04-21 12:00:21 +0200 | [diff] [blame] | 1 | bootblock-y += mode_switch.S |
Felix Held | 549528d | 2023-04-03 19:17:27 +0200 | [diff] [blame^] | 2 | verstage_x86-y += mode_switch.S |
Arthur Heymans | 34f5cd9 | 2022-04-21 12:00:21 +0200 | [diff] [blame] | 3 | romstage-y += mode_switch.S |
| 4 | postcar-y += mode_switch.S |
| 5 | ramstage-y += mode_switch.S |
Arthur Heymans | 597b9e9 | 2022-04-19 20:48:42 +0200 | [diff] [blame] | 6 | |
| 7 | # Add --defsym=_start=0 to suppress a linker warning. |
Arthur Heymans | b18fec5 | 2022-10-08 23:09:32 +0200 | [diff] [blame] | 8 | $(objcbfs)/pt: $(dir)/pt.S $(obj)/config.h |
Arthur Heymans | 597b9e9 | 2022-04-19 20:48:42 +0200 | [diff] [blame] | 9 | $(CC_bootblock) $(CFLAGS_bootblock) $(CPPFLAGS_bootblock) -o $@.tmp $< -Wl,--section-start=.rodata=$(CONFIG_ARCH_X86_64_PGTBL_LOC),--defsym=_start=0 |
| 10 | $(OBJCOPY_ramstage) -Obinary -j .rodata $@.tmp $@ |
| 11 | rm $@.tmp |
| 12 | |
| 13 | cbfs-files-y += pagetables |
| 14 | pagetables-file := $(objcbfs)/pt |
| 15 | pagetables-type := raw |
| 16 | pagetables-compression := none |
| 17 | pagetables-COREBOOT-position := $(CONFIG_ARCH_X86_64_PGTBL_LOC) |