mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Bernhard Walle <bernhard@bwalle.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH] rootfs: Allow installation of /etc/modprobe.conf
Date: Tue, 17 Jan 2012 22:08:24 +0100	[thread overview]
Message-ID: <1326834504-53984-1-git-send-email-bernhard@bwalle.de> (raw)

I added this option in rootfs and not in module-init-tools because there
are various implementations of modprobe that are using that file
(module-init-tools, busybox and possibly kmod in future).

Signed-off-by: Bernhard Walle <bernhard@bwalle.de>
---
 rules/rootfs.in   |   10 ++++++++++
 rules/rootfs.make |    3 +++
 2 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/rules/rootfs.in b/rules/rootfs.in
index ecc3bf8..d8777c2 100644
--- a/rules/rootfs.in
+++ b/rules/rootfs.in
@@ -395,5 +395,15 @@ config ROOTFS_SERVICES
 	  If enabled, it installs the "./projectroot/etc/services" file if
 	  present, else a generic one from the ptxdist directory.
 
+config ROOTFS_MODPROBE_CONF
+	bool
+	default n
+	prompt "install /etc/modprobe.conf"
+	help
+	  If enabled, it installs the "./projectroot/etc/modprobe.conf" file if
+	  present. Default options for kernel modules can be configured in that
+	  file. It's read either in busybox modprobe or in the module-init-tools
+	  modprobe implementation.
+
 endmenu
 
diff --git a/rules/rootfs.make b/rules/rootfs.make
index ca7d3f4..e6187fc 100644
--- a/rules/rootfs.make
+++ b/rules/rootfs.make
@@ -226,6 +226,9 @@ endif
 ifdef PTXCONF_ROOTFS_SERVICES
 	@$(call install_alternative, rootfs, 0, 0, 0644, /etc/services)
 endif
+ifdef PTXCONF_ROOTFS_MODPROBE_CONF
+	@$(call install_alternative, rootfs, 0, 0, 0644, /etc/modprobe.conf)
+endif
 
 	@$(call install_finish, rootfs)
 
-- 
1.7.7.4


-- 
ptxdist mailing list
ptxdist@pengutronix.de

                 reply	other threads:[~2012-01-17 21:08 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=1326834504-53984-1-git-send-email-bernhard@bwalle.de \
    --to=bernhard@bwalle.de \
    --cc=ptxdist@pengutronix.de \
    /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