From: Ian Campbell <ijc@hellion.org.uk>
To: Michal Marek <mmarek@suse.cz>, linux-kbuild@vger.kernel.org
Cc: Ben Hutchings <ben@decadent.org.uk>,
maximilian attems <max@stro.at>,
debian-kernel@lists.debian.org, Ian Campbell <ijc@hellion.org.uk>
Subject: [PATCH] deb-pkg: Apply $(CROSS_COMPILE) when calling objcopy
Date: Mon, 2 Jun 2014 07:47:37 +0100 [thread overview]
Message-ID: <1401691657-12222-1-git-send-email-ijc@hellion.org.uk> (raw)
Allows me to cross build an armhf package from amd64.
Signed-off-by: Ian Campbell <ijc@hellion.org.uk>
---
scripts/package/builddeb | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/scripts/package/builddeb b/scripts/package/builddeb
index f46e4dd..c22ab79 100644
--- a/scripts/package/builddeb
+++ b/scripts/package/builddeb
@@ -155,11 +155,11 @@ if grep -q '^CONFIG_MODULES=y' $KCONFIG_CONFIG ; then
for module in $(find lib/modules/ -name *.ko); do
mkdir -p $(dirname $dbg_dir/usr/lib/debug/$module)
# only keep debug symbols in the debug file
- objcopy --only-keep-debug $module $dbg_dir/usr/lib/debug/$module
+ ${CROSS_COMPILE}objcopy --only-keep-debug $module $dbg_dir/usr/lib/debug/$module
# strip original module from debug symbols
- objcopy --strip-debug $module
+ ${CROSS_COMPILE}objcopy --strip-debug $module
# then add a link to those
- objcopy --add-gnu-debuglink=$dbg_dir/usr/lib/debug/$module $module
+ ${CROSS_COMPILE}objcopy --add-gnu-debuglink=$dbg_dir/usr/lib/debug/$module $module
done
)
fi
--
1.9.0
next reply other threads:[~2014-06-02 7:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-02 6:47 Ian Campbell [this message]
2014-06-02 7:32 ` [PATCH] deb-pkg: Apply $(CROSS_COMPILE) when calling objcopy maximilian attems
2014-06-02 9:29 ` Fathi Boudra
2014-06-02 9:39 ` Ian Campbell
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=1401691657-12222-1-git-send-email-ijc@hellion.org.uk \
--to=ijc@hellion.org.uk \
--cc=ben@decadent.org.uk \
--cc=debian-kernel@lists.debian.org \
--cc=linux-kbuild@vger.kernel.org \
--cc=max@stro.at \
--cc=mmarek@suse.cz \
/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