diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2011-10-04 14:15:28 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-10-11 18:08:31 +0100 |
commit | a87ee718f96e8fedfc4eee13aaf8d13dc8b7aa16 (patch) | |
tree | 936f135c19895562d9e16249cf91bd9d707ac82f /meta/recipes-graphics | |
parent | a4cbf471147b9d184bdadd09e6a38586b19c5f1d (diff) | |
download | poky-a87ee718f96e8fedfc4eee13aaf8d13dc8b7aa16.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
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics')
-rw-r--r-- | meta/recipes-graphics/mesa/glx-use-tls.inc | 7 |
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 0000000000..7530872fa4 --- /dev/null +++ b/meta/recipes-graphics/mesa/glx-use-tls.inc | |||
@@ -0,0 +1,7 @@ | |||
1 | def get_tls_setting(bb, d): | ||
2 | # until we have no prober TLS support in uclibc disable it | ||
3 | if bb.data.getVar('TARGET_OS', d, 1).find('uclibc') >= 0 : | ||
4 | return "" | ||
5 | return "--enable-glx-tls" | ||
6 | |||
7 | EXTRA_OECONF += "${@get_tls_setting(bb, d)}" | ||