* SPDX-License-Identifier: BSD-2-Clause
*/
- . = PLAT_TEXT_START;
+ . = FW_TEXT_START;
PROVIDE(_fw_start = .);
{
#include "fw_common.ldS"
- . = PLAT_TEXT_START + FW_PAYLOAD_OFFSET;
+ . = FW_TEXT_START + FW_PAYLOAD_OFFSET;
.payload :
{
blob-asflags-y =
blob-ldflags-y =
+ifdef FW_TEXT_START
+blob-cppflags-y += -DFW_TEXT_START=$(FW_TEXT_START)
+endif
+
blob-bins-$(FW_JUMP) += fw_jump.bin
ifdef FW_JUMP_ADDR
blob-cppflags-$(FW_JUMP) += -DFW_JUMP_ADDR=$(FW_JUMP_ADDR)
plat-cppflags-y = -DPLAT_NAME="QEMU SiFive Unleashed"
plat-cppflags-y+= -DPLAT_HART_COUNT=1
plat-cppflags-y+= -DPLAT_HART_STACK_SIZE=8192
-plat-cppflags-y+= -DPLAT_TEXT_START=0x80000000
# Compiler flags
plat-cflags-y =-mabi=lp64 -march=rv64imafdc -mcmodel=medany
PLAT_SYS_CLINT=y
# Blobs to build
+FW_TEXT_START=0x80000000
FW_JUMP=y
FW_JUMP_ADDR=0x80200000
FW_JUMP_FDT_OFFSET=0x2000000
plat-cppflags-y = -DPLAT_NAME="QEMU Virt Machine"
plat-cppflags-y+= -DPLAT_HART_COUNT=8
plat-cppflags-y+= -DPLAT_HART_STACK_SIZE=8192
-plat-cppflags-y+= -DPLAT_TEXT_START=0x80000000
# Compiler flags
plat-cflags-y =-mabi=lp64 -march=rv64imafdc -mcmodel=medany
PLAT_SYS_CLINT=y
# Blobs to build
+FW_TEXT_START=0x80000000
FW_JUMP=y
FW_JUMP_ADDR=0x80200000
FW_JUMP_FDT_OFFSET=0x2000000
plat-cppflags-y = -DPLAT_NAME="SiFive HiFive U540"
plat-cppflags-y+= -DPLAT_HART_COUNT=1
plat-cppflags-y+= -DPLAT_HART_STACK_SIZE=8192
-plat-cppflags-y+= -DPLAT_TEXT_START=0x80000000
# Compiler flags
plat-cflags-y =-mabi=lp64 -march=rv64imafdc -mcmodel=medany
PLAT_SYS_CLINT=y
# Blobs to build
+FW_TEXT_START=0x80000000
FW_JUMP=y
FW_JUMP_ADDR=0x80200000
FW_JUMP_FDT_OFFSET=0x2000000