From: Allin Cottrell <cottrell@wfu.edu>
To: linux-hotplug@vger.kernel.org
Subject: udev: disable mtd_probe?
Date: Mon, 18 Jul 2011 20:45:09 +0000 [thread overview]
Message-ID: <alpine.LNX.2.00.1107181640050.10649@waverley.Belkin> (raw)
[-- Attachment #1: Type: TEXT/PLAIN, Size: 474 bytes --]
Since the new mechanism for enabling/disabling selected
components of the udev "extras" was introduced it hasn't been
possible to disable mtd_probe, so far as I can see.
Could we please have that option, unless there are compelling
reasons to the contrary? The MTD stuff drags in a bunch of
dependencies.
I'm attaching a little patch to configure.ac and Makefile.am
in udev-172 that does the job.
--
Allin Cottrell
Department of Economics
Wake Forest University, NC
[-- Attachment #2: Type: TEXT/PLAIN, Size: 2878 bytes --]
diff -ur udev-172.orig/configure.ac udev-172/configure.ac
--- udev-172.orig/configure.ac 2011-07-10 19:42:53.958052609 -0400
+++ udev-172/configure.ac 2011-07-18 09:22:25.834001037 -0400
@@ -87,6 +87,14 @@
AM_CONDITIONAL([ENABLE_RULE_GENERATOR], [test "x$enable_rule_generator" = xyes])
# ------------------------------------------------------------------------------
+# mtd_probe - autoloads FTL module for mtd devices
+# ------------------------------------------------------------------------------
+AC_ARG_ENABLE([mtd_probe],
+ AS_HELP_STRING([--disable-mtd_probe], [disable MTD support]),
+ [], [enable_mtd_probe=yes])
+AM_CONDITIONAL([ENABLE_MTD_PROBE], [test "x$enable_mtd_probe" = xyes])
+
+# ------------------------------------------------------------------------------
# usb/pci-db - read vendor/device string database
# ------------------------------------------------------------------------------
AC_ARG_ENABLE([hwdb],
diff -ur udev-172.orig/Makefile.am udev-172/Makefile.am
--- udev-172.orig/Makefile.am 2011-07-10 19:09:01.791662889 -0400
+++ udev-172/Makefile.am 2011-07-18 09:22:45.453001047 -0400
@@ -294,17 +294,6 @@
dist_udevrules_DATA += extras/v4l_id/60-persistent-v4l.rules
# ------------------------------------------------------------------------------
-# mtd_probe - autoloads FTL module for mtd devices
-# ------------------------------------------------------------------------------
-extras_mtd_probe_mtd_probe_SOURCES = \
- extras/mtd_probe/mtd_probe.c \
- extras/mtd_probe/mtd_probe.h \
- extras/mtd_probe/probe_smartmedia.c
-extras_mtd_probe_mtd_probe_CPPFLAGS = $(AM_CPPFLAGS)
-dist_udevrules_DATA += extras/mtd_probe/75-probe_mtd.rules
-libexec_PROGRAMS += extras/mtd_probe/mtd_probe
-
-# ------------------------------------------------------------------------------
# accelerometer - updates device orientation
# ------------------------------------------------------------------------------
extras_accelerometer_accelerometer_SOURCES = extras/accelerometer/accelerometer.c
@@ -333,6 +322,20 @@
extras/rule_generator/75-persistent-net-generator.rules
endif
+if ENABLE_MTD_PROBE
+# ------------------------------------------------------------------------------
+# mtd_probe - autoloads FTL module for mtd devices
+# ------------------------------------------------------------------------------
+extras_mtd_probe_mtd_probe_SOURCES = \
+ extras/mtd_probe/mtd_probe.c \
+ extras/mtd_probe/mtd_probe.h \
+ extras/mtd_probe/probe_smartmedia.c
+extras_mtd_probe_mtd_probe_CPPFLAGS = $(AM_CPPFLAGS)
+dist_udevrules_DATA += extras/mtd_probe/75-probe_mtd.rules
+libexec_PROGRAMS += extras/mtd_probe/mtd_probe
+
+endif
+
if ENABLE_HWDB
# ------------------------------------------------------------------------------
# usb/pci-db - read vendor/device string database
next reply other threads:[~2011-07-18 20:45 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-18 20:45 Allin Cottrell [this message]
2011-07-18 21:10 ` udev: disable mtd_probe? Kay Sievers
2011-07-18 21:17 ` Gabor Z. Papp
2011-07-18 21:19 ` Kay Sievers
2011-07-18 21:22 ` Gabor Z. Papp
2011-07-18 21:37 ` Allin Cottrell
2011-07-18 21:40 ` Kay Sievers
2011-07-18 21:44 ` Kay Sievers
2011-07-18 21:49 ` Kay Sievers
2011-07-19 16:06 ` Allin Cottrell
2011-07-19 20:06 ` Kay Sievers
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=alpine.LNX.2.00.1107181640050.10649@waverley.Belkin \
--to=cottrell@wfu.edu \
--cc=linux-hotplug@vger.kernel.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