public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Peter Hjalmarsson" <xake@rymdraket.net>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/genkernel:xake commit in: /
Date: Mon, 15 Oct 2012 21:50:02 +0000 (UTC)	[thread overview]
Message-ID: <1350337179.bd6516b779817445be49a9a767f850113ced86c9.xake@gentoo> (raw)

commit:     bd6516b779817445be49a9a767f850113ced86c9
Author:     Peter Hjalmarsson <xake <AT> rymdraket <DOT> net>
AuthorDate: Mon Oct 15 21:30:27 2012 +0000
Commit:     Peter Hjalmarsson <xake <AT> rymdraket <DOT> net>
CommitDate: Mon Oct 15 21:39:39 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/genkernel.git;a=commit;h=bd6516b7

Call depmod after all possible kernel modules has been installed

This so we also run it for a possible kerncache

Signed-off-by: Peter Hjalmarsson <xake <AT> rymdraket.net>

---
 ChangeLog      |    3 +++
 gen_compile.sh |    7 -------
 genkernel      |   11 +++++++++++
 3 files changed, 14 insertions(+), 7 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 10680da..0cefed4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,9 @@
 # Distributed under the GPL v2
 # $Id$
 
+  15 Oct 2012; Peter Hjalmarsson <xake@gentoo.org> gen_compile.sh, genkernel:
+  Call depmod after all possible kernel modules has been installed
+
   15 Oct 2012; Robin H. Johnson <robbat2@gentoo.org> genkernel:
   Bump to 3.4.44.2 with depmod corner cases by xake.
 

diff --git a/gen_compile.sh b/gen_compile.sh
index ccc8b8d..5d64d63 100755
--- a/gen_compile.sh
+++ b/gen_compile.sh
@@ -301,13 +301,6 @@ compile_modules() {
 	export UNAME_MACHINE="${ARCH}"
 	[ "${INSTALL_MOD_PATH}" != '' ] && export INSTALL_MOD_PATH
 	MAKEOPTS="${MAKEOPTS} -j1" compile_generic "modules_install" kernel
-	print_info 1 "        >> Generating module dependency data..."
-	if [ "${INSTALL_MOD_PATH}" != '' ]
-	then
-		depmod -a -e -F "${KERNEL_OUTPUTDIR}"/System.map -b "${INSTALL_MOD_PATH}" ${KV}
-	else
-		depmod -a -e -F "${KERNEL_OUTPUTDIR}"/System.map ${KV}
-	fi
 	unset UNAME_MACHINE
 }
 

diff --git a/genkernel b/genkernel
index 9c8e45d..533b38e 100755
--- a/genkernel
+++ b/genkernel
@@ -256,6 +256,17 @@ then
 	gen_kerncache_extract_config
 fi
 
+if [ -d "${INSTALL_MOD_PATH}"/lib/modules/${KV} ]
+then
+	print_info 1 "        >> Generating module dependency data..."
+	if [ "${INSTALL_MOD_PATH}" != '' ]
+	then
+		depmod -a -e -F "${KERNEL_OUTPUTDIR}"/System.map -b "${INSTALL_MOD_PATH}" ${KV}
+	else
+		depmod -a -e -F "${KERNEL_OUTPUTDIR}"/System.map ${KV}
+	fi
+fi
+
 # Run callback
 if [ "${CMD_CALLBACK}" != "" ]
 then


             reply	other threads:[~2012-10-15 21:50 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-15 21:50 Peter Hjalmarsson [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-10-15 21:50 [gentoo-commits] proj/genkernel:xake commit in: / Peter Hjalmarsson
2012-10-13 21:49 Robin H. Johnson
2012-10-13 21:49 Robin H. Johnson
2012-10-13 21:49 Robin H. Johnson
2012-10-13 21:49 Robin H. Johnson
2012-07-24  6:28 Peter Hjalmarsson
2012-07-24  6:28 Peter Hjalmarsson
2012-07-24  6:28 Peter Hjalmarsson
2012-07-24  6:28 Peter Hjalmarsson
2012-07-24  6:28 Peter Hjalmarsson
2012-07-24  6:28 Peter Hjalmarsson
2011-04-11 15:59 Peter Hjalmarsson

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=1350337179.bd6516b779817445be49a9a767f850113ced86c9.xake@gentoo \
    --to=xake@rymdraket.net \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.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