--disable-action_modeswitch is needed when UDEV_EXPERIMENTAL is not defined

Signed-off-by: Jon Ringle <[email protected]>
---
 rules/udev.in   |    8 ++++++++
 rules/udev.make |   12 ++++++++++++
 2 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/rules/udev.in b/rules/udev.in
index 089a8f5..27fb3c3 100644
--- a/rules/udev.in
+++ b/rules/udev.in
@@ -9,6 +9,7 @@ menuconfig UDEV
        select ACL              if UDEV_EXTRA_UDEV_ACL
        select USBUTILS         if UDEV_EXTRA_USB_DB
        select LIBUSB_COMPAT    if UDEV_EXTRA_HID2HCI
+       select LIBUSB_COMPAT    if UDEV_EXTRA_MOBILE_ACTION_MODESWITCH
        select PCIUTILS         if UDEV_EXTRA_PCI_DB
        help
          udev provides a dynamic device directory containing only the files for
@@ -212,6 +213,13 @@ if UDEV_EXTRAS
                help
                  Keymap support
 
+       config UDEV_EXTRA_MOBILE_ACTION_MODESWITCH
+               bool
+               depends on !UDEV_EXPERIMENTAL
+               prompt "mobile-action-modeswitch"
+               help
+                 Option UMTS Modem support
+
        config UDEV_EXTRA_PATH_ID
                bool
                prompt "path_id"
diff --git a/rules/udev.make b/rules/udev.make
index 3346159..bbefc70 100644
--- a/rules/udev.make
+++ b/rules/udev.make
@@ -131,6 +131,12 @@ UDEV_AUTOCONF      += --enable-edd
 else
 UDEV_AUTOCONF  += --disable-edd
 endif
+
+ifdef PTXCONF_UDEV_EXTRA_MOBILE_ACTION_MODESWITCH
+UDEV_AUTOCONF  += --enable-action_modeswitch
+else
+UDEV_AUTOCONF  += --disable-action_modeswitch
+endif
 endif
 
 ifdef PTXCONF_UDEV_SELINUX
@@ -329,6 +335,12 @@ ifdef PTXCONF_UDEV_EXTRA_KEYMAP
                /lib/udev/rules.d/95-keymap.rules,n)
 endif
 
+ifdef PTXCONF_UDEV_EXTRA_MOBILE_ACTION_MODESWITCH
+       @$(call install_copy, udev, 0, 0, 0755, -, 
/lib/udev/mobile-action-modeswitch)
+       @$(call install_copy, udev, 0, 0, 0644, -, \
+               /lib/udev/rules.d/61-mobile-action.rules)
+endif
+
 ifdef PTXCONF_UDEV_EXTRA_PATH_ID
        @$(call install_copy, udev, 0, 0, 0755, -, /lib/udev/path_id)
 endif
-- 
1.7.0.4


-- 
ptxdist mailing list
[email protected]

Reply via email to