libbsd: enable package on ARM
authorMaxime Hadjinlian <maxime.hadjinlian@gmail.com>
Sun, 5 Oct 2014 19:47:52 +0000 (21:47 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 5 Oct 2014 21:08:19 +0000 (23:08 +0200)
Rework the architecture dependency by adding a
BR2_PACKAGE_LIBBSD_ARCH_SUPPORTS blind option.

[Thomas: slightly reword commit log.]

Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tested-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/libbsd/Config.in

index e22226a093773c00d317f023d6716bf28b6decf6..d521f05444b69267c0b4e4b40912aa2039a949c3 100644 (file)
@@ -1,8 +1,13 @@
+config BR2_PACKAGE_LIBBSD_ARCH_SUPPORTS
+       bool
+       # libbsd requires a.out.h, which is only available for those
+       # architectures: arm, x86 (and alpha, currently not supported in Buildroot;
+       # also m68k which is currently not enabled, so can't be tested.)
+       default y if BR2_arm || BR2_i386 || BR2_x86_64
+
 config BR2_PACKAGE_LIBBSD
        bool "libbsd"
-       # libbsd requires a.out.h, which is only available for those
-       # architectures: arm, m68k, x86 (and alpha, but we don't care.)
-       depends on ( BR2_i386 || BR2_x86_64 )
+       depends on BR2_PACKAGE_LIBBSD_ARCH_SUPPORTS
        depends on BR2_TOOLCHAIN_HAS_THREADS
        depends on BR2_TOOLCHAIN_USES_GLIBC
        help
@@ -15,5 +20,5 @@ config BR2_PACKAGE_LIBBSD
          http://libbsd.freedesktop.org/
 
 comment "libbsd needs an (e)glibc toolchain w/ threads"
-       depends on ( BR2_i386 || BR2_x86_64 )
+       depends on BR2_PACKAGE_LIBBSD_ARCH_SUPPORTS
        depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_TOOLCHAIN_USES_GLIBC