summaryrefslogtreecommitdiff
path: root/src/cpu/x86/64bit/Makefile.mk
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpu/x86/64bit/Makefile.mk')
-rw-r--r--src/cpu/x86/64bit/Makefile.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cpu/x86/64bit/Makefile.mk b/src/cpu/x86/64bit/Makefile.mk
index a8dc1a286a..b24e4d7de0 100644
--- a/src/cpu/x86/64bit/Makefile.mk
+++ b/src/cpu/x86/64bit/Makefile.mk
@@ -9,13 +9,15 @@ else
PAGETABLE_SRC := pt.S
endif
+all_x86-y += $(PAGETABLE_SRC)
+
# Add --defsym=_start=0 to suppress a linker warning.
$(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
-cbfs-files-y += pagetables
+cbfs-files-$(CONFIG_PAGE_TABLES_IN_CBFS) += pagetables
pagetables-file := $(objcbfs)/pt
pagetables-type := raw
pagetables-compression := none