aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/mesa
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2011-10-04 14:15:28 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-10-11 17:04:30 +0100
commit1e9b3af92294fa417ccf9c2cb750c59c277a1e73 (patch)
tree218d64f68c9b37a36e3ff7a4a09b8b61936f4dbc /meta/recipes-graphics/mesa
parentf1fb94ee3a91091d678752e9e7c4db0787ea32ff (diff)
downloadopenembedded-core-contrib-1e9b3af92294fa417ccf9c2cb750c59c277a1e73.tar.gz
glx-use-tls.inc: add include file to enable glx-tls only when TARGET_OS isn't uclibc
* 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
Diffstat (limited to 'meta/recipes-graphics/mesa')
-rw-r--r--meta/recipes-graphics/mesa/glx-use-tls.inc7
1 files changed, 7 insertions, 0 deletions
diff --git a/meta/recipes-graphics/mesa/glx-use-tls.inc b/meta/recipes-graphics/mesa/glx-use-tls.inc
new file mode 100644
index 00000000000..7530872fa42
--- /dev/null
+++ b/meta/recipes-graphics/mesa/glx-use-tls.inc
@@ -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)}"