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 <bernh...@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