From: Martin Fuzzey <mfuzzey@parkeon.com>
To: linux-kbuild@vger.kernel.org
Subject: [PATCH] firmware build: Fix build failure when using CONFIG_EXTRA_FIRMWARE with seperate output dir.
Date: Fri, 21 Dec 2012 19:06:01 +0100 [thread overview]
Message-ID: <20121221180601.3140.75121.stgit@localhost> (raw)
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))
reply other threads:[~2012-12-21 18:26 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20121221180601.3140.75121.stgit@localhost \
--to=mfuzzey@parkeon.com \
--cc=linux-kbuild@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox