glx-use-tls.inc: add include file to enable glx-tls only when TARGET_OS isn't uclibc
authorMartin Jansa <Martin.Jansa@gmail.com>
Tue, 4 Oct 2011 12:15:28 +0000 (14:15 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 11 Oct 2011 17:08:31 +0000 (18:08 +0100)
* will be used in mesa-common.inc and xserver-xorg.inc
* based on mesa-tls.inc (glx-use-tls.bbclass) from
  http://git.openembedded.org/cgit.cgi/openembedded/commit/packages/mesa/mesa-tls.inc?id=b527d8f723c98c77f2f5c5358062e5348493d767

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-graphics/mesa/glx-use-tls.inc [new file with mode: 0644]

diff --git a/meta/recipes-graphics/mesa/glx-use-tls.inc b/meta/recipes-graphics/mesa/glx-use-tls.inc
new file mode 100644 (file)
index 0000000..7530872
--- /dev/null
@@ -0,0 +1,7 @@
+def get_tls_setting(bb, d):
+    # until we have no prober TLS support in uclibc disable it
+    if bb.data.getVar('TARGET_OS', d, 1).find('uclibc') >= 0 :
+        return ""
+    return "--enable-glx-tls"
+
+EXTRA_OECONF += "${@get_tls_setting(bb, d)}"