mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2025-08-24 23:41:23 +01:00
firmware: remove FW_TEXT_START
Now opensbi can run at any address via dynamic relocation. We can remove FW_TEXT_START. Signed-off-by: Xiang W <wxjstz@126.com> Reviewed-by: Anup Patel <anup@brainfault.org> Tested-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
@@ -17,7 +17,6 @@ platform-objs-y += platform.o
|
||||
PLATFORM_RISCV_XLEN = 64
|
||||
|
||||
# Blobs to build
|
||||
FW_TEXT_START=0x80000000
|
||||
FW_JUMP=n
|
||||
|
||||
ifeq ($(PLATFORM_RISCV_XLEN), 32)
|
||||
|
@@ -16,7 +16,6 @@ platform-objs-y += platform.o
|
||||
PLATFORM_RISCV_XLEN = 64
|
||||
|
||||
# Blobs to build
|
||||
FW_TEXT_START=0x80000000
|
||||
FW_JUMP=n
|
||||
|
||||
ifeq ($(PLATFORM_RISCV_XLEN), 32)
|
||||
|
@@ -15,14 +15,13 @@ platform-ldflags-y =
|
||||
|
||||
# Command for platform specific "make run"
|
||||
platform-runcmd = qemu-system-riscv$(PLATFORM_RISCV_XLEN) -M virt -m 256M \
|
||||
-nographic -bios $(build_dir)/platform/generic/firmware/fw_payload.elf
|
||||
-nographic -bios $(build_dir)/platform/generic/firmware/fw_payload.bin
|
||||
|
||||
# Objects to build
|
||||
platform-objs-y += platform.o
|
||||
platform-objs-y += platform_override_modules.o
|
||||
|
||||
# Blobs to build
|
||||
FW_TEXT_START=0x80000000
|
||||
FW_DYNAMIC=y
|
||||
FW_JUMP=y
|
||||
ifeq ($(PLATFORM_RISCV_XLEN), 32)
|
||||
|
@@ -21,6 +21,5 @@ platform-varprefix-k210.o = dt_k210
|
||||
platform-padding-k210.o = 2048
|
||||
|
||||
# Blobs to build
|
||||
FW_TEXT_START=0x80000000
|
||||
FW_PAYLOAD=y
|
||||
FW_PAYLOAD_ALIGN=0x1000
|
||||
|
@@ -22,7 +22,6 @@ platform-runcmd = xl_spike \
|
||||
platform-objs-y += platform.o
|
||||
|
||||
# Blobs to build
|
||||
FW_TEXT_START=0xA0000000
|
||||
FW_DYNAMIC=y
|
||||
FW_JUMP=y
|
||||
|
||||
|
@@ -41,9 +41,6 @@ platform-objs-y += platform.o
|
||||
#
|
||||
# platform-objs-y += <dt file name>.o
|
||||
|
||||
# Firmware load address configuration. This is mandatory.
|
||||
FW_TEXT_START=0x80000000
|
||||
|
||||
# Optional parameter for path to external FDT
|
||||
# FW_FDT_PATH="path to platform flattened device tree file"
|
||||
|
||||
@@ -69,8 +66,7 @@ FW_JUMP=<y|n>
|
||||
# endif
|
||||
# FW_JUMP_FDT_OFFSET=0x2200000
|
||||
#
|
||||
# You can use fixed address for jump firmware as an alternative option,
|
||||
# but this may fail when setting wrong FW_TEXT_START. Use with caution.
|
||||
# You can use fixed address for jump firmware as an alternative option.
|
||||
# SBI will prefer "<X>_ADDR" if both "<X>_ADDR" and "<X>_OFFSET" are
|
||||
# defined
|
||||
# ifeq ($(PLATFORM_RISCV_XLEN), 32)
|
||||
@@ -97,8 +93,7 @@ endif
|
||||
# FW_PAYLOAD_PATH="path to next boot stage binary image file"
|
||||
# FW_PAYLOAD_FDT_OFFSET=0x2200000
|
||||
#
|
||||
# You can use fixed address for payload firmware as an alternative option,
|
||||
# but this may fail when setting wrong FW_TEXT_START. Use with caution.
|
||||
# You can use fixed address for payload firmware as an alternative option.
|
||||
# SBI will prefer "FW_PAYLOAD_FDT_ADDR" if both "FW_PAYLOAD_FDT_OFFSET"
|
||||
# and "FW_PAYLOAD_FDT_ADDR" are defined.
|
||||
# FW_PAYLOAD_FDT_ADDR=0x82200000
|
||||
|
Reference in New Issue
Block a user