Martin Roth | f6ca89c | 2023-08-04 12:06:21 -0600 | [diff] [blame] | 1 | ## SPDX-License-Identifier: GPL-2.0-only |
| 2 | |
Felix Held | 2439b2e | 2023-04-03 19:18:32 +0200 | [diff] [blame] | 3 | all_x86-y += mode_switch.S |
Arthur Heymans | 597b9e9 | 2022-04-19 20:48:42 +0200 | [diff] [blame] | 4 | |
| 5 | # Add --defsym=_start=0 to suppress a linker warning. |
Arthur Heymans | b18fec5 | 2022-10-08 23:09:32 +0200 | [diff] [blame] | 6 | $(objcbfs)/pt: $(dir)/pt.S $(obj)/config.h |
Arthur Heymans | 597b9e9 | 2022-04-19 20:48:42 +0200 | [diff] [blame] | 7 | $(CC_bootblock) $(CFLAGS_bootblock) $(CPPFLAGS_bootblock) -o $@.tmp $< -Wl,--section-start=.rodata=$(CONFIG_ARCH_X86_64_PGTBL_LOC),--defsym=_start=0 |
| 8 | $(OBJCOPY_ramstage) -Obinary -j .rodata $@.tmp $@ |
| 9 | rm $@.tmp |
| 10 | |
| 11 | cbfs-files-y += pagetables |
| 12 | pagetables-file := $(objcbfs)/pt |
| 13 | pagetables-type := raw |
| 14 | pagetables-compression := none |
| 15 | pagetables-COREBOOT-position := $(CONFIG_ARCH_X86_64_PGTBL_LOC) |