From: Deepak Saxena <dsaxena@plexity.net>
To: sam@ravnborg.org
Cc: linux-kernel@vger.kernel.org, Armin Kuster <akuster@mvista.com>
Subject: [PATCH] kbuild: Disable depmod in cross-compile kernel build
Date: Thu, 18 Oct 2007 11:01:57 -0700 [thread overview]
Message-ID: <20071018180157.GA11408@plexity.net> (raw)
When building embedded systems in a cross-compile environment and
populating a target's file system image, we don't want to run the
depmod on the host as we may be building for a completely different
architecture. Since there's no such thing as a cross-depmod, we
just disable running depmod in the cross-compile case and we just
run depmod on the target at bootup.
Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Deepak Saxena <dsaxena@mvista.com>
diff --git a/Makefile b/Makefile
index 529b904..1705a91 100644
--- a/Makefile
+++ b/Makefile
@@ -1032,7 +1032,11 @@ depmod_opts := -b $(INSTALL_MOD_PATH) -r
endif
PHONY += _modinst_post
_modinst_post: _modinst_
- if [ -r System.map -a -x $(DEPMOD) ]; then $(DEPMOD) -ae -F System.map $(depmod_opts) $(KERNELRELEASE); fi
+ @if [ "$(CROSS_COMPILE)" = "" ]; then \
+ if [ -r System.map -a -x $(DEPMOD) ]; then \
+ $(DEPMOD) -ae -F System.map $(depmod_opts) $(KERNELRELEASE); \
+ fi \
+ fi
else # CONFIG_MODULES
--
Deepak Saxena - dsaxena@plexity.net - http://www.plexity.net
"He who sacrifices freedom for security deserves neither" - Ben Franklin
next reply other threads:[~2007-10-18 19:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-18 18:01 Deepak Saxena [this message]
2007-10-18 19:26 ` [PATCH] kbuild: Disable depmod in cross-compile kernel build Sam Ravnborg
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=20071018180157.GA11408@plexity.net \
--to=dsaxena@plexity.net \
--cc=akuster@mvista.com \
--cc=linux-kernel@vger.kernel.org \
--cc=sam@ravnborg.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 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.