From e2eb19c0f83f9b0517dca4af2e5fad82354ad619 Mon Sep 17 00:00:00 2001 From: Zeng Zhaoming Date: Thu, 7 Apr 2011 15:59:04 +0800 Subject: 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 --- firmware/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'firmware') 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}" >>$@;\ -- cgit v1.2.3