mesa-dri: move tls configure logic to a class
authorMichael Smith <msmith@cbnco.com>
Mon, 13 Jul 2009 19:07:18 +0000 (15:07 -0400)
committerMichael Smith <msmith@cbnco.com>
Mon, 24 Aug 2009 16:29:58 +0000 (12:29 -0400)
Will allow reuse by xorg-xserver.

Signed-off-by: Michael Smith <msmith@cbnco.com>
classes/glx-use-tls.bbclass [moved from recipes/mesa/mesa-tls.inc with 81% similarity]
recipes/mesa/mesa-common.inc

similarity index 81%
rename from recipes/mesa/mesa-tls.inc
rename to classes/glx-use-tls.bbclass
index 1472aa7..7530872 100644 (file)
@@ -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)}"
index 4f18c2f..d7bfc14 100644 (file)
@@ -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}"