libatomic_ops: make it available only on supported architectures
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 20 Mar 2012 11:11:04 +0000 (12:11 +0100)
committerPeter Korsgaard <jacmet@sunsite.dk>
Tue, 20 Mar 2012 13:20:18 +0000 (14:20 +0100)
libatomic_ops build fails on architectures such as MIPS or SuperH that
are not supported. So we make it possible to select the libatomic_ops
package only for the architectures that are known to be supported.

[Peter: add armeb as supported arch]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/libatomic_ops/Config.in
package/libdrm/Config.in

index b9f14d198913cc7902ea0fdebe0023abeadb9438..3d5d0a8242952b20004f0804c86f5b160f1f8baa 100644 (file)
@@ -1,4 +1,5 @@
 config BR2_PACKAGE_LIBATOMIC_OPS
        bool "libatomic_ops"
+       depends on BR2_arm || BR2_armeb || BR2_i386 || BR2_sparc || BR2_powerpc || BR2_x86_64
        help
          Atomic operations library
index d68f9d5cb81f8ac06e5a032c0986486c9f2a7255..f3dab9a2c2e4506820082a08629a76e8dc8c5ab4 100644 (file)
@@ -8,7 +8,10 @@ config BR2_PACKAGE_LIBDRM
        select BR2_PACKAGE_XLIB_LIBXMU
        select BR2_PACKAGE_XPROTO_DRI2PROTO
        select BR2_PACKAGE_PTHREAD_STUBS
-       select BR2_PACKAGE_LIBATOMIC_OPS if BR2_PACKAGE_XDRIVER_XF86_VIDEO_INTEL
+       # libatomic_ops is only available on a subset of the supported
+       # architectures, and we make the assumption that the intel
+       # driver can only be used on x86 and x86_64 machines.
+       select BR2_PACKAGE_LIBATOMIC_OPS if (BR2_PACKAGE_XDRIVER_XF86_VIDEO_INTEL && (BR2_i386 || BR2_x86_64))
        help
          Direct Rendering Manager