systemd: enable build for supported architectures.
authorEric Le Bihan <eric.le.bihan.dev@free.fr>
Fri, 28 Mar 2014 16:31:06 +0000 (17:31 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 29 Mar 2014 09:22:52 +0000 (10:22 +0100)
Systemd only supports the architectures defined in
src/shared/architecture.h. So via a new parameter named
BR2_PACKAGE_SYSTEMD_ARCH_SUPPORTS, we enable the build of this package
only for those architectures.

Fixes http://autobuild.buildroot.net/results/bcc/bcce95eb0748505c0d62db21a6e420aae3c3181b/

Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/systemd/Config.in
system/Config.in

index 838e13e24ea560d1f8257f80e1d73e70847a9774..095fee0336ea27791831d947d27124224e52e04f 100644 (file)
@@ -1,7 +1,14 @@
+config BR2_PACKAGE_SYSTEMD_ARCH_SUPPORTS
+       bool
+       # see src/shared/architecture.h
+       default y if BR2_arm || BR2_armeb || BR2_i386 || BR2_mips || \
+               BR2_mipsel || BR2_powerpc || BR2_sh4 || BR2_sh4eb || \
+               BR2_sh4a || BR2_sh4aeb || BR2_sparc || BR2_x86_64 || \
+               BR2_aarch64 || BR2_m68k
+
 config BR2_PACKAGE_SYSTEMD
        bool "systemd"
        depends on BR2_INIT_SYSTEMD
-       depends on !BR2_avr32 # no epoll_create1
        depends on BR2_LARGEFILE # util-linux
        depends on BR2_USE_WCHAR # util-linux
        depends on BR2_INET_IPV6
index e8f1ed6a2dca8cb325b04f8ae08888ae8a5d14f3..8ff8d49ac2894bdea6d209e4ce92f9c9d4eeeabe 100644 (file)
@@ -87,7 +87,7 @@ config BR2_INIT_SYSV
 
 config BR2_INIT_SYSTEMD
        bool "systemd"
-       depends on !BR2_avr32 # no epoll_create1
+       depends on BR2_PACKAGE_SYSTEMD_ARCH_SUPPORTS
        depends on BR2_TOOLCHAIN_USES_GLIBC
        depends on BR2_LARGEFILE
        depends on BR2_USE_WCHAR