firwmare: don't expand macros in FW_PAYLOAD_PATH

Signed-off-by: Andreas Schwab <schwab@suse.de>
This commit is contained in:
Andreas Schwab 2019-02-04 15:05:36 +01:00 committed by Anup Patel
parent 190a80dc40
commit 93f806af32
2 changed files with 4 additions and 7 deletions

View file

@ -41,15 +41,12 @@ fw_next_addr:
la a0, payload_bin
ret
#define str(s) #s
#define stringify(s) str(s)
#ifdef FW_PAYLOAD_FDT_PATH
.align 3
.section .text, "ax", %progbits
.globl fdt_bin
fdt_bin:
.incbin stringify(FW_PAYLOAD_FDT_PATH)
.incbin FW_PAYLOAD_FDT_PATH
#endif
.section .payload, "ax", %progbits
@ -59,5 +56,5 @@ payload_bin:
wfi
j payload_bin
#else
.incbin stringify(FW_PAYLOAD_PATH)
.incbin FW_PAYLOAD_PATH
#endif

View file

@ -31,7 +31,7 @@ FW_PAYLOAD_PATH_FINAL=$(FW_PAYLOAD_PATH)
else
FW_PAYLOAD_PATH_FINAL=$(build_dir)/$(platform_subdir)/firmware/payloads/test.bin
endif
firmware-genflags-$(FW_PAYLOAD) += -DFW_PAYLOAD_PATH=$(FW_PAYLOAD_PATH_FINAL)
firmware-genflags-$(FW_PAYLOAD) += -DFW_PAYLOAD_PATH=\"$(FW_PAYLOAD_PATH_FINAL)\"
ifdef FW_PAYLOAD_OFFSET
firmware-genflags-$(FW_PAYLOAD) += -DFW_PAYLOAD_OFFSET=$(FW_PAYLOAD_OFFSET)
endif
@ -45,7 +45,7 @@ FW_PAYLOAD_FDT_PATH=$(build_dir)/$(platform_subdir)/$(FW_PAYLOAD_FDT)
endif
endif
ifdef FW_PAYLOAD_FDT_PATH
firmware-genflags-$(FW_PAYLOAD) += -DFW_PAYLOAD_FDT_PATH=$(FW_PAYLOAD_FDT_PATH)
firmware-genflags-$(FW_PAYLOAD) += -DFW_PAYLOAD_FDT_PATH=\"$(FW_PAYLOAD_FDT_PATH)\"
endif
ifdef FW_PAYLOAD_FDT_ADDR
firmware-genflags-$(FW_PAYLOAD) += -DFW_PAYLOAD_FDT_ADDR=$(FW_PAYLOAD_FDT_ADDR)