Skip to contentSkip to conversation

package/mesa3d: Add option to build OSMesa

PATCH New André Hentschel 3 participants 4 messages Oct 3, 2015 – Oct 13, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/mesa3d: Add option to build OSMesa

---
 package/mesa3d/Config.in | 7 +++++++
 package/mesa3d/mesa3d.mk | 6 ++++++
 2 files changed, 13 insertions(+)
package/mesa3d/Config.in +7 -0
index a658986..fdeb599 100644
@@ -117,6 +117,13 @@ config BR2_PACKAGE_MESA3D_DRI_DRIVER_RADEON
 
 endif # BR2_PACKAGE_XORG7
 
+comment "Off-screen Rendering"
+
+config BR2_PACKAGE_MESA3D_OSMESA
+	bool "OSMesa library"
+	help
+	  The OSMesa API provides functions for making off-screen renderings.
+
 if BR2_PACKAGE_MESA3D_DRIVER
 
 comment "Additional API Support"
package/mesa3d/mesa3d.mk +6 -0
index f7feb0f..70ec2ec 100644
@@ -110,6 +110,12 @@ endif
 
 # APIs
 
+ifeq ($(BR2_PACKAGE_MESA3D_OSMESA),y)
+MESA3D_CONF_OPTS += --enable-osmesa
+else
+MESA3D_CONF_OPTS += --disable-osmesa
+endif
+
 # Always enable OpenGL:
 #   - it is needed for GLES (mesa3d's ./configure is a bit weird)
 #   - but if no DRI driver is enabled, then libgl is not built,
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 package/mesa3d: Add option to build OSMesa

Hi,

Just wanted to note that this patch was tested with various other mesa3d options and on different archs and toolchains (uclibc, glibc, musl, extern, intern) since I submitted it

Am 03.10.2015 um 19:21 schrieb Andr? Hentschel:

Quoted 42 lines
---
 package/mesa3d/Config.in | 7 +++++++
 package/mesa3d/mesa3d.mk | 6 ++++++
 2 files changed, 13 insertions(+)
package/mesa3d/Config.in +7 -0
index a658986..fdeb599 100644
@@ -117,6 +117,13 @@ config BR2_PACKAGE_MESA3D_DRI_DRIVER_RADEON
 
 endif # BR2_PACKAGE_XORG7
 
+comment "Off-screen Rendering"
+
+config BR2_PACKAGE_MESA3D_OSMESA
+	bool "OSMesa library"
+	help
+	  The OSMesa API provides functions for making off-screen renderings.
+
 if BR2_PACKAGE_MESA3D_DRIVER
 
 comment "Additional API Support"
package/mesa3d/mesa3d.mk +6 -0
index f7feb0f..70ec2ec 100644
@@ -110,6 +110,12 @@ endif
 
 # APIs
 
+ifeq ($(BR2_PACKAGE_MESA3D_OSMESA),y)
+MESA3D_CONF_OPTS += --enable-osmesa
+else
+MESA3D_CONF_OPTS += --disable-osmesa
+endif
+
 # Always enable OpenGL:
 #   - it is needed for GLES (mesa3d's ./configure is a bit weird)
 #   - but if no DRI driver is enabled, then libgl is not built,
#2 lore raw

PATCH 1/1 package/mesa3d: Add option to build OSMesa

In reply to André Hentschel

Am Sat, 03 Oct 2015 19:21:55 +0200 schrieb Andr? Hentschel:

Quoted 11 lines
---
 package/mesa3d/Config.in | 7 +++++++
 package/mesa3d/mesa3d.mk | 6 ++++++
 2 files changed, 13 insertions(+)
package/mesa3d/Config.in +0 -0
index a658986..fdeb599 100644

package/mesa3d/Config.in config BR2_PACKAGE_MESA3D_DRI_DRIVER_RADEON · line 126

Quoted 10 lines
package/mesa3d/Config.in +7 -0
@@ -117,6 +117,13 @@ config BR2_PACKAGE_MESA3D_DRI_DRIVER_RADEON
 
 endif # BR2_PACKAGE_XORG7
 
+comment "Off-screen Rendering"
+
+config BR2_PACKAGE_MESA3D_OSMESA
+	bool "OSMesa library"
+	help
+	  The OSMesa API provides functions for making off-screen renderings.
+
#3 lore raw

PATCH 1/1 package/mesa3d: Add option to build OSMesa

In reply to André Hentschel

Dear Andr? Hentschel,

Quoted 5 lines · Andr? Hentschel
---
 package/mesa3d/Config.in | 7 +++++++
 package/mesa3d/mesa3d.mk | 6 ++++++
 2 files changed, 13 insertions(+)

Applied, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com