kmod: does not support static builds
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 20 Aug 2013 11:03:04 +0000 (13:03 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Mon, 2 Sep 2013 21:22:14 +0000 (23:22 +0200)
Since kmod 14, the support for building a static library has been
removed completely from kmod. Therefore, we mark kmod as
!BR2_PREFER_STATIC_LIB, as well as all its reverse dependencies, which
includes the option to use the "udev" /dev management method.

[Peter: show comment for udev when BR2_PREFER_STATIC_LIB is enabled]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/kmod/Config.in
package/udev/Config.in
system/Config.in

index 49652375e653951b5d5a4c118ae9b2645b0b6570..bd44316cafd700b3f66029c81baec62798b16b44 100644 (file)
@@ -1,5 +1,6 @@
 config BR2_PACKAGE_KMOD
        bool "kmod"
+       depends on !BR2_PREFER_STATIC_LIB
        help
          handle kernel modules
 
index dd5ad7bd2c0168a1656d5dbf8a51c932c93c5c8d..d4d97c1781406dc04d52cfc60878eb80054cae49 100644 (file)
@@ -3,6 +3,7 @@ config BR2_PACKAGE_UDEV
        depends on BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_UDEV
        depends on BR2_LARGEFILE # util-linux
        depends on BR2_USE_WCHAR # util-linux
+       depends on !BR2_PREFER_STATIC_LIB # kmod
        select BR2_PACKAGE_UTIL_LINUX
        select BR2_PACKAGE_UTIL_LINUX_LIBBLKID
        select BR2_PACKAGE_KMOD
index d41f1847589ab0c573035deb7822d1bfc50fa71b..401285bb521cd9255c92a102867756e5ed98cd3e 100644 (file)
@@ -84,11 +84,15 @@ config BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_UDEV
        bool "Dynamic using udev"
        depends on BR2_LARGEFILE # udev
        depends on BR2_USE_WCHAR # udev
+       depends on !BR2_PREFER_STATIC_LIB # udev -> kmod
        select BR2_PACKAGE_UDEV
 
 comment "udev requires a toolchain with LARGEFILE + WCHAR support"
        depends on !(BR2_LARGEFILE && BR2_USE_WCHAR)
 
+comment "udev doesn't work with 'prefer static libraries'"
+       depends on BR2_PREFER_STATIC_LIB
+
 endchoice
 
 choice