summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorZeng Zhaoming <b32542@freescale.com>2011-04-07 15:59:04 +0800
committerJason Liu <r64343@freescale.com>2012-01-09 20:07:55 +0800
commite2eb19c0f83f9b0517dca4af2e5fad82354ad619 (patch)
tree67b90da1711576223459301c0237f2ec6491a62f /firmware
parent4513456a8109f352db5329154ec3823bcae09b61 (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/Makefile3
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}" >>$@;\