This patch remove hard-coding of payload location in
fw_payload.elf.ldS by adding compile-time option
FW_PAYLOAD_OFFSET.
With the new compile-time option, payload will be placed
at PLAT_TEXT_START + FW_PAYLOAD_OFFSET address.
Signed-off-by: Anup Patel <anup.patel@wdc.com>
{
#include "fw_common.ldS"
- . = ALIGN(0x200000);
+ . = PLAT_TEXT_START + FW_PAYLOAD_OFFSET;
.payload :
{
ifdef FW_PAYLOAD_PATH
blob-cppflags-$(FW_PAYLOAD) += -DFW_PAYLOAD_PATH=$(FW_PAYLOAD_PATH)
endif
+ifdef FW_PAYLOAD_OFFSET
+blob-cppflags-$(FW_PAYLOAD) += -DFW_PAYLOAD_OFFSET=$(FW_PAYLOAD_OFFSET)
+endif
ifdef FW_PAYLOAD_FDT_OFFSET
blob-cppflags-$(FW_PAYLOAD) += -DFW_PAYLOAD_FDT_OFFSET=$(FW_PAYLOAD_FDT_OFFSET)
endif
FW_JUMP_ADDR=0x80200000
FW_JUMP_FDT_OFFSET=0x2000000
FW_PAYLOAD=y
+FW_PAYLOAD_OFFSET=0x200000
FW_PAYLOAD_FDT_OFFSET=0x2000000
FW_JUMP_ADDR=0x80200000
FW_JUMP_FDT_OFFSET=0x2000000
FW_PAYLOAD=y
+FW_PAYLOAD_OFFSET=0x200000
FW_PAYLOAD_FDT_OFFSET=0x2000000
FW_JUMP_ADDR=0x80200000
FW_JUMP_FDT_OFFSET=0x2000000
FW_PAYLOAD=y
+FW_PAYLOAD_OFFSET=0x200000
FW_PAYLOAD_FDT_OFFSET=0x2000000