diff options
Diffstat (limited to 'src/cpu/x86/64bit/Makefile.mk')
-rw-r--r-- | src/cpu/x86/64bit/Makefile.mk | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/cpu/x86/64bit/Makefile.mk b/src/cpu/x86/64bit/Makefile.mk index 24a5a966fb..680ab2d42a 100644 --- a/src/cpu/x86/64bit/Makefile.mk +++ b/src/cpu/x86/64bit/Makefile.mk @@ -3,8 +3,14 @@ all_x86-y += mode_switch.S all_x86-y += mode_switch2.S +ifeq ($(CONFIG_USE_1G_PAGETABLES),y) +PAGETABLE_SRC := pt1G.S +else +PAGETABLE_SRC := pt.S +endif + # Add --defsym=_start=0 to suppress a linker warning. -$(objcbfs)/pt: $(dir)/pt.S $(obj)/config.h +$(objcbfs)/pt: $(dir)/$(PAGETABLE_SRC) $(obj)/config.h $(CC_bootblock) $(CFLAGS_bootblock) $(CPPFLAGS_bootblock) -o $@.tmp $< -Wl,--section-start=.rodata=$(CONFIG_ARCH_X86_64_PGTBL_LOC),--defsym=_start=0 $(OBJCOPY_ramstage) -Obinary -j .rodata $@.tmp $@ rm $@.tmp |