glmark2 and Mesa updates
v2 cover glmark2 and Mesa updates
This patch series adds the glmark2 and mesa3d-demos with supporing updates to the mesa3d, and libdrm stack.
v1->v2:
- updates based on review.
- add mesa3d-demos
Spenser Gilliland (7):
libdrm: bump and add experimental ARM framebuffer support
sunxi-cedarx: bump to newer version, use armel2 binaries, add demo
mesa3d: pull out from x11
mesa3d: modularize and bump to version 9.1.6
libpng12: new package
glmark2: new package
mesa3d-demos: new package
package/Config.in | 4 + package/glmark2/Config.in | 16 + package/glmark2/glmark2-add-mali-support.patch | 102 ++++++ package/glmark2/glmark2-fix-add-GLchar.patch | 17 + .../glmark2-gl-to-glesv2-on-drm-flavor.patch | 25 ++ package/glmark2/glmark2.mk | 69 ++++ package/libdrm/Config.in | 68 +++- package/libdrm/libdrm.mk | 53 +++- package/libpng12/Config.in | 9 + package/libpng12/libpng12.mk | 18 ++ package/mesa3d-demos/Config.in | 8 + .../mesa3d-demos/mesa3d-demos-optional-gl.patch | 348 +++++++++++++++++++++ package/mesa3d-demos/mesa3d-demos.mk | 63 ++++ package/mesa3d/Config.in | 180 +++++++++++ package/mesa3d/mesa3d-cross-glsl-compiler.patch | 41 +++ package/mesa3d/mesa3d-gbm-without-dri.patch | 30 ++ package/mesa3d/mesa3d.mk | 123 ++++++++ package/opengl/Config.in | 3 + package/opengl/libegl/libegl.mk | 4 + package/opengl/libgl/libgl.mk | 20 ++ package/opengl/libgles/libgles.mk | 4 + package/opengl/libopenvg/libopenvg.mk | 4 + package/sunxi-cedarx/Config.in | 10 + package/sunxi-cedarx/sunxi-cedarx.mk | 26 +- package/x11r7/Config.in | 1 - package/x11r7/mesa3d/Config.in | 15 - package/x11r7/mesa3d/mesa3d-uclibc-locale.patch | 56 ---- package/x11r7/mesa3d/mesa3d.mk | 40 --- .../xserver_xorg-server/xserver_xorg-server.mk | 4 +- 29 files changed, 1222 insertions(+), 139 deletions(-) create mode 100644 package/glmark2/Config.in create mode 100644 package/glmark2/glmark2-add-mali-support.patch create mode 100644 package/glmark2/glmark2-fix-add-GLchar.patch create mode 100644 package/glmark2/glmark2-gl-to-glesv2-on-drm-flavor.patch create mode 100644 package/glmark2/glmark2.mk create mode 100644 package/libpng12/Config.in create mode 100644 package/libpng12/libpng12.mk create mode 100644 package/mesa3d-demos/Config.in create mode 100644 package/mesa3d-demos/mesa3d-demos-optional-gl.patch create mode 100644 package/mesa3d-demos/mesa3d-demos.mk create mode 100644 package/mesa3d/Config.in create mode 100644 package/mesa3d/mesa3d-cross-glsl-compiler.patch create mode 100644 package/mesa3d/mesa3d-gbm-without-dri.patch create mode 100644 package/mesa3d/mesa3d.mk create mode 100644 package/opengl/libgl/libgl.mk delete mode 100644 package/x11r7/mesa3d/Config.in delete mode 100644 package/x11r7/mesa3d/mesa3d-uclibc-locale.patch delete mode 100644 package/x11r7/mesa3d/mesa3d.mk
Signature · 1 line
1.8.1.2
PATCH v2 1/7 libdrm: bump and add experimental ARM framebuffer support
--- package/libdrm/Config.in | 68 ++++++++++++++++++++++++++++++++++++++++-------- package/libdrm/libdrm.mk | 53 ++++++++++++++++++++++++++++++------- 2 files changed, 100 insertions(+), 21 deletions(-)
package/libdrm/Config.in +57 -11
@@ -1,22 +1,68 @@ config BR2_PACKAGE_LIBDRM bool "libdrm" + select BR2_PACKAGE_XLIB_LIBPTHREAD_STUBS depends on BR2_PACKAGE_XORG7 depends on BR2_LARGEFILE - select BR2_PACKAGE_XPROTO_GLPROTO - select BR2_PACKAGE_XPROTO_XF86VIDMODEPROTO - select BR2_PACKAGE_XLIB_LIBXXF86VM - select BR2_PACKAGE_XLIB_LIBXMU - select BR2_PACKAGE_XLIB_LIBPCIACCESS - select BR2_PACKAGE_XPROTO_DRI2PROTO - select BR2_PACKAGE_XLIB_LIBPTHREAD_STUBS - # libatomic_ops is only available on a subset of the supported - # architectures, and we make the assumption that the intel - # driver can only be used on x86 and x86_64 machines. - select BR2_PACKAGE_LIBATOMIC_OPS if (BR2_PACKAGE_XDRIVER_XF86_VIDEO_INTEL && (BR2_i386 || BR2_x86_64)) help Direct Rendering Manager http://dri.freedesktop.org/libdrm/ +if BR2_PACKAGE_LIBDRM + +menu "DRM Drivers" + +config BR2_PACKAGE_LIBDRM_INTEL + bool "intel" + select BR2_PACKAGE_LIBATOMIC_OPS + select BR2_PACKAGE_XLIB_LIBPCIACCESS + depends on BR2_i386 || BR2_x86_64 + help + installs intel graphics driver + +config BR2_PACKAGE_LIBDRM_RADEON + bool "radeon" + select BR2_PACKAGE_LIBATOMIC_OPS + select BR2_PACKAGE_XLIB_LIBPCIACCESS + depends on BR2_i386 || BR2_x86_64 + help + install AMD/ATI graphics driver + +config BR2_PACKAGE_LIBDRM_NOUVEAU + bool "nouveau" + select BR2_PACKAGE_XLIB_LIBPCIACCESS + depends on BR2_i386 || BR2_x86_64 + help + install Nvidia graphics driver + +config BR2_PACKAGE_LIBDRM_VMWGFX + bool "vmwgfx" + select BR2_PACKAGE_XLIB_LIBPCIACCESS + depends on BR2_i386 || BR2_x86_64 + help + installs Vmware graphics driver + +config BR2_PACKAGE_LIBDRM_OMAP + bool "omap (experimental)" + depends on BR2_arm + help + install the TI OMAP driver using an experimental API. + +config BR2_PACKAGE_LIBDRM_EXYNOS + bool "exynos (experimental)" + depends on BR2_arm + help + installs Samsung Exynos driver using an experimental API. + +config BR2_PACKAGE_LIBDRM_FREEDRENO + bool "freedreno (experimental)" + depends on BR2_arm + help + install Qualcomm Snapdragon driver using an experimental API. + +endmenu + +endif + comment "libdrm requires a toolchain with LARGEFILE support" depends on BR2_PACKAGE_XORG7 && !BR2_LARGEFILE
package/libdrm/libdrm.mk +43 -10
76 lines not on this page · raw message
Signature · 1 line
1.8.1.2
PATCH v2 1/7 libdrm: bump and add experimental ARM framebuffer support
Dear Spenser Gilliland,
Quoted 6 lines · Spenser Gilliland
Signed-off-by Spenser Gilliland <[email protected]>--- package/libdrm/Config.in | 68 ++++++++++++++++++++++++++++++++++++++++-------- package/libdrm/libdrm.mk | 53 ++++++++++++++++++++++++++++++------- 2 files changed, 100 insertions(+), 21 deletions(-)
I continue to believe your commit logs could be a little bit more verbose, but other than that:
Also, the xlib_libpthread-stubs package could probably be moved outside of the BR2_PACKAGE_XORG7 condition, but this can be done later on.
Finally, a question that remains is on what platforms did you test this? I.e which DRM driver did you enable to get Mesa3D providing the relevant libraries needed to run the glmark2 benchmark on your boards?
Thanks,
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
PATCH v2 1/7 libdrm: bump and add experimental ARM framebuffer support
In reply to Spenser GillilandQuoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Spenser" == Spenser Gilliland <[email protected]> writes:
Spenser> Signed-off-by: Spenser Gilliland <[email protected]> Spenser> ---
Spenser> package/libdrm/Config.in | 68 ++++++++++++++++++++++++++++++++++++++++-------- Spenser> package/libdrm/libdrm.mk | 53 ++++++++++++++++++++++++++++++-------
Spenser> 2 files changed, 100 insertions(+), 21 deletions(-)
Spenser> diff --git a/package/libdrm/Config.in b/package/libdrm/Config.in Spenser> index 8bf676b..533e985 100644
Spenser> --- a/package/libdrm/Config.in
Spenser> +++ b/package/libdrm/Config.in
Spenser> @@ -1,22 +1,68 @@
Spenser> config BR2_PACKAGE_LIBDRM
Spenser> bool "libdrm"
Spenser> + select BR2_PACKAGE_XLIB_LIBPTHREAD_STUBS
Spenser> depends on BR2_PACKAGE_XORG7
Spenser> depends on BR2_LARGEFILE
Spenser> - select BR2_PACKAGE_XPROTO_GLPROTO
Spenser> - select BR2_PACKAGE_XPROTO_XF86VIDMODEPROTO
Spenser> - select BR2_PACKAGE_XLIB_LIBXXF86VM
Spenser> - select BR2_PACKAGE_XLIB_LIBXMU
Spenser> - select BR2_PACKAGE_XLIB_LIBPCIACCESS
Spenser> - select BR2_PACKAGE_XPROTO_DRI2PROTO
Spenser> - select BR2_PACKAGE_XLIB_LIBPTHREAD_STUBS
Spenser> - # libatomic_ops is only available on a subset of the supported
Spenser> - # architectures, and we make the assumption that the intel
Spenser> - # driver can only be used on x86 and x86_64 machines.
Spenser> - select BR2_PACKAGE_LIBATOMIC_OPS if (BR2_PACKAGE_XDRIVER_XF86_VIDEO_INTEL && (BR2_i386 || BR2_x86_64))
Spenser> help
Spenser> Direct Rendering Manager
Spenser> http://dri.freedesktop.org/libdrm/
Spenser> +if BR2_PACKAGE_LIBDRM
Spenser> +
Spenser> +menu "DRM Drivers"
Spenser> +
Spenser> +config BR2_PACKAGE_LIBDRM_INTEL
Spenser> + bool "intel"
Spenser> + select BR2_PACKAGE_LIBATOMIC_OPS
Spenser> + select BR2_PACKAGE_XLIB_LIBPCIACCESS
Spenser> + depends on BR2_i386 || BR2_x86_64
Spenser> + help
Spenser> + installs intel graphics driver
Spenser> +
Spenser> +config BR2_PACKAGE_LIBDRM_RADEON
Spenser> + bool "radeon"
Spenser> + select BR2_PACKAGE_LIBATOMIC_OPS
Spenser> + select BR2_PACKAGE_XLIB_LIBPCIACCESS
Spenser> + depends on BR2_i386 || BR2_x86_64
Spenser> + help
Spenser> + install AMD/ATI graphics driver
Spenser> +
Spenser> +config BR2_PACKAGE_LIBDRM_NOUVEAU
Spenser> + bool "nouveau"
Spenser> + select BR2_PACKAGE_XLIB_LIBPCIACCESS
Spenser> + depends on BR2_i386 || BR2_x86_64
Spenser> + help
Spenser> + install Nvidia graphics driver
Spenser> +
Spenser> +config BR2_PACKAGE_LIBDRM_VMWGFX
Spenser> + bool "vmwgfx"
Spenser> + select BR2_PACKAGE_XLIB_LIBPCIACCESS
Spenser> + depends on BR2_i386 || BR2_x86_64
Spenser> + help
Spenser> + installs Vmware graphics driver
Spenser> +
Spenser> +config BR2_PACKAGE_LIBDRM_OMAP
Spenser> + bool "omap (experimental)"
Spenser> + depends on BR2_arm
Spenser> + help
Spenser> + install the TI OMAP driver using an experimental API.
Spenser> +
Spenser> +config BR2_PACKAGE_LIBDRM_EXYNOS
Spenser> + bool "exynos (experimental)"
Spenser> + depends on BR2_arm
Spenser> + help
Spenser> + installs Samsung Exynos driver using an experimental API.
Spenser> +
Spenser> +config BR2_PACKAGE_LIBDRM_FREEDRENO
Spenser> + bool "freedreno (experimental)"
Spenser> + depends on BR2_arm
Spenser> + help
Spenser> + install Qualcomm Snapdragon driver using an experimental API.
Spenser> +
Spenser> +endmenu
Spenser> +
Spenser> +endif
Spenser> +
Spenser> comment "libdrm requires a toolchain with LARGEFILE support"
Spenser> depends on BR2_PACKAGE_XORG7 && !BR2_LARGEFILE
Spenser> diff --git a/package/libdrm/libdrm.mk b/package/libdrm/libdrm.mk Spenser> index d3d2b2d..697cd2f 100644
Spenser> --- a/package/libdrm/libdrm.mk
Spenser> +++ b/package/libdrm/libdrm.mk
Spenser> @@ -4,7 +4,7 @@
Spenser> #
Spenser> ################################################################################
Spenser> -LIBDRM_VERSION = 2.4.38
Spenser> +LIBDRM_VERSION = 2.4.46
Spenser> LIBDRM_SOURCE = libdrm-$(LIBDRM_VERSION).tar.bz2 Spenser> LIBDRM_SITE = http://dri.freedesktop.org/libdrm/ Spenser> LIBDRM_LICENSE = MIT
Spenser> @@ -12,26 +12,59 @@ LIBDRM_LICENSE = MIT Spenser> LIBDRM_INSTALL_STAGING = YES
Spenser> LIBDRM_DEPENDENCIES = \
Spenser> - xproto_glproto \
Spenser> - xproto_xf86vidmodeproto \
Spenser> - xlib_libXxf86vm \
Spenser> - xlib_libXmu \
Spenser> - xlib_libpciaccess \
Spenser> - xproto_dri2proto \
Spenser> xlib_libpthread-stubs \
Spenser> host-pkgconf
Spenser> -ifeq ($(BR2_PACKAGE_XDRIVER_XF86_VIDEO_INTEL),y) Spenser> +LIBDRM_CONF_OPT = \
Spenser> + --disable-cairo-tests \
Spenser> + --disable-manpages
Spenser> +
Spenser> +ifeq ($(BR2_PACKAGE_LIBDRM_INTEL),y)
You need to select LIBDRM_INTEL from XDRIVER_XF86_VIDEO_INTEL then to ensure it is enabled.
Spenser> LIBDRM_CONF_OPT += --enable-intel
Spenser> -LIBDRM_DEPENDENCIES += libatomic_ops Spenser> +LIBDRM_DEPENDENCIES += libatomic_ops xlib_libpciaccess
Spenser> else Spenser> LIBDRM_CONF_OPT += --disable-intel Spenser> endif
Spenser> -ifneq ($(BR2_PACKAGE_XDRIVER_XF86_VIDEO_ATI),y) Spenser> +ifeq ($(BR2_PACKAGE_LIBDRM_RADEON),y)
Same here for ATI.
Spenser> +LIBDRM_CONF_OPT += --enable-radeon Spenser> +LIBDRM_DEPENDENCIES += xlib_libpciaccess Spenser> +else
Spenser> LIBDRM_CONF_OPT += --disable-radeon Spenser> endif
Spenser> +ifeq ($(BR2_PACKAGE_LIBDRM_NOUVEAU),y) Spenser> +LIBDRM_CONF_OPT += --enable-nouveau Spenser> +LIBDRM_DEPENDENCIES += xlib_libpciaccess Spenser> +else
Spenser> +LIBDRM_CONF_OPT += --disable-nouveau Spenser> +endif
Spenser> +
Spenser> +ifeq ($(BR2_PACKAGE_LIBDRM_VMWGFX),y) Spenser> +LIBDRM_CONF_OPT += --enable-vmwgfx Spenser> +LIBDRM_DEPENDENCIES += xlib_libpciaccess Spenser> +else
Spenser> +LIBDRM_CONF_OPT += --enable-vmwgfx Spenser> +endif
Conceptually we should also select this from the vmware driver, but it apparently only use it if mesa-xatracker is enabled (which we don't have).
Committed with that fixed, thanks.
Signature · 1 line
Bye, Peter Korsgaard
PATCH v2 2/7 sunxi-cedarx: bump to newer version, use armel2 binaries, add demo
In reply to Spenser Gilliland--- package/sunxi-cedarx/Config.in | 10 ++++++++++ package/sunxi-cedarx/sunxi-cedarx.mk | 26 ++++++++++++++++++++++---- 2 files changed, 32 insertions(+), 4 deletions(-)
package/sunxi-cedarx/Config.in +10 -0
@@ -10,5 +10,15 @@ config BR2_PACKAGE_SUNXI_CEDARX http://github.com/linux-sunxi/cedarx-libs http://linux-sunxi.org/CedarX +if BR2_PACKAGE_SUNXI_CEDARX + +config BR2_PACKAGE_SUNXI_CEDARX_DEMO + bool "install enc_dec_test demo" + help + Install a test program which verifies the functionality of the CedarX + libraries + +endif + comment "sunxi-cedarx requires an eglibc/glibc based toolchain" depends on !BR2_TOOLCHAIN_USES_GLIBC && BR2_arm
package/sunxi-cedarx/sunxi-cedarx.mk +22 -4
@@ -4,7 +4,7 @@ # ################################################################################ -SUNXI_CEDARX_VERSION = 74923e55fc +SUNXI_CEDARX_VERSION = 74c3e9052 SUNXI_CEDARX_SITE = http://github.com/linux-sunxi/cedarx-libs/tarball/$(SUNXI_CEDARX_VERSION) SUNXI_CEDARX_INSTALL_STAGING = YES
@@ -14,7 +14,12 @@ SUNXI_CEDARX_CONFIGURE_OPTS = \ ifeq ($(BR2_ARM_EABIHF),y) SUNXI_CEDARX_BIN_DIR = $(@D)/libcedarv/linux-armhf -# libavheap.so is only available on EABIHF +SUNXI_CEDARX_SAMPLE_LOC = $(SUNXI_CEDARX_BIN_DIR)/sample/ve +else +SUNXI_CEDARX_BIN_DIR = $(@D)/libcedarv/linux-armel2 +SUNXI_CEDARX_SAMPLE_LOC = $(SUNXI_CEDARX_BIN_DIR)/sample/output/ve +endif + define SUNXI_CEDARX_BUILD_AVHEAP $(TARGET_CC) $(TARGET_CFLAGS) \ -c $(SUNXI_CEDARX_BIN_DIR)/adapter/avheap/avheap.c \
@@ -25,18 +30,30 @@ define SUNXI_CEDARX_BUILD_AVHEAP -o $(SUNXI_CEDARX_BIN_DIR)/adapter/avheap/libavheap.so \ $(SUNXI_CEDARX_BIN_DIR)/adapter/avheap/avheap.o endef + define SUNXI_CEDARX_INSTALL_AVHEAP $(INSTALL) -D -m 755 $(SUNXI_CEDARX_BIN_DIR)/adapter/avheap/libavheap.so \ $(1)/usr/lib/libavheap.so endef -else -SUNXI_CEDARX_BIN_DIR = $(@D)/libcedarv/linux-armel + +ifeq ($(BR2_PACKAGE_SUNXI_CEDARX_DEMO),y) + +define SUNXI_CEDARX_BUILD_DEMO + $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(SUNXI_CEDARX_BIN_DIR)/sample +endef + +define SUNXI_CEDARX_INSTALL_DEMO + $(INSTALL) -D -m 755 $(SUNXI_CEDARX_SAMPLE_LOC) \ + $(TARGET_DIR)/usr/bin/ve +endef + endif define SUNXI_CEDARX_BUILD_CMDS $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(SUNXI_CEDARX_BIN_DIR) \ $(SUNXI_CEDARX_CONFIGURE_OPTS) $(SUNXI_CEDARX_BUILD_AVHEAP) + $(SUNXI_CEDARX_BUILD_DEMO) endef define SUNXI_CEDARX_INSTALL_STAGING_CMDS
@@ -54,6 +71,7 @@ define SUNXI_CEDARX_INSTALL_TARGET_CMDS $(INSTALL) -D -m 755 $(SUNXI_CEDARX_BIN_DIR)/libvecore/libvecore.so \ $(TARGET_DIR)/usr/lib/libvecore.so $(call SUNXI_CEDARX_INSTALL_AVHEAP, $(TARGET_DIR)) + $(SUNXI_CEDARX_INSTALL_DEMO) endef $(eval $(generic-package))
Signature · 1 line
1.8.1.2
PATCH v2 2/7 sunxi-cedarx: bump to newer version, use armel2 binaries, add demo
Dear Spenser Gilliland,
It'd be great if your patches were split in a slightly more fine-grained fashion. I.e this patch should have been three patches, for the three different things you mention in the patch title.
package/sunxi-cedarx/sunxi-cedarx.mk SUNXI_CEDARX_CONFIGURE_OPTS = \ · line 21
Quoted 11 lines · Spenser Gilliland
SUNXI_CEDARX_INSTALL_STAGING= YESpackage/sunxi-cedarx/sunxi-cedarx.mk +5
-1@@ -14,7 +14,12 @@ SUNXI_CEDARX_CONFIGURE_OPTS = \ ifeq ($(BR2_ARM_EABIHF),y) SUNXI_CEDARX_BIN_DIR = $(@D)/libcedarv/linux-armhf -# libavheap.so is only available on EABIHF +SUNXI_CEDARX_SAMPLE_LOC = $(SUNXI_CEDARX_BIN_DIR)/sample/ve +else +SUNXI_CEDARX_BIN_DIR = $(@D)/libcedarv/linux-armel2 +SUNXI_CEDARX_SAMPLE_LOC = $(SUNXI_CEDARX_BIN_DIR)/sample/output/ve +endif
I was confused by this for a while, but now I understand: since you've bumped the version, the libavheap.so library is now available for non-EABIhf toolchains.
BTW, silly from the cedarx people that the sample binary is not in the same location between EABIhf and EABI.
Also, what is the difference between the linux-armel2 and linux-armel directories in the CedarX stuff?
So, essentially, patch looks good to me.
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
PATCH v2 2/7 sunxi-cedarx: bump to newer version, use armel2 binaries, add demo
Thomas,
Quoted 23 lines · Thomas Petazzoni
Dear Spenser Gilliland,
It'd be great if your patches were split in a slightly more fine-grained fashion. I.e this patch should have been three patches, for the three different things you mention in the patch title.
package/sunxi-cedarx/sunxi-cedarx.mk SUNXI_CEDARX_CONFIGURE_OPTS = \ · line 21
Quoted 11 lines · Spenser Gilliland
SUNXI_CEDARX_INSTALL_STAGING= YESpackage/sunxi-cedarx/sunxi-cedarx.mk +5
-1@@ -14,7 +14,12 @@ SUNXI_CEDARX_CONFIGURE_OPTS = \ ifeq ($(BR2_ARM_EABIHF),y) SUNXI_CEDARX_BIN_DIR = $(@D)/libcedarv/linux-armhf -# libavheap.so is only available on EABIHF +SUNXI_CEDARX_SAMPLE_LOC = $(SUNXI_CEDARX_BIN_DIR)/sample/ve +else +SUNXI_CEDARX_BIN_DIR = $(@D)/libcedarv/linux-armel2 +SUNXI_CEDARX_SAMPLE_LOC = $(SUNXI_CEDARX_BIN_DIR)/sample/output/ve +endifI was confused by this for a while, but now I understand: since you've bumped the version, the libavheap.so library is now available for non-EABIhf toolchains.
Quoted 5 lines
BTW, silly from the cedarx people that the sample binary is not in the same location between EABIhf and EABI.
Also, what is the difference between the linux-armel2 and linux-armel directories in the CedarX stuff?
The major difference is the one you described above. Armel2 has libavheap while armel does not.
Quoted 3 lines
So, essentially, patch looks good to me.
Reviewed-by Thomas Petazzoni <[email protected]>
Great.
Quoted 6 lines
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
Thanks,
Spenser
Signature · 3 lines
Spenser Gilliland Computer Engineer Doctoral Candidate
PATCH v2 2/7 sunxi-cedarx: bump to newer version, use armel2 binaries, add demo
In reply to Spenser GillilandQuoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Spenser" == Spenser Gilliland <[email protected]> writes:
Spenser> Signed-off-by: Spenser Gilliland <[email protected]> Spenser> ---
Spenser> package/sunxi-cedarx/Config.in | 10 ++++++++++ Spenser> package/sunxi-cedarx/sunxi-cedarx.mk | 26 ++++++++++++++++++++++----
Spenser> 2 files changed, 32 insertions(+), 4 deletions(-)
Spenser> diff --git a/package/sunxi-cedarx/Config.in b/package/sunxi-cedarx/Config.in Spenser> index b280db0..aa520b5 100644
Spenser> --- a/package/sunxi-cedarx/Config.in
Spenser> +++ b/package/sunxi-cedarx/Config.in
Spenser> @@ -10,5 +10,15 @@ config BR2_PACKAGE_SUNXI_CEDARX
Spenser> http://github.com/linux-sunxi/cedarx-libs Spenser> http://linux-sunxi.org/CedarX
Spenser> +if BR2_PACKAGE_SUNXI_CEDARX
Spenser> +
Spenser> +config BR2_PACKAGE_SUNXI_CEDARX_DEMO
Spenser> + bool "install enc_dec_test demo"
Spenser> + help
Spenser> + Install a test program which verifies the functionality of the CedarX
Spenser> + libraries
Spenser> +
Spenser> +endif
Thanks, but it doesn't seem to build here:
make[1]: Entering directory `/home/peko/source/buildroot/output/build/sunxi-cedarx-74c3e9052/libcedarv/linux-armel2/sample'
arm-none-linux-gnueabi-gcc -Wall -O0 -g -I. -I./render -I./vdecoder/fbm -I./vdecoder/vbv -I./vdecoder/libvecore -I./vdecoder/libcedarv -I./vdecoder/adapter -I./vdecoder/adapter/cdxalloc -I./file_parser/pmp -I./include -I./file_parser/mov/inc -DFILE_PARSER -o main.o -c main.c arm-none-linux-gnueabi-gcc -Wall -O0 -g -I. -I./render -I./vdecoder/fbm -I./vdecoder/vbv -I./vdecoder/libvecore -I./vdecoder/libcedarv -I./vdecoder/adapter -I./vdecoder/adapter/cdxalloc -I./file_parser/pmp -I./include -I./file_parser/mov/inc -DFILE_PARSER -o render/render.o -c render/render.c arm-none-linux-gnueabi-gcc -Wall -O0 -g -I. -I./render -I./vdecoder/fbm -I./vdecoder/vbv -I./vdecoder/libvecore -I./vdecoder/libcedarv -I./vdecoder/adapter -I./vdecoder/adapter/cdxalloc -I./file_parser/pmp -I./include -I./file_parser/mov/inc -DFILE_PARSER -o file_parser/pmp/pmp.o -c file_parser/pmp/pmp.c arm-none-linux-gnueabi-gcc -Wall -O0 -g -I. -I./render -I./vdecoder/fbm -I./vdecoder/vbv -I./vdecoder/libvecore -I./vdecoder/libcedarv -I./vdecoder/adapter -I./vdecoder/adapter/cdxalloc -I./file_parser/pmp -I./include -I./file_parser/mov/inc -DFILE_PARSER -o file_parser/pmp/pmp_ctrl.o -c file_parser/pmp/pmp_ctrl.c In file included from file_parser/pmp/pmp.c:30:0:file_parser/pmp/pmp.h:33:23: fatal error: libcedarv.h: No such file or directory
compilation terminated.
make[1]: *** [file_parser/pmp/pmp.o] Error 1
make[1]: *** Waiting for unfinished jobs....
main.c:5:46: fatal error: libcedarv.h: No such file or directory
compilation terminated.
Signature · 1 line
Bye, Peter Korsgaard
PATCH v2 3/7 mesa3d: pull out from x11
In reply to Spenser Gilliland---
package/Config.in | 1 +
package/{x11r7 => }/mesa3d/Config.in | 0
package/{x11r7 => }/mesa3d/mesa3d-uclibc-locale.patch | 0
package/{x11r7 => }/mesa3d/mesa3d.mk | 0
package/x11r7/Config.in | 1 -
5 files changed, 1 insertion(+), 1 deletion(-)
rename package/{x11r7 => }/mesa3d/Config.in (100%)
rename package/{x11r7 => }/mesa3d/mesa3d-uclibc-locale.patch (100%)
rename package/{x11r7 => }/mesa3d/mesa3d.mk (100%)package/Config.in +1 -0
@@ -278,6 +278,7 @@ source "package/lvm2/Config.in" source "package/mdadm/Config.in" source "package/media-ctl/Config.in" source "package/memtester/Config.in" +source "package/mesa3d/Config.in" source "package/minicom/Config.in" source "package/nanocom/Config.in" source "package/neard/Config.in"
package/mesa3d/Config.in renamed from package/x11r7/mesa3d/Config.in +0 -0
package/mesa3d/mesa3d-uclibc-locale.patch renamed from package/x11r7/mesa3d/mesa3d-uclibc-locale.patch +0 -0
package/mesa3d/mesa3d.mk renamed from package/x11r7/mesa3d/mesa3d.mk +0 -0
package/x11r7/Config.in +0 -1
@@ -13,7 +13,6 @@ if BR2_PACKAGE_XORG7 endmenu menu "X11R7 Libraries" source package/x11r7/libxcb/Config.in - source package/x11r7/mesa3d/Config.in source package/x11r7/xcb-util/Config.in source package/x11r7/xcb-util-image/Config.in source package/x11r7/xcb-util-keysyms/Config.in
Signature · 1 line
1.8.1.2
PATCH v2 3/7 mesa3d: pull out from x11
Dear Spenser Gilliland,
Quoted 3 lines · Spenser Gilliland
Signed-off-by Spenser Gilliland <[email protected]>---
In your patch 4/7, mesa3d still has a 'depends on BR2_PACKAGE_XORG7', so to me, it makes little sense to move it out of the package/x11r7/ directory.
I believe we first need to make the libdrm package selectable without BR2_PACKAGE_XORG7 (which as explained in my review of patch 1/7, requires moving the pthread-stubs package outside of the BR2_PACKAGE_XORG7 condition), then we can make mesa3d selectable without BR2_PACKAGE_XORG7.
Bottom-line: I believe it's too early to move mesa3d outside of package/x11r7/. Let's keep it in there for now, merge your current patches, and work on that as a followup step.
Thanks!
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
PATCH v2 3/7 mesa3d: pull out from x11
Thomas,
Quoted 10 lines
In your patch 4/7, mesa3d still has a 'depends on
BR2_PACKAGE_XORG7', so to me, it makes little sense to move it out of the package/x11r7/ directory.I believe we first need to make the libdrm package selectable without
BR2_PACKAGE_XORG7(which as explained in my review of patch 1/7, requires moving the pthread-stubs package outside of theBR2_PACKAGE_XORG7condition), then we can make mesa3d selectable withoutBR2_PACKAGE_XORG7.
Quoted 4 lines
Bottom-line: I believe it's too early to move mesa3d outside of package/x11r7/. Let's keep it in there for now, merge your current patches, and work on that as a followup step.
I'll add the move of pthread stubs (and any other required X libs) to this patch set.
Thanks,
Spenser
Signature · 3 lines
Spenser Gilliland Computer Engineer Doctoral Candidate
PATCH v2 3/7 mesa3d: pull out from x11
Dear Spenser Gilliland,
Quoted 6 lines · Spenser Gilliland
Quoted 3 lines
Bottom-line: I believe it's too early to move mesa3d outside of package/x11r7/. Let's keep it in there for now, merge your current patches, and work on that as a followup step.
I'll add the move of pthread stubs (and any other required X libs) to this patch set.
Great, thanks!
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
PATCH v2 4/7 mesa3d: modularize and bump to version 9.1.6
In reply to Spenser Gilliland--- package/mesa3d/Config.in | 177 ++++++++++++++++++++- package/mesa3d/mesa3d-cross-glsl-compiler.patch | 41 +++++ package/mesa3d/mesa3d-gbm-without-dri.patch | 30 ++++ package/mesa3d/mesa3d-uclibc-locale.patch | 56 ------- package/mesa3d/mesa3d.mk | 115 +++++++++++-- package/opengl/Config.in | 3 + package/opengl/libegl/libegl.mk | 4 + package/opengl/libgl/libgl.mk | 20 +++ package/opengl/libgles/libgles.mk | 4 + package/opengl/libopenvg/libopenvg.mk | 4 + .../xserver_xorg-server/xserver_xorg-server.mk | 4 +- 11 files changed, 378 insertions(+), 80 deletions(-) create mode 100644 package/mesa3d/mesa3d-cross-glsl-compiler.patch create mode 100644 package/mesa3d/mesa3d-gbm-without-dri.patch delete mode 100644 package/mesa3d/mesa3d-uclibc-locale.patch create mode 100644 package/opengl/libgl/libgl.mk
package/mesa3d/Config.in +171 -6
@@ -1,15 +1,180 @@ config BR2_PACKAGE_MESA3D bool "Mesa 3D Graphics Library" - select BR2_PACKAGE_XPROTO_GLPROTO - select BR2_PACKAGE_XLIB_LIBXXF86VM - select BR2_PACKAGE_XLIB_LIBXDAMAGE - select BR2_PACKAGE_XLIB_LIBXFIXES - select BR2_PACKAGE_XPROTO_DRI2PROTO select BR2_PACKAGE_LIBDRM select BR2_PACKAGE_EXPAT select BR2_PACKAGE_HOST_LIBXML2_PYTHON - depends on BR2_PACKAGE_XSERVER_XORG_SERVER_MODULAR + select BR2_PACKAGE_XPROTO_DRI2_PROTO if BR2_PACKAGE_XSERVER_XORG_SERVER + select BR2_PACKAGE_XPROTO_XF86DRIPROTO if BR2_PACKAGE_XSERVER_XORG_SERVER + select BR2_PACKAGE_XLIB_LIBX11 if BR2_PACKAGE_XSERVER_XORG_SERVER + select BR2_PACKAGE_XLIB_LIBXEXT if BR2_PACKAGE_XSERVER_XORG_SERVER + select BR2_PACKAGE_XLIB_LIBXDAMAGE if BR2_PACKAGE_XSERVER_XORG_SERVER + select BR2_PACKAGE_XLIB_LIBXFIXES if BR2_PACKAGE_XSERVER_XORG_SERVER + select BR2_PACKAGE_LIBXCB if BR2_PACKAGE_XSERVER_XORG_SERVER depends on BR2_INSTALL_LIBSTDCPP + depends on BR2_LARGEFILE + depends on BR2_PACKAGE_XORG7 help Mesa 3D, an open-source implementation of the OpenGL specification. + http://mesa3d.org + +if BR2_PACKAGE_MESA3D + +menu "libraries" + +config BR2_PACKAGE_MESA3D_GBM + depends on BR2_PACKAGE_UDEV + bool "gbm support" + help + Add support for Graphics Buffer Manager. + +config BR2_PACKAGE_MESA3D_XVMC + bool "xvmc support" + help + Add support for X Video Motion Compensation. + +config BR2_PACKAGE_MESA3D_VDPAU + bool "vdpau support" + help + Add support for Video Decode and Presentation API for Unix. + +endmenu + +menu "Drivers" + +config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_I915 + bool "Gallium i915 driver" + depends on BR2_i386 || BR2_x86_64 + select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER + select BR2_PACKAGE_LIBDRM_INTEL + help + Supports intel chips with Gallium. In most cases, the DRI i965 driver + should be used as it is better maintained by Intel. + +config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_NOUVEAU + bool "Gallium nouveau driver" + depends on BR2_i386 || BR2_x86_64 + select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER + select BR2_PACKAGE_LIBDRM_NOUVEAU + help + Supports all Nvidia GPUs. + +config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_R300 + bool "Gallium r300 driver" + depends on BR2_i386 || BR2_x86_64 + select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER + select BR2_PACKAGE_LIBDRM_RADEON + help + Supports the R300, R400, and R500 series of ATI/AMD GPUs. + +config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_R600 + bool "Gallium r600 driver" + depends on BR2_i386 || BR2_x86_64 + select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER + select BR2_PACKAGE_LIBDRM_RADEON + help + Supports the R600, R700, and R800 series of ATI/AMD GPUs. + +config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_RADEONSI + bool "Gallium radeonsi driver" + depends on BR2_i386 || BR2_x86_64 + select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER + select BR2_PACKAGE_LIBDRM_RADEON + help + Supports the Radeon HD7000/HD8000/HD9000 series of ATI/AMD GPUs. + +config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SVGA + bool "Gallium vmware svga driver" + select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER + select BR2_PACKAGE_LIBDRM_VMWGFX + help + This is a virtual GPU driver for VMWare virtual machines. + +config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SWRAST + bool "Gallium swrast driver" + select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER + help + This is a software opengl implementation using the Gallium3D + infrastructure. + +config BR2_PACKAGE_MESA3D_DRI_DRIVERS_SWRAST + bool "DRI swrast driver" + select BR2_PACKAGE_MESA3D_DRI_DRIVER + help + This is a software opengl implementation using the DRI infrastructure. + +config BR2_PACKAGE_MESA3D_DRI_DRIVERS_I965 + bool "DRI i965 driver" + depends on BR2_i386 || BR2_x86_64 + select BR2_PACKAGE_MESA3D_DRI_DRIVER + select BR2_PACKAGE_LIBDRM_INTEL + help + Supports all Intel GPUs. This version is most supported by Intel. + +config BR2_PACKAGE_MESA3D_DRI_DRIVERS_RADEON + bool "DRI radeon driver" + depends on BR2_i386 || BR2_x86_64 + select BR2_PACKAGE_MESA3D_DRI_DRIVER + select BR2_PACKAGE_LIBDRM_RADEON + help + Legacy Radeon driver for R100 series GPUs. + +endmenu + +# The following hidden options inform gallium or dri driver selection. +config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER + select BR2_PACKAGE_MESA3D_DRIVER + bool + +config BR2_PACKAGE_MESA3D_DRI_DRIVER + select BR2_PACKAGE_MESA3D_DRIVER + bool + +config BR2_PACKAGE_MESA3D_DRIVER + bool + +menu "API Support" +depends on BR2_PACKAGE_MESA3D_GALLIUM_DRIVER || BR2_PACKAGE_MESA3D_DRI_DRIVER + +config BR2_PACKAGE_MESA3D_OPENGL + bool "OpenGL" + select BR2_PACKAGE_HAS_OPENGL + help + Use the Khronos OpenGL API. This is a desktop computer API and is not + normally implemented by embedded systems. + +config BR2_PACKAGE_MESA3D_EGL + bool "EGL" + select BR2_PACKAGE_MESA3D_GBM + select BR2_PACKAGE_HAS_OPENGL_EGL + help + Use the Khronos EGL APIs. EGL is a window manager for OpenGL applications + similar to GLX, for X, and WGL, for Windows. + + config BR2_PACKAGE_MESA3D_OPENGL_ES + bool "OpenGL ES" + select BR2_PACKAGE_HAS_OPENGL_ES + help + Use the Khronos OpenGL ES APIs. This is commonly used on embedded + systems and represents a subset of the OpenGL API. + +config BR2_PACKAGE_MESA3D_OPENVG + bool "OpenVG" + depends on BR2_PACKAGE_MESA3D_GALLIUM_DRIVER + select BR2_PACKAGE_HAS_OPENVG + select BR2_PACKAGE_MESA3D_OPENGL_EGL + help + Use the Khronos OpenVG APIs. This is a 2D API commonly used on + embedded systems. + +config BR2_PACKAGE_MESA3D_OPENCL + bool "OpenCL" + depends on BR2_PACKAGE_MESA3D_GALLIUM_DRIVER + select BR2_PACKAGE_HAS_OPENCL + help + Use the Khronos OpenCL APIs. This is a GPU computation language + commonly used in GPGPU computing applications. + +endmenu + +endif
package/mesa3d/mesa3d-cross-glsl-compiler.patch new file +41 -0
41 lines not on this page · raw message
package/mesa3d/mesa3d-gbm-without-dri.patch new file +30 -0
@@ -0,0 +1,30 @@ +Fix build issue when gbm backend is built without dri support. + +Signed-off-by: Spenser Gilliland <[email protected]> + +--- +Index: mesa3d-9.1.6/src/gbm/main/backend.c +=================================================================== +--- mesa3d-9.1.6.orig/src/gbm/main/backend.c 2012-11-24 11:57:41.000000000 -0600 ++++ mesa3d-9.1.6/src/gbm/main/backend.c 2013-08-16 10:59:58.844753588 -0500 +@@ -36,7 +36,9 @@ + + #define ARRAY_SIZE(a) (sizeof(a)/sizeof((a)[0])) + ++#ifdef HAVE_DRI + extern const struct gbm_backend gbm_dri_backend; ++#endif + + struct backend_desc { + const char *name; +@@ -44,7 +46,9 @@ + }; + + static const struct backend_desc backends[] = { +- { "gbm_dri.so", &gbm_dri_backend }, ++#ifdef HAVE_DRI ++ { "gbm_dri.so", &gbm_dri_backend }, ++#endif + { "gbm_gallium_drm.so", NULL }, + }; +
package/mesa3d/mesa3d-uclibc-locale.patch deleted +0 -56
56 lines not on this page · raw message
package/mesa3d/mesa3d.mk +99 -16
132 lines not on this page · raw message
package/opengl/Config.in +3 -0
@@ -1,3 +1,6 @@ +config BR2_PACKAGE_HAS_OPENGL + bool + config BR2_PACKAGE_HAS_OPENGL_EGL bool
package/opengl/libegl/libegl.mk +4 -0
@@ -22,6 +22,10 @@ ifeq ($(BR2_PACKAGE_GPU_VIV_BIN_MX6Q),y) LIBEGL_DEPENDENCIES += gpu-viv-bin-mx6q endif +ifeq ($(BR2_PACKAGE_MESA3D_EGL),y) +LIBEGL_DEPENDENCIES += mesa3d +endif + ifeq ($(LIBEGL_DEPENDENCIES),) define LIBEGL_CONFIGURE_CMDS echo "No libEGL implementation selected. Configuration error."
package/opengl/libgl/libgl.mk new file +20 -0
@@ -0,0 +1,20 @@ +################################################################################ +# +# libgl +# +################################################################################ + +LIBGL_SOURCE = + +ifeq ($(BR2_PACKAGE_MESA_OPENGL),y) +LIBGL_DEPENDENCIES += mesa3d +endif + +ifeq ($(LIBGL_DEPENDENCIES),) +define LIBOPENGL_CONFIGURE_CMDS + echo "No libOpenGL implementation selected. Configuration error." + exit 1 +endef +endif + +$(eval $(generic-package))
package/opengl/libgles/libgles.mk +4 -0
@@ -22,6 +22,10 @@ ifeq ($(BR2_PACKAGE_GPU_VIV_BIN_MX6Q),y) LIBGLES_DEPENDENCIES += gpu-viv-bin-mx6q endif +ifeq ($(BR2_PACKAGE_MESA3D_OPENGL_ES),y) +LIBGLES_DEPENDENCIES += mesa3d +endif + ifeq ($(LIBGLES_DEPENDENCIES),) define LIBGLES_CONFIGURE_CMDS echo "No libGLES implementation selected. Configuration error."
package/opengl/libopenvg/libopenvg.mk +4 -0
@@ -10,6 +10,10 @@ ifeq ($(BR2_PACKAGE_RPI_USERLAND),y) LIBOPENVG_DEPENDENCIES += rpi-userland endif +ifeq ($(BR2_PACKAGE_MESA3D_OPENVG),y) +LIBOPENVG_DEPENDENCIES += mesa3d +endif + ifeq ($(LIBOPENVG_DEPENDENCIES),) define LIBOPENVG_CONFIGURE_CMDS echo "No libOpenVG implementation selected. Configuration error."
package/x11r7/xserver_xorg-server/xserver_xorg-server.mk +2 -2
@@ -99,7 +99,7 @@ else # modular XSERVER_XORG_SERVER_CONF_OPT += --disable-kdrive --disable-xfbdev endif -ifeq ($(BR2_PACKAGE_MESA3D),y) +ifeq ($(BR2_PACKAGE_MESA3D_DRIVER),y) XSERVER_XORG_SERVER_DEPENDENCIES += mesa3d xproto_xf86driproto else XSERVER_XORG_SERVER_CONF_OPT += --disable-dri
@@ -172,7 +172,7 @@ ifneq ($(BR2_PACKAGE_XLIB_LIBDMX),y) XSERVER_XORG_SERVER_CONF_OPT += --disable-dmx endif -ifeq ($(BR2_PACKAGE_MESA3D),y) +ifeq ($(BR2_PACKAGE_MESA3D_DRIVER),y) XSERVER_XORG_SERVER_CONF_OPT += --enable-glx else XSERVER_XORG_SERVER_CONF_OPT += --disable-glx
Signature · 1 line
1.8.1.2
PATCH v2 4/7 mesa3d: modularize and bump to version 9.1.6
Dear Spenser Gilliland,
Quoted 11 lines · Spenser Gilliland
Signed-off-by Spenser Gilliland <[email protected]>--- package/mesa3d/Config.in | 177 ++++++++++++++++++++- package/mesa3d/mesa3d-cross-glsl-compiler.patch | 41 +++++ package/mesa3d/mesa3d-gbm-without-dri.patch | 30 ++++ package/mesa3d/mesa3d-uclibc-locale.patch | 56 ------- package/mesa3d/mesa3d.mk | 115 +++++++++++-- package/opengl/Config.in | 3 + package/opengl/libegl/libegl.mk | 4 + package/opengl/libgl/libgl.mk | 20 +++
Quoted 8 lines
package/opengl/libgles/libgles.mk | 4 + package/opengl/libopenvg/libopenvg.mk | 4 + .../xserver_xorg-server/xserver_xorg-server.mk | 4 +- 11 files changed, 378 insertions(+), 80 deletions(-) create mode 100644 package/mesa3d/mesa3d-cross-glsl-compiler.patch create mode 100644 package/mesa3d/mesa3d-gbm-without-dri.patch delete mode 100644 package/mesa3d/mesa3d-uclibc-locale.patch create mode 100644 package/opengl/libgl/libgl.mk
I'm far from being able to understand all the internal details of Mesa3D, what GBM is and so on, but from a Buildroot packaging perspective, it looks good to me, so:
However, see my comments on PATCH 3/7 saying that maybe moving mesa3d outside of package/x11r7/ isn't really a good idea for the moment.
Another comment below.
package/mesa3d/Config.in line 14
Quoted 2 lines
package/mesa3d/Config.in +1
-0depends on BR2_INSTALL_LIBSTDCPP + depends on BR2_LARGEFILE
This would require a comment saying that mesa3d is not available due to toolchain missing C++ and largefile support. This comment is missing today for C++ support, but it'd be good to add it. Can be done as a followup patch, though.
Thanks!
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
PATCH v2 4/7 mesa3d: modularize and bump to version 9.1.6
Thomas,
Quoted 34 lines · Thomas Petazzoni
Dear Spenser Gilliland,
Quoted 11 lines · Spenser Gilliland
Signed-off-by Spenser Gilliland <[email protected]>--- package/mesa3d/Config.in | 177 ++++++++++++++++++++- package/mesa3d/mesa3d-cross-glsl-compiler.patch | 41 +++++ package/mesa3d/mesa3d-gbm-without-dri.patch | 30 ++++ package/mesa3d/mesa3d-uclibc-locale.patch | 56 ------- package/mesa3d/mesa3d.mk | 115 +++++++++++-- package/opengl/Config.in | 3 + package/opengl/libegl/libegl.mk | 4 + package/opengl/libgl/libgl.mk | 20 +++Quoted 8 lines
package/opengl/libgles/libgles.mk | 4 + package/opengl/libopenvg/libopenvg.mk | 4 + .../xserver_xorg-server/xserver_xorg-server.mk | 4 +- 11 files changed, 378 insertions(+), 80 deletions(-) create mode 100644 package/mesa3d/mesa3d-cross-glsl-compiler.patch create mode 100644 package/mesa3d/mesa3d-gbm-without-dri.patch delete mode 100644 package/mesa3d/mesa3d-uclibc-locale.patch create mode 100644 package/opengl/libgl/libgl.mkI'm far from being able to understand all the internal details of Mesa3D, what GBM is and so on, but from a Buildroot packaging perspective, it looks good to me, so:
Reviewed-by Thomas Petazzoni <[email protected]>However, see my comments on PATCH 3/7 saying that maybe moving mesa3d outside of package/x11r7/ isn't really a good idea for the moment.
Another comment below.
Quoted 7 lines
Quoted 2 lines
depends on
BR2_INSTALL_LIBSTDCPP
+ depends onBR2_LARGEFILEThis would require a comment saying that mesa3d is not available due to toolchain missing C++ and largefile support. This comment is missing today for C++ support, but it'd be good to add it. Can be done as a followup patch, though.
Will fix.
Quoted 8 lines
Thanks!
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
Signature · 3 lines
Spenser Gilliland Computer Engineer Doctoral Candidate
PATCH v2 5/7 libpng12: new package
In reply to Spenser Gilliland--- package/Config.in | 1 + package/libpng12/Config.in | 9 +++++++++ package/libpng12/libpng12.mk | 18 ++++++++++++++++++ 3 files changed, 28 insertions(+) create mode 100644 package/libpng12/Config.in create mode 100644 package/libpng12/libpng12.mk
package/Config.in +1 -0
@@ -482,6 +482,7 @@ source "package/libglade/Config.in" source "package/gdk-pixbuf/Config.in" source "package/libgtk2/Config.in" source "package/libpng/Config.in" +source "package/libpng12/Config.in" source "package/libqrencode/Config.in" source "package/libraw/Config.in" source "package/librsvg/Config.in"
package/libpng12/Config.in new file +9 -0
@@ -0,0 +1,9 @@ +config BR2_PACKAGE_LIBPNG12 + bool "libpng" + select BR2_PACKAGE_ZLIB + help + Library for handling PNG (Portable Network Graphics) + images. This installs the 1.2.x series. Different versions of + libpng have different APIs. + + http://www.libpng.org/
package/libpng12/libpng12.mk new file +18 -0
@@ -0,0 +1,18 @@ +################################################################################ +# +# libpng12 +# +################################################################################ + +LIBPNG12_VERSION = 1.2.50 +LIBPNG12_SERIES = 12 +LIBPNG12_SOURCE = libpng-$(LIBPNG12_VERSION).tar.bz2 +LIBPNG12_SITE = http://downloads.sourceforge.net/project/libpng/libpng$(LIBPNG12_SERIES)/$(LIBPNG12_VERSION) +LIBPNG12_LICENSE = libpng license +LIBPNG12_LICENSE_FILES = LICENSE +LIBPNG12_INSTALL_STAGING = YES +LIBPNG12_DEPENDENCIES = host-pkgconf zlib +LIBPNG12_CONFIG_SCRIPTS = libpng$(LIBPNG12_SERIES)-config libpng-config + +$(eval $(autotools-package)) +$(eval $(host-autotools-package))
Signature · 1 line
1.8.1.2
PATCH v2 5/7 libpng12: new package
Dear Spenser Gilliland,
package/libpng12/Config.in line 2
Quoted 2 lines · Spenser Gilliland
package/libpng12/Config.in new file +2
-0+config BR2_PACKAGE_LIBPNG12 + bool "libpng"
Maybe:
bool "libpng12"
Quoted 18 lines
package/libpng12/Config.in new file +7
-0+ select BR2_PACKAGE_ZLIB + help + Library for handling PNG (Portable Network Graphics) + images. This installs the 1.2.x series. Different versions of + libpng have different APIs. + + http://www.libpng.org/package/libpng12/libpng12.mk new file +5
-0@@ -0,0 +1,18 @@ +################################################################################ +# +# libpng12 +# +################################################################################
package/libpng12/libpng12.mk line 15
Quoted 10 lines
package/libpng12/libpng12.mk new file +10
-0+ +LIBPNG12_VERSION = 1.2.50 +LIBPNG12_SERIES = 12 +LIBPNG12_SOURCE = libpng-$(LIBPNG12_VERSION).tar.bz2 +LIBPNG12_SITE = http://downloads.sourceforge.net/project/libpng/libpng$(LIBPNG12_SERIES)/$(LIBPNG12_VERSION) +LIBPNG12_LICENSE = libpng license +LIBPNG12_LICENSE_FILES = LICENSE +LIBPNG12_INSTALL_STAGING = YES +LIBPNG12_DEPENDENCIES = host-pkgconf zlib +LIBPNG12_CONFIG_SCRIPTS = libpng$(LIBPNG12_SERIES)-config libpng-config
This last one annoys me a bit: if both libpng and libpng12 install libpng-config, it means that another package that runs libpng-config to find out where libpng is and how to link against it will either be linked against the modern libpng or the older libpng12 depending on which one was installed.
Since libpng12 is only installed for compatibility reasons with some packages, I would therefore suggest that we do not install libpng-config in libpng12.mk (and ensure that nothing installed by libpng12 can conflict with the real libpng installation).
Thoughts?
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
PATCH v2 5/7 libpng12: new package
Quoted 24 lines · Thomas Petazzoni
Dear Spenser Gilliland,
package/libpng12/Config.in line 2
Quoted 2 lines · Spenser Gilliland
package/libpng12/Config.in new file +2
-0+config BR2_PACKAGE_LIBPNG12 + bool "libpng"Maybe:
bool "libpng12"Quoted 13 lines
package/libpng12/Config.in new file +7
-0+ select BR2_PACKAGE_ZLIB + help + Library for handling PNG (Portable Network Graphics) + images. This installs the 1.2.x series. Different versions of + libpng have different APIs. + + http://www.libpng.org/package/libpng12/libpng12.mk new file +0
-0@@ -0,0 +1,18 @@
Quoted 8 lines
package/libpng12/libpng12.mk line 8
Quoted 8 lines
package/libpng12/libpng12.mk new file +8
-0+################################################################################ +# +# libpng12 +# +################################################################################ + +LIBPNG12_VERSION = 1.2.50 +LIBPNG12_SERIES = 12
Since the 12 is hardcoded in the package name, it is pretty silly to
have this as a variable. It's there for consistency with libpng itself, but I don't think that that is required.
Quoted 14 lines
package/libpng12/libpng12.mk line 15
Quoted 7 lines
package/libpng12/libpng12.mk new file +7
-0+LIBPNG12_SOURCE = libpng-$(LIBPNG12_VERSION).tar.bz2 +LIBPNG12_SITE = http://downloads.sourceforge.net/project/libpng/libpng$(LIBPNG12_SERIES)/$(LIBPNG12_VERSION) +LIBPNG12_LICENSE = libpng license +LIBPNG12_LICENSE_FILES = LICENSE +LIBPNG12_INSTALL_STAGING = YES +LIBPNG12_DEPENDENCIES = host-pkgconf zlib +LIBPNG12_CONFIG_SCRIPTS = libpng$(LIBPNG12_SERIES)-config libpng-configThis last one annoys me a bit: if both libpng and libpng12 install libpng-config, it means that another package that runs libpng-config to find out where libpng is and how to link against it will either be linked against the modern libpng or the older libpng12 depending on which one was installed.
Quoted 4 lines
Since libpng12 is only installed for compatibility reasons with some packages, I would therefore suggest that we do not install libpng-config in libpng12.mk (and ensure that nothing installed by libpng12 can conflict with the real libpng installation).
Sounds correct to me. It is making things more complex, of course,
because you need something like:
LIBPNG_DEPENDENCIES += $(if $(BR2_PACKAGE_LIBPNG12),libpng12)
in libpng.mk.
Or else you have to override the install commands, or patch the Makefile.
Regards,
Arnout
Signature · 6 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286500 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
PATCH v2 5/7 libpng12: new package
Thomas, Arnout,
Quoted 66 lines · Arnout Vandecappelle
Quoted 32 lines · Thomas Petazzoni
Dear Spenser Gilliland,
package/libpng12/Config.in line 2
Quoted 2 lines · Spenser Gilliland
package/libpng12/Config.in new file +2
-0+config BR2_PACKAGE_LIBPNG12 + bool "libpng"Maybe:
bool "libpng12"Quoted 19 lines
package/libpng12/Config.in new file +7
-0+ select BR2_PACKAGE_ZLIB + help + Library for handling PNG (Portable Network Graphics) + images. This installs the 1.2.x series. Different versions of + libpng have different APIs. + + http://www.libpng.org/package/libpng12/libpng12.mk new file +4
-0@@ -0,0 +1,18 @@ +################################################################################ +# +# libpng12 +#Quoted 4 lines
package/libpng12/libpng12.mk line 8
Quoted 4 lines
package/libpng12/libpng12.mk new file +4
-0+################################################################################ + +LIBPNG12_VERSION = 1.2.50 +LIBPNG12_SERIES = 12Since the 12 is hardcoded in the package name, it is pretty silly to have
this as a variable. It's there for consistency with libpng itself, but I don't think that that is required.Quoted 16 lines
package/libpng12/libpng12.mk line 15
Quoted 8 lines
package/libpng12/libpng12.mk new file +2
-0+LIBPNG12_SOURCE = libpng-$(LIBPNG12_VERSION).tar.bz2 +LIBPNG12_SITE =http://downloads.sourceforge.net/project/libpng/libpng$(LIBPNG12_SERIES)/$(LIBPNG12_VERSION)
package/libpng12/libpng12.mk new file +5
-0+LIBPNG12_LICENSE = libpng license +LIBPNG12_LICENSE_FILES = LICENSE +LIBPNG12_INSTALL_STAGING = YES +LIBPNG12_DEPENDENCIES = host-pkgconf zlib +LIBPNG12_CONFIG_SCRIPTS = libpng$(LIBPNG12_SERIES)-config libpng-configThis last one annoys me a bit: if both libpng and libpng12 install libpng-config, it means that another package that runs libpng-config to find out where libpng is and how to link against it will either be linked against the modern libpng or the older libpng12 depending on which one was installed.
Quoted 4 lines
Since libpng12 is only installed for compatibility reasons with some packages, I would therefore suggest that we do not install libpng-config in libpng12.mk (and ensure that nothing installed by libpng12 can conflict with the real libpng installation).
Quoted 8 lines
Sounds correct to me. It is making things more complex, of course, because
you need something like:
LIBPNG_DEPENDENCIES+= $(if $(BR2_PACKAGE_LIBPNG12),libpng12)in libpng.mk.
Or else you have to override the install commands, or patch the
Makefile.
Will fix using method above. (also the glaring omission in kconfig option name is fixed)
Quoted 12 lines
Regards,
Arnout--
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286500 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
Signature · 3 lines
Spenser Gilliland Computer Engineer Doctoral Candidate
PATCH v2 6/7 glmark2: new package
In reply to Spenser Gilliland--- package/Config.in | 1 + package/glmark2/Config.in | 16 ++++ package/glmark2/glmark2-add-mali-support.patch | 102 +++++++++++++++++++++ package/glmark2/glmark2-fix-add-GLchar.patch | 17 ++++ .../glmark2-gl-to-glesv2-on-drm-flavor.patch | 25 +++++ package/glmark2/glmark2.mk | 69 ++++++++++++++ 6 files changed, 230 insertions(+) create mode 100644 package/glmark2/Config.in create mode 100644 package/glmark2/glmark2-add-mali-support.patch create mode 100644 package/glmark2/glmark2-fix-add-GLchar.patch create mode 100644 package/glmark2/glmark2-gl-to-glesv2-on-drm-flavor.patch create mode 100644 package/glmark2/glmark2.mk
package/Config.in +1 -0
@@ -25,6 +25,7 @@ source "package/dmalloc/Config.in" source "package/dropwatch/Config.in" source "package/duma/Config.in" source "package/gdb/Config.in" +source "package/glmark2/Config.in" source "package/iozone/Config.in" source "package/kexec/Config.in" source "package/latencytop/Config.in"
package/glmark2/Config.in new file +16 -0
@@ -0,0 +1,16 @@ +config BR2_PACKAGE_GLMARK2 + bool "glmark2" + depends on BR2_PACKAGE_MESA3D + depends on BR2_PACKAGE_MESA3D_GBM # depends on udev cannot select + depends on BR2_LARGEFILE + depends on BR2_PACKAGE_HAS_OPENGL || \ + (BR2_PACKAGE_HAS_OPENGL_EGL && BR2_PACKAGE_HAS_OPENGL_ES) + select BR2_PACKAGE_JPEG + select BR2_PACKAGE_LIBPNG12 + help + glmark2 is a benchmark for OpenGL (ES) 2.0. It uses only the subset of the + OpenGL 2.0 API that is compatible with OpenGL ES 2.0. + +comment "glmark2 requires an OpenGL implementation and mesa3D to be enabled" + depends on !BR2_PACKAGE_HAS_OPENGL_EGL || !BR2_PACKAGE_HAS_OPENGL_ES \ + || !BR2_PACKAGE_XORG7
package/glmark2/glmark2-add-mali-support.patch new file +102 -0
102 lines not on this page · raw message
package/glmark2/glmark2-fix-add-GLchar.patch new file +17 -0
@@ -0,0 +1,17 @@ +Bug fix in program.cc. There is no such type as GLchar. + +Signed-off-by: Spenser Gilliland <[email protected]> +--- +Index: glmark2-2012.12/src/libmatrix/program.cc +=================================================================== +--- glmark2-2012.12.orig/src/libmatrix/program.cc 2012-12-18 13:45:45.000000000 -0600 ++++ glmark2-2012.12/src/libmatrix/program.cc 2013-08-13 20:08:27.005724911 -0500 +@@ -17,6 +17,8 @@ + #include "gl-if.h" + #include "program.h" + ++typedef char GLchar; ++ + using std::string; + using LibMatrix::mat4; + using LibMatrix::mat3;
package/glmark2/glmark2-gl-to-glesv2-on-drm-flavor.patch new file +25 -0
@@ -0,0 +1,25 @@ +Bug in build script requires full opengl when only opengl es is actually +required. + +Signed-off-by: Spenser Gilliland <[email protected]> +--- +Index: glmark2-279/src/wscript_build +=================================================================== +--- glmark2-279.orig/src/wscript_build 2013-08-19 17:36:32.000000000 -0500 ++++ glmark2-279/src/wscript_build 2013-08-20 10:31:39.364629078 -0500 +@@ -23,11 +23,12 @@ + 'x11-gl' : ['x11', 'gl', 'matrix-gl'], + 'x11-glesv2' : ['x11', 'egl', 'glesv2', 'matrix-glesv2'], + 'drm-gl' : ['drm', 'gbm', 'egl', 'gl', 'matrix-gl'], +- 'drm-glesv2' : ['drm', 'gbm', 'egl', 'glesv2', 'matrix-gl'], ++ 'drm-glesv2' : ['drm', 'gbm', 'egl', 'glesv2', 'matrix-glesv2'], + 'mir-gl' : ['mirclient', 'egl', 'gl', 'matrix-gl'], +- 'mir-glesv2' : ['mirclient', 'egl', 'glesv2', 'matrix-gl'], ++ 'mir-glesv2' : ['mirclient', 'egl', 'glesv2', 'matrix-glesv2'], + 'wayland-gl' : ['wayland-client', 'wayland-egl', 'egl', 'gl', 'matrix-gl'], +- 'wayland-glesv2' : ['wayland-client', 'wayland-egl', 'egl', 'glesv2', 'matrix-gl'], ++ 'wayland-glesv2' : ['wayland-client', 'wayland-egl', 'egl', 'glesv2', ++ 'matrix-glesv2'], + 'fbdev-glesv2' : ['egl', 'glesv2', 'matrix-glesv2'] + } + flavor_defines = {
package/glmark2/glmark2.mk new file +69 -0
69 lines not on this page · raw message
Signature · 1 line
1.8.1.2
PATCH v2 6/7 glmark2: new package
Dear Spenser Gilliland,
package/glmark2/Config.in line 4
Quoted 10 lines · Spenser Gilliland
package/glmark2/Config.in new file +4
-0@@ -0,0 +1,16 @@ +config BR2_PACKAGE_GLMARK2 + bool "glmark2" + depends on BR2_PACKAGE_MESA3D + depends on BR2_PACKAGE_MESA3D_GBM # depends on udev cannot select
Amazing that we need udev to do an OpenGL benchmark these days. But indeed, the GBM code in Mesa3d needs the libudev library.
package/glmark2/Config.in line 16
Quoted 12 lines
package/glmark2/Config.in new file +12
-0+ depends on BR2_LARGEFILE + depends on BR2_PACKAGE_HAS_OPENGL || \ + (BR2_PACKAGE_HAS_OPENGL_EGL && BR2_PACKAGE_HAS_OPENGL_ES) + select BR2_PACKAGE_JPEG + select BR2_PACKAGE_LIBPNG12 + help + glmark2 is a benchmark for OpenGL (ES) 2.0. It uses only the subset of the + OpenGL 2.0 API that is compatible with OpenGL ES 2.0. + +comment "glmark2 requires an OpenGL implementation and mesa3D to be enabled" + depends on !BR2_PACKAGE_HAS_OPENGL_EGL || !BR2_PACKAGE_HAS_OPENGL_ES \ + || !BR2_PACKAGE_XORG7
We probably need more comments in here: about largefile, and about Mesa GBM. But maybe mentioning the need for OpenGL isn't really needed: an user willing to use glmark2 will most likely be aware that OpenGL support is needed.
So:
comment "glmark2 requires Mesa3D GBM support, and largefile support in toolchain"
depends on (BR2_PACKAGE_HAS_OPENGL || BR2_PACKAGE_HAS_OPENGL_ES) && (!BR2_LARGEFILE || !BR2_MESA3D_GBM)
(to be verified).
package/glmark2/glmark2-add-mali-support.patch line 4
Quoted 10 lines
package/glmark2/glmark2-add-mali-support.patch new file +4
-0@@ -0,0 +1,102 @@ +Mali uses a slightly different windowing structure than most +implementations add support through this patch. + +Signed-off-by: Spenser Gilliland <[email protected]>
Have you tried submitting those patches upstream?
Quoted 6 lines
package/glmark2/glmark2.mk new file +0
-0
package/glmark2/glmark2.mk line 8
Quoted 8 lines
package/glmark2/glmark2.mk new file +8
-0@@ -0,0 +1,69 @@ +################################################################################ +# +# glmark2 +# +################################################################################ + +GLMARK2_VERSION = 279 +GLMARK2_SITE = http://bazaar.launchpad.net/~laanwj/glmark2/fbdev
So you're not using the main branch of glmark2, but this separate fbdev branch. Correct? I suppose what it adds is the ability to use glmark2 on non-X.org platforms. Do you have an idea on whether this branch is likely to be merged in the trunk of glmark2?
package/glmark2/glmark2.mk line 14
Quoted 6 lines
package/glmark2/glmark2.mk new file +6
-0+GLMARK2_SITE_METHOD = bzr +GLMARK2_SOURCE = glmark2-$(GLMARK2_VERSION).tar.gz +GLMARK2_LICENSE = GPLv3+ SGIv1 +GLMARK2_LICENSE_FILES = COPYING COPYING.SGI + +GLMARK2_DEPENDENCIES = jpeg libpng12 mesa3d host-python host-pkgconf
I've seen the libpng12 issue being discussed in
https://bugs.launchpad.net/glmark2/+bug/1166506. Some users apparently tested successfully with libpng 1.5.
Also, do we really need host-python? Python is part of the mandatory dependencies of Buildroot, so if Python is only needed to get waf running, then host-python is not needed.
Thanks!
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
PATCH v2 6/7 glmark2: new package
Thomas,
Quoted 4 lines · Thomas Petazzoni
Dear Spenser Gilliland,
On Thu, 5 Sep 2013 23:25:20 -0500, Spenser Gilliland wrote:
Quoted 13 lines
package/glmark2/Config.in line 4
Quoted 10 lines
package/glmark2/Config.in new file +4
-0@@ -0,0 +1,16 @@ +config BR2_PACKAGE_GLMARK2 + bool "glmark2" + depends on BR2_PACKAGE_MESA3D + depends on BR2_PACKAGE_MESA3D_GBM # depends on udev cannot selectAmazing that we need udev to do an OpenGL benchmark these days. But indeed, the GBM code in Mesa3d needs the libudev library.
Yes, quite crazy. GBM is Graphics Buffer Manager, I'm not completely sure why it depends on udev but it does.
Quoted 18 lines
package/glmark2/Config.in line 16
Quoted 12 lines
package/glmark2/Config.in new file +12
-0+ depends on BR2_LARGEFILE + depends on BR2_PACKAGE_HAS_OPENGL || \ + (BR2_PACKAGE_HAS_OPENGL_EGL && BR2_PACKAGE_HAS_OPENGL_ES) + select BR2_PACKAGE_JPEG + select BR2_PACKAGE_LIBPNG12 + help + glmark2 is a benchmark for OpenGL (ES) 2.0. It uses only the subset of the + OpenGL 2.0 API that is compatible with OpenGL ES 2.0. + +comment "glmark2 requires an OpenGL implementation and mesa3D to be enabled" + depends on !BR2_PACKAGE_HAS_OPENGL_EGL || !BR2_PACKAGE_HAS_OPENGL_ES \ + || !BR2_PACKAGE_XORG7We probably need more comments in here: about largefile, and about Mesa GBM. But maybe mentioning the need for OpenGL isn't really needed: an user willing to use glmark2 will most likely be aware that OpenGL support is needed.
Quoted 6 lines
So:
comment "glmark2 requires Mesa3D GBM support, and largefile support in toolchain"
depends on (BR2_PACKAGE_HAS_OPENGL || BR2_PACKAGE_HAS_OPENGL_ES) && (!BR2_LARGEFILE || !BR2_MESA3D_GBM)(to be verified).
Will fix.
Quoted 4 lines
Quoted 4 lines
package/glmark2/glmark2-add-mali-support.patch new file +0
-1--- /dev/null
Quoted 8 lines
package/glmark2/glmark2-add-mali-support.patch line 4
Quoted 6 lines
+++
b/package/glmark2/glmark2-add-mali-support.patchpackage/glmark2/glmark2-add-mali-support.patch new file +4
-0@@ -0,0 +1,102 @@ +Mali uses a slightly different windowing structure than most +implementations add support through this patch. + +Signed-off-by: Spenser Gilliland <[email protected]>Have you tried submitting those patches upstream?
Yes. see https://code.launchpad.net/~spenser-gilliland/glmark2/mali-fbdev/
Quoted 11 lines
Quoted 11 lines
package/glmark2/glmark2.mk new file +5
-0@@ -0,0 +1,69 @@ +################################################################################ +# +# glmark2 +# +################################################################################
Quoted 8 lines
package/glmark2/glmark2.mk line 8
Quoted 3 lines
package/glmark2/glmark2.mk new file +3
-0+ +GLMARK2_VERSION = 279 +GLMARK2_SITE = http://bazaar.launchpad.net/~laanwj/glmark2/fbdevSo you're not using the main branch of glmark2, but this separate fbdev branch. Correct? I suppose what it adds is the ability to use glmark2 on non-X.org platforms. Do you have an idea on whether this branch is likely to be merged in the trunk of glmark2?
It's marked for merge but I'm having trouble getting in touch with the developers. I'll try again tomorrow and see if anyone from dri-devel can help.
Quoted 10 lines
package/glmark2/glmark2.mk line 14
Quoted 6 lines
package/glmark2/glmark2.mk new file +6
-0+GLMARK2_SITE_METHOD = bzr +GLMARK2_SOURCE = glmark2-$(GLMARK2_VERSION).tar.gz +GLMARK2_LICENSE = GPLv3+ SGIv1 +GLMARK2_LICENSE_FILES = COPYING COPYING.SGI + +GLMARK2_DEPENDENCIES = jpeg libpng12 mesa3d host-python host-pkgconfI've seen the libpng12 issue being discussed in
https://bugs.launchpad.net/glmark2/+bug/1166506. Some users apparently tested successfully with libpng 1.5.
I'll check this out but I'd prefer to do this in a separate patch. Unforutantly, libpng likes to break the API between releases; therefore, bumping the libpng package would require building all the reverse dependencies of libpng to ensure compatibility.
Quoted 3 lines
Also, do we really need host-python? Python is part of the mandatory dependencies of Buildroot, so if Python is only needed to get waf running, then host-python is not needed.
Yes, host-python is for waf. I will remove the dependency.
Quoted 8 lines
Thanks!
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
Thanks,
Spenser
Signature · 3 lines
Spenser Gilliland Computer Engineer Doctoral Candidate
PATCH v2 6/7 glmark2: new package
In reply to Spenser GillilandQuoted 34 lines · Spenser Gilliland
Signed-off-by Spenser Gilliland <[email protected]>--- package/Config.in | 1 + package/glmark2/Config.in | 16 ++++ package/glmark2/glmark2-add-mali-support.patch | 102 +++++++++++++++++++++ package/glmark2/glmark2-fix-add-GLchar.patch | 17 ++++ .../glmark2-gl-to-glesv2-on-drm-flavor.patch | 25 +++++ package/glmark2/glmark2.mk | 69 ++++++++++++++ 6 files changed, 230 insertions(+)create mode 100644 package/glmark2/Config.in
create mode 100644package/glmark2/glmark2-add-mali-support.patchcreate mode 100644package/glmark2/glmark2-fix-add-GLchar.patchcreate mode 100644package/glmark2/glmark2-gl-to-glesv2-on-drm-flavor.patchcreate mode 100644package/glmark2/glmark2.mkpackage/Config.in +1
-0@@ -25,6 +25,7 @@ source "package/dmalloc/Config.in" source "package/dropwatch/Config.in" source "package/duma/Config.in" source "package/gdb/Config.in" +source "package/glmark2/Config.in" source "package/iozone/Config.in" source "package/kexec/Config.in" source "package/latencytop/Config.in"package/glmark2/Config.in new file +0
-0
package/glmark2/Config.in line 3
Quoted 3 lines
package/glmark2/Config.in new file +3
-0@@ -0,0 +1,16 @@ +config BR2_PACKAGE_GLMARK2 + bool "glmark2" + depends on BR2_PACKAGE_MESA3D
I don't see why this should be a depends rather than a select.
package/glmark2/Config.in line 4
Quoted 1 line
package/glmark2/Config.in new file +1
-0+ depends on BR2_PACKAGE_MESA3D_GBM # depends on udev cannot select
I would make this
depends on BR2_PACKAGE_UDEV
select BR2_PACKAGE_MESA3D_GBM
and in the comment refer to udev instead of mesa3d.
package/glmark2/Config.in line 11
Quoted 7 lines
package/glmark2/Config.in new file +7
-0+ depends on BR2_LARGEFILE + depends on BR2_PACKAGE_HAS_OPENGL || \ + (BR2_PACKAGE_HAS_OPENGL_EGL && BR2_PACKAGE_HAS_OPENGL_ES) + select BR2_PACKAGE_JPEG + select BR2_PACKAGE_LIBPNG12 + help + glmark2 is a benchmark for OpenGL (ES) 2.0. It uses only the subset of the
Isn't this line too long?
Quoted 5 lines
package/glmark2/Config.in new file +5
-0+ OpenGL 2.0 API that is compatible with OpenGL ES 2.0. + +comment "glmark2 requires an OpenGL implementation and mesa3D to be enabled" + depends on !BR2_PACKAGE_HAS_OPENGL_EGL || !BR2_PACKAGE_HAS_OPENGL_ES \ + || !BR2_PACKAGE_XORG7
[snip]
Quoted 6 lines
package/glmark2/glmark2.mk new file +0
-0
package/glmark2/glmark2.mk line 10
Quoted 10 lines
package/glmark2/glmark2.mk new file +10
-0@@ -0,0 +1,69 @@ +################################################################################ +# +# glmark2 +# +################################################################################ + +GLMARK2_VERSION = 279 +GLMARK2_SITE = http://bazaar.launchpad.net/~laanwj/glmark2/fbdev +GLMARK2_SITE_METHOD = bzr +GLMARK2_SOURCE = glmark2-$(GLMARK2_VERSION).tar.gz
This is the default, and anyway irrelevant for VCS-extracted packages.
Quoted 9 lines
package/glmark2/glmark2.mk new file +9
-0+GLMARK2_LICENSE = GPLv3+ SGIv1 +GLMARK2_LICENSE_FILES = COPYING COPYING.SGI + +GLMARK2_DEPENDENCIES = jpeg libpng12 mesa3d host-python host-pkgconf + +GLMARK2_CONF_OPTS = --prefix=/usr/ + +ifeq ($(BR2_PACKAGE_XSERVER_XORG_SERVER)$(BR2_PACKAGE_HAS_OPENGL_ES),yy) +GLMARK2_DEPENDENCIES += libegl libgles
package/glmark2/glmark2.mk line 29
Quoted 10 lines
package/glmark2/glmark2.mk new file +10
-0+GLMARK2_FLAVORS += x11-glesv2 +endif + +ifeq ($(BR2_PACKAGE_XSERVER_XORG_SERVER)$(BR2_PACKAGE_HAS_OPENGL),yy) +GLMARK2_DEPENDENCIES += libgl +GLMARK2_FLAVORS += x11-gl +endif + +ifeq ($(BR2_PACKAGE_HAS_OPENGL_EGL)$(BR2_PACKAGE_HAS_OPENGL_ES),yy) +GLMARK2_DEPENDENCIES += libdrm libegl libgles
If you have this dependency here, you also should have the
corresponding select in Config.in:
select BR2_PACKAGE_LIBDRM if BR2_PACKAGE_HAS_OPENGL_EGL
(condition is simplified because in the opengl case libdrm is also needed).
Oh, but libdrm is already a dependency of mesa3d. Then this dependency
is in fact not needed.
Regards,
Arnout
Quoted 41 lines
package/glmark2/glmark2.mk new file +40
-0+GLMARK2_FLAVORS += drm-glesv2 fbdev-glesv2 +endif + +ifeq ($(BR2_PACKAGE_HAS_OPENGL_EGL)$(BR2_PACKAGE_HAS_OPENGL),yy) +GLMARK2_DEPENDENCIES += libdrm libgl +GLMARK2_FLAVORS += drm-gl +endif + +ifeq ($(BR2_PACKAGE_WAYLAND)$(BR2_PACKAGE_HAS_OPENGL_ES),yy) +GLMARK2_DEPENDENCIES += wayland libegl libgles +GLMARK2_FLAVORS += wayland-glesv2 +endif + +ifeq ($(BR2_PACKAGE_WAYLAND)$(BR2_PACKAGE_HAS_OPENGL),yy) +GLMARK2_DEPENDENCIES += wayland libgl +GLMARK2_FLAVORS += wayland-gl +endif + +ifeq ($(BR2_PACKAGE_SUNXI_MALI),y) +GLMARK2_CONF_OPTS += --for-mali +endif + +GLMARK2_CONF_OPTS += \ + --with-flavors=$(subst $(space),$(comma),$(GLMARK2_FLAVORS)) + +define GLMARK2_CONFIGURE_CMDS + cd $(@D) && \ + $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) ./waf configure \ + $(GLMARK2_CONF_OPTS) +endef + +define GLMARK2_BUILD_CMDS + cd $(@D) && $(TARGET_MAKE_ENV) ./waf +endef + +define GLMARK2_INSTALL_TARGET_CMDS + cd $(@D) && $(TARGET_MAKE_ENV) ./waf install --destdir=$(TARGET_DIR) +endef + +$(eval $(generic-package))
Signature · 6 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286500 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
PATCH v2 6/7 glmark2: new package
Arnout,
Quoted 49 lines · Arnout Vandecappelle
Quoted 37 lines · Spenser Gilliland
Signed-off-by Spenser Gilliland <[email protected]>--- package/Config.in | 1 + package/glmark2/Config.in | 16 ++++ package/glmark2/glmark2-add-mali-support.patch | 102 +++++++++++++++++++++ package/glmark2/glmark2-fix-add-GLchar.patch | 17 ++++ .../glmark2-gl-to-glesv2-on-drm-flavor.patch | 25 +++++ package/glmark2/glmark2.mk | 69 ++++++++++++++ 6 files changed, 230 insertions(+)create mode 100644 package/glmark2/Config.in
create mode 100644package/glmark2/glmark2-add-mali-support.patchcreate mode 100644package/glmark2/glmark2-fix-add-GLchar.patchcreate mode 100644package/glmark2/glmark2-gl-to-glesv2-on-drm-flavor.patch
create mode 100644package/glmark2/glmark2.mkpackage/Config.in +1
-0@@ -25,6 +25,7 @@ source "package/dmalloc/Config.in" source "package/dropwatch/Config.in" source "package/duma/Config.in" source "package/gdb/Config.in" +source "package/glmark2/Config.in" source "package/iozone/Config.in" source "package/kexec/Config.in" source "package/latencytop/Config.in"package/glmark2/Config.in new file +0
-0package/glmark2/Config.in line 3
Quoted 3 lines
package/glmark2/Config.in new file +3
-0@@ -0,0 +1,16 @@ +config BR2_PACKAGE_GLMARK2 + bool "glmark2" + depends on BR2_PACKAGE_MESA3DI don't see why this should be a depends rather than a select.
package/glmark2/Config.in line 4
Quoted 1 line
package/glmark2/Config.in new file +1
-0+ depends on BR2_PACKAGE_MESA3D_GBM # depends on udev cannot select
Quoted 6 lines
I would make this
depends on
BR2_PACKAGE_UDEV
selectBR2_PACKAGE_MESA3D_GBMand in the comment refer to udev instead of mesa3d.
Will fix.
Quoted 11 lines
Quoted 9 lines
package/glmark2/Config.in new file +7
-0+ depends on BR2_LARGEFILE + depends on BR2_PACKAGE_HAS_OPENGL || \ + (BR2_PACKAGE_HAS_OPENGL_EGL && BR2_PACKAGE_HAS_OPENGL_ES) + select BR2_PACKAGE_JPEG + select BR2_PACKAGE_LIBPNG12 + help + glmark2 is a benchmark for OpenGL (ES) 2.0. It uses only thesubset of the
Quoted 1 line
Isn't this line too long?
it's 79 chars with my tab indention at 3 spaces.
Quoted 23 lines
Quoted 8 lines
package/glmark2/Config.in new file +3
-0+ OpenGL 2.0 API that is compatible with OpenGL ES 2.0. + +comment "glmark2 requires an OpenGL implementation and mesa3D to beenabled"
+ depends on !BR2_PACKAGE_HAS_OPENGL_EGL ||
!BR2_PACKAGE_HAS_OPENGL_ES \
+ || !BR2_PACKAGE_XORG7[snip]
Quoted 12 lines
package/glmark2/glmark2.mk new file +4
-0@@ -0,0 +1,69 @@ +################################################################################ +# +# glmark2 +#
Quoted 9 lines
package/glmark2/glmark2.mk line 10
Quoted 6 lines
package/glmark2/glmark2.mk new file +6
-0+################################################################################ + +GLMARK2_VERSION = 279 +GLMARK2_SITE = http://bazaar.launchpad.net/~laanwj/glmark2/fbdev +GLMARK2_SITE_METHOD = bzr +GLMARK2_SOURCE = glmark2-$(GLMARK2_VERSION).tar.gzThis is the default, and anyway irrelevant for VCS-extracted packages.
Will fix.
Quoted 89 lines
Quoted 10 lines
package/glmark2/glmark2.mk new file +9
-0+GLMARK2_LICENSE = GPLv3+ SGIv1 +GLMARK2_LICENSE_FILES = COPYING COPYING.SGI + +GLMARK2_DEPENDENCIES = jpeg libpng12 mesa3d host-python host-pkgconf + +GLMARK2_CONF_OPTS = --prefix=/usr/ + +ifeq ($(BR2_PACKAGE_XSERVER_XORG_SERVER)$(BR2_PACKAGE_HAS_OPENGL_ES),yy) +GLMARK2_DEPENDENCIES += libegl libglespackage/glmark2/glmark2.mk line 29
Quoted 10 lines
package/glmark2/glmark2.mk new file +10
-0+GLMARK2_FLAVORS += x11-glesv2 +endif + +ifeq ($(BR2_PACKAGE_XSERVER_XORG_SERVER)$(BR2_PACKAGE_HAS_OPENGL),yy) +GLMARK2_DEPENDENCIES += libgl +GLMARK2_FLAVORS += x11-gl +endif + +ifeq ($(BR2_PACKAGE_HAS_OPENGL_EGL)$(BR2_PACKAGE_HAS_OPENGL_ES),yy) +GLMARK2_DEPENDENCIES += libdrm libegl libglesIf you have this dependency here, you also should have the corresponding
select in Config.in:select
BR2_PACKAGE_LIBDRMifBR2_PACKAGE_HAS_OPENGL_EGL(condition is simplified because in the opengl case libdrm is also needed).
Oh, but libdrm is already a dependency of mesa3d. Then this dependency is
in fact not needed.Regards,
ArnoutQuoted 33 lines
package/glmark2/glmark2.mk new file +28
-0+GLMARK2_FLAVORS += drm-glesv2 fbdev-glesv2 +endif + +ifeq ($(BR2_PACKAGE_HAS_OPENGL_EGL)$(BR2_PACKAGE_HAS_OPENGL),yy) +GLMARK2_DEPENDENCIES += libdrm libgl +GLMARK2_FLAVORS += drm-gl +endif + +ifeq ($(BR2_PACKAGE_WAYLAND)$(BR2_PACKAGE_HAS_OPENGL_ES),yy) +GLMARK2_DEPENDENCIES += wayland libegl libgles +GLMARK2_FLAVORS += wayland-glesv2 +endif + +ifeq ($(BR2_PACKAGE_WAYLAND)$(BR2_PACKAGE_HAS_OPENGL),yy) +GLMARK2_DEPENDENCIES += wayland libgl +GLMARK2_FLAVORS += wayland-gl +endif + +ifeq ($(BR2_PACKAGE_SUNXI_MALI),y) +GLMARK2_CONF_OPTS += --for-mali +endif + +GLMARK2_CONF_OPTS += \ + --with-flavors=$(subst $(space),$(comma),$(GLMARK2_FLAVORS)) + +define GLMARK2_CONFIGURE_CMDS + cd $(@D) && \ + $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) ./wafconfigure \
package/glmark2/glmark2.mk new file +3
-0+ $(GLMARK2_CONF_OPTS) +endef +package/glmark2/glmark2.mk line 69
Quoted 10 lines
package/glmark2/glmark2.mk new file +9
-1+define GLMARK2_BUILD_CMDS + cd $(@D) && $(TARGET_MAKE_ENV) ./waf +endef + +define GLMARK2_INSTALL_TARGET_CMDS + cd $(@D) && $(TARGET_MAKE_ENV) ./waf install --destdir=$(TARGET_DIR) +endef + +$(eval $(generic-package))--
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286500 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
Signature · 3 lines
Spenser Gilliland Computer Engineer Doctoral Candidate
PATCH v2 6/7 glmark2: new package
Quoted 10 lines · Spenser Gilliland
Quoted 10 lines
Quoted 10 lines
+ depends on
BR2_LARGEFILEQuoted 7 lines
Quoted 7 lines
package/glmark2/Config.in new file +6
-0+ depends on BR2_PACKAGE_HAS_OPENGL || \ + (BR2_PACKAGE_HAS_OPENGL_EGL && BR2_PACKAGE_HAS_OPENGL_ES) + select BR2_PACKAGE_JPEG + select BR2_PACKAGE_LIBPNG12 + help + glmark2 is a benchmark for OpenGL (ES) 2.0. It uses only thesubset of the
Quoted 2 lines
Quoted 1 line
Quoted 1 line
Isn't this line too long?
it's 79 chars with my tab indention at 3 spaces.
The text itself should be only 72 characters IIRC, otherwise it doesn't
fit a 80-character terminal.
Regards,
Arnout
Signature · 6 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286500 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
PATCH v2 7/7 mesa3d-demos: new package
In reply to Spenser Gilliland--- package/Config.in | 1 + package/mesa3d-demos/Config.in | 8 + .../mesa3d-demos/mesa3d-demos-optional-gl.patch | 348 +++++++++++++++++++++ package/mesa3d-demos/mesa3d-demos.mk | 63 ++++ 4 files changed, 420 insertions(+) create mode 100644 package/mesa3d-demos/Config.in create mode 100644 package/mesa3d-demos/mesa3d-demos-optional-gl.patch create mode 100644 package/mesa3d-demos/mesa3d-demos.mk
package/Config.in +1 -0
@@ -39,6 +39,7 @@ source "package/lttng-modules/Config.in" source "package/lttng-tools/Config.in" source "package/ltrace/Config.in" source "package/memstat/Config.in" +source "package/mesa3d-demos/Config.in" source "package/netperf/Config.in" source "package/oprofile/Config.in" source "package/pax-utils/Config.in"
package/mesa3d-demos/Config.in new file +8 -0
@@ -0,0 +1,8 @@ +config BR2_PACKAGE_MESA3D_DEMOS + bool "mesa3d-demos" + depends on BR2_PACKAGE_HAS_OPENGL || BR2_PACKAGE_HAS_OPENGL_ES \ + || BR2_PACKAGE_HAS_OPENGL_EGL || BR2_PACKAGE_HAS_OPENVG + help + OpenGL demos from the Mesa 3D project. + + http://mesa3d.org
package/mesa3d-demos/mesa3d-demos-optional-gl.patch new file +348 -0
348 lines not on this page · raw message
package/mesa3d-demos/mesa3d-demos.mk new file +63 -0
63 lines not on this page · raw message
Signature · 1 line
1.8.1.2
PATCH v2 7/7 mesa3d-demos: new package
Quoted 17 lines · Spenser Gilliland
Signed-off-by Spenser Gilliland <[email protected]>--- package/Config.in | 1 + package/mesa3d-demos/Config.in | 8 + .../mesa3d-demos/mesa3d-demos-optional-gl.patch | 348 +++++++++++++++++++++ package/mesa3d-demos/mesa3d-demos.mk | 63 ++++ 4 files changed, 420 insertions(+)create mode 100644 package/mesa3d-demos/Config.in
create mode 100644package/mesa3d-demos/mesa3d-demos-optional-gl.patchcreate mode 100644package/mesa3d-demos/mesa3d-demos.mkpackage/Config.in +0
-0
package/Config.in source "package/lttng-modules/Config.in" · line 42
Quoted 4 lines
package/Config.in +1
-0@@ -39,6 +39,7 @@ source "package/lttng-modules/Config.in" source "package/lttng-tools/Config.in" source "package/ltrace/Config.in" source "package/memstat/Config.in" +source "package/mesa3d-demos/Config.in"
I don't think that the Debug tools menu is the right place for this -
at least, we have nothing similar there at the moment. How about putting it in the Graphical libraries and applications menu?
Quoted 23 lines
package/Config.in +0
-0source "package/netperf/Config.in" source "package/oprofile/Config.in" source "package/pax-utils/Config.in"package/mesa3d-demos/Config.in new file +8
-0@@ -0,0 +1,8 @@ +config BR2_PACKAGE_MESA3D_DEMOS + bool "mesa3d-demos" + depends on BR2_PACKAGE_HAS_OPENGL || BR2_PACKAGE_HAS_OPENGL_ES \ + || BR2_PACKAGE_HAS_OPENGL_EGL || BR2_PACKAGE_HAS_OPENVG + help + OpenGL demos from the Mesa 3D project. + + http://mesa3d.orgpackage/mesa3d-demos/mesa3d-demos-optional-gl.patch new file +0
-0
package/mesa3d-demos/mesa3d-demos-optional-gl.patch line 2
Quoted 2 lines
package/mesa3d-demos/mesa3d-demos-optional-gl.patch new file +2
-0@@ -0,0 +1,348 @@ +This patch makes the egl stuff work with other opengles providers and makes +it possible to build the demos without opengl (only opengles.)
Can you upstream this? Probably needs to be split into two patches in
that case.
Quoted 26 lines
package/mesa3d-demos/mesa3d-demos-optional-gl.patch new file +26
-0+ +Signed-off-by: Spenser Gilliland <[email protected]> +--- +Index: mesa3d-demos-8.1.0/configure.ac +=================================================================== +--- mesa3d-demos-8.1.0.orig/configure.ac 2013-02-24 04:49:47.000000000 -0600 ++++ mesa3d-demos-8.1.0/configure.ac 2013-09-05 10:01:19.137886856 -0500 +@@ -51,6 +51,14 @@ + ACLOCAL="aclocal -I/other/macro/dir" before running autoreconf.])]) + PKG_PROG_PKG_CONFIG() + ++AC_ARG_ENABLE([gl], ++ [AS_HELP_STRING([--enable-gl], ++ [enable GL library @<:@default=no@:>@])], ++ [gl_enabled="$enableval"], ++ [gl_enabled=auto]) ++ ++if test "x$gl_enabled" != "xno"; then ++ + dnl Get the pkg-config definitions for libGL. We include a fallback + dnl path for GL implementation that don't provide a .pc file + PKG_CHECK_MODULES(GL, [gl], [], [ +@@ -103,6 +111,8 @@ + DEMO_CFLAGS="$DEMO_CFLAGS $GLU_CFLAGS" + DEMO_LIBS="$DEMO_LIBS $GLU_LIBS" +
package/mesa3d-demos/mesa3d-demos-optional-gl.patch line 38
Quoted 10 lines
package/mesa3d-demos/mesa3d-demos-optional-gl.patch new file +10
-0++fi ++ + AC_ARG_ENABLE([egl], + [AS_HELP_STRING([--enable-egl], + [enable EGL library @<:@default=no@:>@])], +@@ -202,7 +212,6 @@ + [enable support for wayland @<:@default=no@:>@])], + [wayland_enabled="$enableval"], + [wayland_enabled=no]) +-
Why remove this line?
Regards,
Arnout
Quoted 4 lines
package/mesa3d-demos/mesa3d-demos-optional-gl.patch new file +4
-0+ if test "x$wayland_enabled" != "xno"; then + PKG_CHECK_MODULES(WAYLAND, [wayland-client wayland-egl], [wayland_enabled=yes], [wayland_enabled=no]) + fi +@@ -287,7 +296,7 @@
[snip]
Signature · 6 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286500 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
PATCH v2 7/7 mesa3d-demos: new package
Arnout,
Quoted 15 lines · Arnout Vandecappelle
Quoted 14 lines · Spenser Gilliland
Signed-off-by Spenser Gilliland <[email protected]>--- package/Config.in | 1 + package/mesa3d-demos/Config.in | 8 + .../mesa3d-demos/mesa3d-demos-optional-gl.patch | 348 +++++++++++++++++++++ package/mesa3d-demos/mesa3d-demos.mk | 63 ++++ 4 files changed, 420 insertions(+)create mode 100644 package/mesa3d-demos/Config.in
create mode 100644package/mesa3d-demos/mesa3d-demos-optional-gl.patchcreate mode 100644package/mesa3d-demos/mesa3d-demos.mk
Quoted 14 lines
package/Config.in source "package/lttng-modules/Config.in" · line 42
Quoted 9 lines
package/Config.in +1
-0@@ -39,6 +39,7 @@ source "package/lttng-modules/Config.in" source "package/lttng-tools/Config.in" source "package/ltrace/Config.in" source "package/memstat/Config.in" +source "package/mesa3d-demos/Config.in"I don't think that the Debug tools menu is the right place for this - at
least, we have nothing similar there at the moment. How about putting it in the Graphical libraries and applications menu?
Will fix.
Quoted 25 lines
Quoted 25 lines
package/Config.in +0
-0source "package/netperf/Config.in" source "package/oprofile/Config.in" source "package/pax-utils/Config.in"package/mesa3d-demos/Config.in new file +8
-0@@ -0,0 +1,8 @@ +config BR2_PACKAGE_MESA3D_DEMOS + bool "mesa3d-demos" + depends on BR2_PACKAGE_HAS_OPENGL || BR2_PACKAGE_HAS_OPENGL_ES \ + || BR2_PACKAGE_HAS_OPENGL_EGL || BR2_PACKAGE_HAS_OPENVG + help + OpenGL demos from the Mesa 3D project. + + http://mesa3d.orgpackage/mesa3d-demos/mesa3d-demos-optional-gl.patch new file +0
-0
Quoted 8 lines
Quoted 4 lines
package/mesa3d-demos/mesa3d-demos-optional-gl.patch new file +1
-0@@ -0,0 +1,348 @@ +This patch makes the egl stuff work with other opengles providers andmakes
+it possible to build the demos without opengl (only opengles.)Can you upstream this? Probably needs to be split into two patches in that
case.
Will do.
Quoted 34 lines
Quoted 34 lines
package/mesa3d-demos/mesa3d-demos-optional-gl.patch new file +6
-0+ +Signed-off-by: Spenser Gilliland <[email protected]> +--- +Index: mesa3d-demos-8.1.0/configure.ac +=================================================================== +--- mesa3d-demos-8.1.0.orig/configure.ac 2013-02-2404:49:47.000000000 -0600
++++ mesa3d-demos-8.1.0/configure.ac 2013-09-05 10:01:19.137886856
-0500
+@@ -51,6 +51,14 @@package/mesa3d-demos/mesa3d-demos-optional-gl.patch new file +23
-0+ ACLOCAL="aclocal -I/other/macro/dir" before running autoreconf.])]) + PKG_PROG_PKG_CONFIG() + ++AC_ARG_ENABLE([gl], ++ [AS_HELP_STRING([--enable-gl], ++ [enable GL library @<:@default=no@:>@])], ++ [gl_enabled="$enableval"], ++ [gl_enabled=auto]) ++ ++if test "x$gl_enabled" != "xno"; then ++ + dnl Get the pkg-config definitions for libGL. We include a fallback + dnl path for GL implementation that don't provide a .pc file + PKG_CHECK_MODULES(GL, [gl], [], [ +@@ -103,6 +111,8 @@ + DEMO_CFLAGS="$DEMO_CFLAGS $GLU_CFLAGS" + DEMO_LIBS="$DEMO_LIBS $GLU_LIBS" + ++fi ++ + AC_ARG_ENABLE([egl], + [AS_HELP_STRING([--enable-egl], + [enable EGL library @<:@default=no@:>@])],
Quoted 8 lines
package/mesa3d-demos/mesa3d-demos-optional-gl.patch line 38
Quoted 5 lines
+@@ -202,7 +212,6 @@
package/mesa3d-demos/mesa3d-demos-optional-gl.patch new file +4
-0+ [enable support for wayland @<:@default=no@:>@])], + [wayland_enabled="$enableval"], + [wayland_enabled=no]) +-Why remove this line?
Will fix.
Quoted 15 lines
Regards,
ArnoutQuoted 5 lines
+ if test "x$wayland_enabled" != "xno"; then
+ PKG_CHECK_MODULES(WAYLAND, [wayland-client wayland-egl],
[wayland_enabled=yes], [wayland_enabled=no])
+ fi
+@@ -287,7 +296,7 @@[snip]
Quoted 7 lines
--
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286500 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
Thanks,
Spenser
Signature · 3 lines
Spenser Gilliland Computer Engineer Doctoral Candidate