In preparation for bringing in paging early always provide the paging pae module to all stages. Since we cull unused symbols this is a no-op. Compilation testing will happen all the time since the module currently doesn't compile without <arch/cpu.h> include. The current file is completely guarded with ENV_RAMSTAGE because it's using cpu_index() which is a ramstage-only construct. BUG=b:72728953 Change-Id: Ib4310b8206e5247fa220b42203bcd18d522d51ea Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://review.coreboot.org/25712 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Furquan Shaikh <furquan@google.com> Reviewed-by: Justin TerAvest <teravest@chromium.org>
40 lines
1.3 KiB
Makefile
40 lines
1.3 KiB
Makefile
ifeq ($(CONFIG_ARCH_ROMSTAGE_X86_32)$(CONFIG_ARCH_ROMSTAGE_X86_64),y)
|
|
ifneq ($(CONFIG_NO_CAR_GLOBAL_MIGRATION),y)
|
|
romstage-$(CONFIG_CACHE_AS_RAM) += car.c
|
|
endif
|
|
endif
|
|
|
|
subdirs-y += pae
|
|
subdirs-$(CONFIG_PARALLEL_MP) += name
|
|
ramstage-$(CONFIG_PARALLEL_MP) += mp_init.c
|
|
ramstage-$(CONFIG_MIRROR_PAYLOAD_TO_RAM_BEFORE_LOADING) += mirror_payload.c
|
|
ramstage-y += backup_default_smm.c
|
|
|
|
additional-dirs += $(obj)/cpu/x86
|
|
|
|
SIPI_ELF=$(obj)/cpu/x86/sipi_vector.elf
|
|
SIPI_RMOD=$(SIPI_ELF).rmod
|
|
SIPI_BIN=$(SIPI_ELF:.elf=)
|
|
SIPI_DOTO=$(SIPI_ELF:.elf=.o)
|
|
|
|
ifeq ($(CONFIG_PARALLEL_MP),y)
|
|
ramstage-srcs += $(SIPI_BIN).manual
|
|
endif
|
|
rmodules_$(ARCH-ramstage-y)-$(CONFIG_PARALLEL_MP) += sipi_vector.S
|
|
|
|
$(SIPI_DOTO): $(call src-to-obj,rmodules_$(ARCH-ramstage-y),src/cpu/x86/sipi_vector.S)
|
|
$(CC_rmodules_$(ARCH-ramstage-y)) $(CFLAGS_rmodules_$(ARCH-ramstage-y)) -nostdlib -r -o $@ $^
|
|
|
|
ifeq ($(CONFIG_ARCH_RAMSTAGE_X86_32),y)
|
|
$(eval $(call rmodule_link,$(SIPI_ELF), $(SIPI_DOTO), 0,x86_32))
|
|
else
|
|
$(eval $(call rmodule_link,$(SIPI_ELF), $(SIPI_DOTO), 0,x86_64))
|
|
endif
|
|
|
|
$(SIPI_BIN): $(SIPI_RMOD)
|
|
$(OBJCOPY_ramstage) -O binary $< $@
|
|
|
|
$(call src-to-obj,ramstage,$(SIPI_BIN).manual): $(SIPI_BIN)
|
|
@printf " OBJCOPY $(subst $(obj)/,,$(@))\n"
|
|
cd $(dir $<); $(OBJCOPY_rmodules_$(ARCH-ramstage-y)) -I binary $(notdir $<) $(target-objcopy) $(abspath $@)
|