1 ifeq ($(CONFIG_ARCH_ROMSTAGE_X86_32)$(CONFIG_ARCH_ROMSTAGE_X86_64),y)
2 romstage-$(CONFIG_CACHE_AS_RAM) += car.c
5 subdirs-$(CONFIG_PARALLEL_MP) += name
6 ramstage-$(CONFIG_PARALLEL_MP) += mp_init.c
7 ramstage-$(CONFIG_MIRROR_PAYLOAD_TO_RAM_BEFORE_LOADING) += mirror_payload.c
9 SIPI_ELF=$(obj)/cpu/x86/sipi_vector.elf
10 SIPI_RMOD=$(SIPI_ELF).rmod
11 SIPI_BIN=$(SIPI_ELF:.elf=)
12 SIPI_DOTO=$(SIPI_ELF:.elf=.o)
14 ifeq ($(CONFIG_PARALLEL_MP),y)
15 ramstage-srcs += $(SIPI_BIN).manual
17 rmodules_$(ARCH-ramstage-y)-$(CONFIG_PARALLEL_MP) += sipi_vector.S
19 $(SIPI_DOTO): $(dir $(SIPI_ELF))sipi_vector.rmodules_$(ARCH-ramstage-y).o
20 $(CC_rmodules_$(ARCH-ramstage-y)) $(CFLAGS_rmodules_$(ARCH-ramstage-y)) -nostdlib -r -o $@ $^
22 ifeq ($(CONFIG_ARCH_RAMSTAGE_X86_32),y)
23 $(eval $(call rmodule_link,$(SIPI_ELF), $(SIPI_DOTO), 0,x86_32))
25 $(eval $(call rmodule_link,$(SIPI_ELF), $(SIPI_DOTO), 0,x86_64))
28 $(SIPI_BIN): $(SIPI_RMOD)
29 $(OBJCOPY_ramstage) -O binary $< $@
31 $(SIPI_BIN).ramstage.manual: $(SIPI_BIN)
32 @printf " OBJCOPY $(subst $(obj)/,,$(@))\n"
33 cd $(dir $@); $(OBJCOPY_rmodules_$(ARCH-ramstage-y)) -I binary $(notdir $<) $(target-objcopy) $(notdir $@)