diff options
author | Zeng Zhaoming <b32542@freescale.com> | 2011-04-07 15:59:04 +0800 |
---|---|---|
committer | Eric Nelson <eric.nelson@boundarydevices.com> | 2012-08-28 09:36:55 -0700 |
commit | b4cea910a4ef651b515652d57e1224a0d8528dcd (patch) | |
tree | f45a84c9ad17e6d1dba36be521a233a1dd4006d4 /firmware | |
parent | 43653bdf5f5c257d17b730aaad576dce1d26b64a (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}" >>$@;\ |