linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* udev: disable mtd_probe?
@ 2011-07-18 20:45 Allin Cottrell
  2011-07-18 21:10 ` Kay Sievers
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: Allin Cottrell @ 2011-07-18 20:45 UTC (permalink / raw)
  To: linux-hotplug

[-- 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

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2011-07-19 20:06 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-18 20:45 udev: disable mtd_probe? Allin Cottrell
2011-07-18 21:10 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).