aboutsummaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorZeng Zhaoming <b32542@freescale.com>2011-04-07 15:59:04 +0800
committerEric Miao <eric.miao@canonical.com>2011-11-10 07:37:37 +0800
commit6c0e55c807b1954616aeed5f5c3056b768064d1a (patch)
treec2186544fe83bc28a4fb4cb96ee31941368e74dd /firmware
parent0c3b4efb7a79f384cbcd7fb7f16ed08f16a8a558 (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 8fc14ff69d9..7f67f8eea49 100644
--- a/firmware/Makefile
+++ b/firmware/Makefile
@@ -171,11 +171,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}" >>$@;\