libaio: introduce a BR2_PACKAGE_LIBAIO_ARCH_SUPPORTS option
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Thu, 25 Jun 2015 14:04:55 +0000 (16:04 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 28 Jun 2015 13:26:40 +0000 (15:26 +0200)
In order to allow other packages to easily select libaio without
duplicating its complicated architecture dependencies, this commit
introduces a BR2_PACKAGE_LIBAIO_ARCH_SUPPORTS blind option.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/blktrace/Config.in
package/gadgetfs-test/Config.in
package/libaio/Config.in

index 09c95eb39ae7a0a69a6e6f9d97af2352ae576e5f..ed5d78a542c628e7d21c37053fb434003e9a370f 100644 (file)
@@ -2,11 +2,7 @@ config BR2_PACKAGE_BLKTRACE
        bool "blktrace"
        # Uses posix_spawn()
        depends on BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_MUSL
-       # Because of libaio arch depends
-       depends on \
-               BR2_arm   || BR2_armeb || BR2_i386   || \
-               BR2_m68k  || BR2_mips  || BR2_mipsel || BR2_powerpc || \
-               BR2_sparc || BR2_x86_64
+       depends on BR2_PACKAGE_LIBAIO_ARCH_SUPPORTS
        select BR2_PACKAGE_LIBAIO
        help
          blktrace is a block layer IO tracing mechanism which provides
index 38358f2a1cd593965a1ebe0adbf4863dbc241ee7..9a603066e7affe4131b96cb07ae3f4b14d192c5a 100644 (file)
@@ -8,12 +8,8 @@ if BR2_PACKAGE_GADGETFS_TEST
 
 config BR2_PACKAGE_GADGETFS_TEST_USE_AIO
        bool "use asynchronous i/o"
+       depends on BR2_PACKAGE_LIBAIO_ARCH_SUPPORTS
        select BR2_PACKAGE_LIBAIO
-       # libaio is available only on few architectures
-       depends on \
-               BR2_arm   || BR2_armeb || BR2_i386   || \
-               BR2_m68k  || BR2_mips  || BR2_mipsel || BR2_powerpc || \
-               BR2_sparc || BR2_x86_64
        help
          Select this to have gadgetfs-test do asynchronous I/O using
          the libaio library.
index 622fd55a5e8370b58658d78d471754caaf497324..cc44cb6dbcf6d490c539b56ec2f6caada3ee9bd3 100644 (file)
@@ -1,8 +1,11 @@
+config BR2_PACKAGE_LIBAIO_ARCH_SUPPORTS
+       bool
+       default y if BR2_arm || BR2_armeb || BR2_i386 || \
+               BR2_m68k || BR2_mips || BR2_mipsel || BR2_powerpc || \
+               BR2_sparc || BR2_x86_64
+
 config BR2_PACKAGE_LIBAIO
        bool "libaio"
-       depends on \
-               BR2_arm   || BR2_armeb || BR2_i386   || \
-               BR2_m68k  || BR2_mips  || BR2_mipsel || BR2_powerpc || \
-               BR2_sparc || BR2_x86_64
+       depends on BR2_PACKAGE_LIBAIO_ARCH_SUPPORTS
        help
          Library for doing asynchronous I/O