blob: 526291a7fa4564451ae6e17151d4565e07795025 [file] [log] [blame]
Arthur Heymans34f5cd92022-04-21 12:00:21 +02001bootblock-y += mode_switch.S
Felix Held549528d2023-04-03 19:17:27 +02002verstage_x86-y += mode_switch.S
Arthur Heymans34f5cd92022-04-21 12:00:21 +02003romstage-y += mode_switch.S
4postcar-y += mode_switch.S
5ramstage-y += mode_switch.S
Arthur Heymans597b9e92022-04-19 20:48:42 +02006
7# Add --defsym=_start=0 to suppress a linker warning.
Arthur Heymansb18fec52022-10-08 23:09:32 +02008$(objcbfs)/pt: $(dir)/pt.S $(obj)/config.h
Arthur Heymans597b9e92022-04-19 20:48:42 +02009 $(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
13cbfs-files-y += pagetables
14pagetables-file := $(objcbfs)/pt
15pagetables-type := raw
16pagetables-compression := none
17pagetables-COREBOOT-position := $(CONFIG_ARCH_X86_64_PGTBL_LOC)