[oe-commits] Michael Smith : mesa-dri: move tls configure logic to a class

git version control git at git.openembedded.org
Mon Aug 24 16:30:24 UTC 2009


Module: openembedded.git
Branch: org.openembedded.dev
Commit: dfe2bb428bb6db6938859927a8004caa167b96a8
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=dfe2bb428bb6db6938859927a8004caa167b96a8

Author: Michael Smith <msmith at cbnco.com>
Date:   Mon Jul 13 15:07:18 2009 -0400

mesa-dri: move tls configure logic to a class

Will allow reuse by xorg-xserver.

Signed-off-by: Michael Smith <msmith at cbnco.com>

---

 .../mesa-tls.inc => classes/glx-use-tls.bbclass    |    3 ++-
 recipes/mesa/mesa-common.inc                       |    3 +--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/recipes/mesa/mesa-tls.inc b/classes/glx-use-tls.bbclass
similarity index 81%
rename from recipes/mesa/mesa-tls.inc
rename to classes/glx-use-tls.bbclass
index 1472aa7..7530872 100644
--- a/recipes/mesa/mesa-tls.inc
+++ b/classes/glx-use-tls.bbclass
@@ -1,6 +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)}"
diff --git a/recipes/mesa/mesa-common.inc b/recipes/mesa/mesa-common.inc
index 4f18c2f..d7bfc14 100644
--- a/recipes/mesa/mesa-common.inc
+++ b/recipes/mesa/mesa-common.inc
@@ -19,8 +19,7 @@ EXTRA_OECONF = "--enable-glu \
                 --disable-glut \
 	       "
 
-require mesa-tls.inc
-EXTRA_OECONF += "${@get_tls_setting(bb, d)} "
+inherit glx-use-tls
 
 # Package contents vary according to ${MACHINE_DRI_MODULES}.
 PACKAGE_ARCH = "${MACHINE}"





More information about the Openembedded-commits mailing list