All of lore.kernel.org
 help / color / mirror / Atom feed
* firmware: fix build of external firmware
@ 2014-08-07  7:58 Jan Beulich
  2014-08-08 13:20 ` Michal Marek
  0 siblings, 1 reply; 5+ messages in thread
From: Jan Beulich @ 2014-08-07  7:58 UTC (permalink / raw)
  To: Michal Marek; +Cc: linux-kbuild

It looks like commit 5180d5f483 ("firmware: Simplify directory
creation") uncovered a latent bug: The cmd_fwbin make macro, which is
being called without any arguments, referenced argument 2, which I
suppose previously just happened to be set to the right value (from an
enclosing macro invocation - some make versions don't always properly
clear unused macro arguments on nested macro invocations). In 3.16 with
such make versions it now points into the source tree instead,
resulting in build failure when building outside the source tree. And
obviously on make versions properly clearing unused arguments it would
have resolved to empty.

Signed-off-by: Jan Beulich <jbeulich@suse.com>

--- a/firmware/Makefile
+++ b/firmware/Makefile
@@ -159,7 +159,7 @@ quiet_cmd_fwbin = MK_FW   $@
 		  echo "    .section .rodata"				>>$@;\
 		  echo "    .p2align $${ASM_ALIGN}"			>>$@;\
 		  echo "_fw_$${FWSTR}_bin:"				>>$@;\
-		  echo "    .incbin \"$(2)\""				>>$@;\
+		  echo "    .incbin \"$(obj)/$$FWNAME\""		>>$@;\
 		  echo "_fw_end:"					>>$@;\
 		  echo "   .section .rodata.str,\"aMS\",$${PROGBITS},1"	>>$@;\
 		  echo "    .p2align $${ASM_ALIGN}"			>>$@;\




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-08-22 14:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-07  7:58 firmware: fix build of external firmware Jan Beulich
2014-08-08 13:20 ` Michal Marek
2014-08-08 13:29   ` Jan Beulich
2014-08-13 14:55     ` Michal Marek
2014-08-22 14:52       ` Jan Beulich

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.