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