| 1 |
|
| 2 |
|
| 3 |
all_x86-y += mode_switch.S |
| 4 |
all_x86-y += mode_switch2.S |
| 5 |
|
| 6 |
ifeq ($(CONFIG_NEED_SMALL_2MB_PAGE_TABLES),y) |
| 7 |
PAGETABLE_SRC := pt.S |
| 8 |
else |
| 9 |
PAGETABLE_SRC := pt1G.S |
| 10 |
endif |
| 11 |
|
| 12 |
all_x86-y += $(PAGETABLE_SRC) |
| 13 |
|
| 14 |
|
| 15 |
$(objcbfs)/pt: $(dir)/$(PAGETABLE_SRC) $(obj)/config.h |
| 16 |
$(CC_bootblock) $(CFLAGS_bootblock) $(CPPFLAGS_bootblock) -o [email protected] $< -Wl,--section-start=.rodata=$(CONFIG_ARCH_X86_64_PGTBL_LOC),--defsym=_start=0 -fuse-ld=bfd |
| 17 |
$(OBJCOPY_ramstage) -Obinary -j .rodata [email protected] $@ |
| 18 |
rm [email protected] |
| 19 |
|
| 20 |
cbfs-files-$(CONFIG_PAGE_TABLES_IN_CBFS) += pagetables |
| 21 |
pagetables-file := $(objcbfs)/pt |
| 22 |
pagetables-type := raw |
| 23 |
pagetables-compression := none |
| 24 |
pagetables-COREBOOT-position := $(CONFIG_ARCH_X86_64_PGTBL_LOC) |