public inbox for linux-kbuild@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] firmware build: Fix build failure when using CONFIG_EXTRA_FIRMWARE with seperate output dir.
@ 2012-12-21 18:06 Martin Fuzzey
  0 siblings, 0 replies; only message in thread
From: Martin Fuzzey @ 2012-12-21 18:06 UTC (permalink / raw)
  To: linux-kbuild

When building with a seperate output directory (O=) and
CONFIG_EXTRA_FIRMWARE the build failed with
	firmware/3com/typhoon.bin.gen.S: Assembler messages:
	firmware/3com/typhoon.bin.gen.S:5: Error: file not found: /home/linux_src/firmware/3com/typhoon.bin

Because the generated binary is in the $(objdir) but the generated .S
file tries to reference it in the $(srcdir)

Signed-off-by: Martin Fuzzey <mfuzzey@parkeon.com>
---
 firmware/Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/firmware/Makefile b/firmware/Makefile
index eeb1403..a47e499 100644
--- a/firmware/Makefile
+++ b/firmware/Makefile
@@ -5,7 +5,7 @@
 # Create $(fwabs) from $(CONFIG_EXTRA_FIRMWARE_DIR) -- if it doesn't have a
 # leading /, it's relative to $(srctree).
 fwdir := $(subst ",,$(CONFIG_EXTRA_FIRMWARE_DIR))
-fwabs := $(addprefix $(srctree)/,$(filter-out /%,$(fwdir)))$(filter /%,$(fwdir))
+fwabs := $(addprefix $(objtree)/,$(filter-out /%,$(fwdir)))$(filter /%,$(fwdir))
 
 fw-external-y := $(subst ",,$(CONFIG_EXTRA_FIRMWARE))
 


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-12-21 18:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-21 18:06 [PATCH] firmware build: Fix build failure when using CONFIG_EXTRA_FIRMWARE with seperate output dir Martin Fuzzey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox