mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] rootfs: Allow installation of /etc/modprobe.conf
@ 2012-01-17 21:08 Bernhard Walle
  0 siblings, 0 replies; only message in thread
From: Bernhard Walle @ 2012-01-17 21:08 UTC (permalink / raw)
  To: ptxdist

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-01-17 21:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-17 21:08 [ptxdist] [PATCH] rootfs: Allow installation of /etc/modprobe.conf Bernhard Walle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox