diff options
author | Zeng Zhaoming <b32542@freescale.com> | 2011-04-07 15:59:04 +0800 |
---|---|---|
committer | Nitin Garg <nitin.garg@freescale.com> | 2014-06-03 19:29:34 -0500 |
commit | 454a50de976bb6e233114a79055ffb6d86f073f3 (patch) | |
tree | 824e37af4990d2494e604ce6547f16a49016e252 /firmware | |
parent | 34f870ec399832d7a9c2ab25a582a511d549393a (diff) |
ENGR00141859 Firmware: Fix Kernel build failed with firmware not find errors
Linux kernel build failed when source and output object separate store.
Fix it by add srctree to prefix firmware.
Signed-off-by: Zeng Zhaoming <b32542@freescale.com>
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/Makefile b/firmware/Makefile index 8da933d9af04..66d0e9902857 100644 --- a/firmware/Makefile +++ b/firmware/Makefile @@ -172,11 +172,12 @@ quiet_cmd_fwbin = MK_FW $@ ASM_WORD=$(if $(CONFIG_64BIT),.quad,.long); \ ASM_ALIGN=$(if $(CONFIG_64BIT),3,2); \ PROGBITS=$(if $(CONFIG_ARM),%,@)progbits; \ + FWPATH=$(if $(KBUILD_SRC),$(srctree)/)$(2); \ echo "/* Generated by firmware/Makefile */" > $@;\ echo " .section .rodata" >>$@;\ echo " .p2align $${ASM_ALIGN}" >>$@;\ echo "_fw_$${FWSTR}_bin:" >>$@;\ - echo " .incbin \"$(2)\"" >>$@;\ + echo " .incbin \"$${FWPATH}\"" >>$@;\ echo "_fw_end:" >>$@;\ echo " .section .rodata.str,\"aMS\",$${PROGBITS},1" >>$@;\ echo " .p2align $${ASM_ALIGN}" >>$@;\ |