summaryrefslogtreecommitdiff
path: root/src/arch/riscv/Makefile.mk
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/riscv/Makefile.mk')
-rw-r--r--src/arch/riscv/Makefile.mk5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/arch/riscv/Makefile.mk b/src/arch/riscv/Makefile.mk
index bbd39590d2..1267195b21 100644
--- a/src/arch/riscv/Makefile.mk
+++ b/src/arch/riscv/Makefile.mk
@@ -96,7 +96,7 @@ endif #CONFIG_ARCH_BOOTBLOCK_RISCV
################################################################################
ifeq ($(CONFIG_ARCH_ROMSTAGE_RISCV),y)
-romstage-y += romstage.S
+romstage-$(CONFIG_SEPARATE_ROMSTAGE) += romstage.S
# Build the romstage
@@ -163,10 +163,9 @@ $(OPENSBI_TARGET): $(obj)/config.h | $(OPENSBI_SOURCE)
AR="$(AR_ramstage)" \
PLATFORM=$(CONFIG_OPENSBI_PLATFORM) \
O="$(OPENSBI_BUILD)" \
- FW_JUMP=y \
+ FW_JUMP=n \
FW_DYNAMIC=y \
FW_PAYLOAD=n \
- FW_PAYLOAD_OFFSET=0 \
FW_TEXT_START=$(CONFIG_OPENSBI_TEXT_START)
$(OPENSBI): $(OPENSBI_TARGET)