mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Philipp Zabel <p.zabel@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH] mesalib: version bump 18.3.2 -> 19.0.0
Date: Thu, 14 Mar 2019 10:18:03 +0100	[thread overview]
Message-ID: <20190314091803.26313-1-p.zabel@pengutronix.de> (raw)

Switch build system to Meson.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
---
 ...sing-include-stddef.h-in-egldevice.h.patch |  41 ------
 patches/mesa-18.3.2/series                    |   4 -
 rules/host-mesalib.make                       | 103 +++++++-------
 rules/mesalib.in                              |  21 ++-
 rules/mesalib.make                            | 127 ++++++++----------
 5 files changed, 124 insertions(+), 172 deletions(-)
 delete mode 100644 patches/mesa-18.3.2/0001-egl-add-missing-include-stddef.h-in-egldevice.h.patch
 delete mode 100644 patches/mesa-18.3.2/series

diff --git a/patches/mesa-18.3.2/0001-egl-add-missing-include-stddef.h-in-egldevice.h.patch b/patches/mesa-18.3.2/0001-egl-add-missing-include-stddef.h-in-egldevice.h.patch
deleted file mode 100644
index a1ddac538d8c..000000000000
--- a/patches/mesa-18.3.2/0001-egl-add-missing-include-stddef.h-in-egldevice.h.patch
+++ /dev/null
@@ -1,41 +0,0 @@
-From: Gurchetan Singh <gurchetansingh@chromium.org>
-Date: Wed, 28 Nov 2018 08:39:34 -0800
-Subject: [PATCH] egl: add missing #include <stddef.h> in egldevice.h
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Otherwise, I get this error:
-
-main/egldevice.h:54:13: error: ‘NULL’ undeclared (first use in this function)
-       dev = NULL;
-             ^~~~
-with this config:
-
-./autogen.sh --enable-gles1 --enable-gles2 --with-platforms='surfaceless' --disable-glx
-             --with-dri-drivers="i965" --with-gallium-drivers="" --enable-gbm
-
-v3: Use stddef.h (Matt)
-v4: Modify commit message (Eric)
-
-Reviewed-by: Matt Turner <mattst88@gmail.com>
-Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
----
- src/egl/main/egldevice.h | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/src/egl/main/egldevice.h b/src/egl/main/egldevice.h
-index ddcdcd17f5a4..83a47d5eacc2 100644
---- a/src/egl/main/egldevice.h
-+++ b/src/egl/main/egldevice.h
-@@ -31,9 +31,9 @@
- 
- 
- #include <stdbool.h>
-+#include <stddef.h>
- #include "egltypedefs.h"
- 
--
- #ifdef __cplusplus
- extern "C" {
- #endif
diff --git a/patches/mesa-18.3.2/series b/patches/mesa-18.3.2/series
deleted file mode 100644
index d817864d531d..000000000000
--- a/patches/mesa-18.3.2/series
+++ /dev/null
@@ -1,4 +0,0 @@
-# generated by git-ptx-patches
-#tag:base --start-number 1
-0001-egl-add-missing-include-stddef.h-in-egldevice.h.patch
-# 0d0caa2eb09bc31597439c338401f18b  - git-ptx-patches magic
diff --git a/rules/host-mesalib.make b/rules/host-mesalib.make
index 3a1e16a7d6f5..ba54aac23cdd 100644
--- a/rules/host-mesalib.make
+++ b/rules/host-mesalib.make
@@ -17,64 +17,59 @@ HOST_PACKAGES-$(PTXCONF_HOST_MESALIB) += host-mesalib
 # Prepare
 # ----------------------------------------------------------------------------
 
-HOST_MESALIB_CONF_ENV := \
-	$(HOST_ENV) \
-	ac_cv_prog_PYTHON2=$(PTXDIST_TOPDIR)/bin/python
-
-HOST_MESALIB_BUILD_OOT	:= YES
-HOST_MESALIB_CONF_TOOL	:= autoconf
+HOST_MESALIB_CONF_TOOL	:= meson
 HOST_MESALIB_CONF_OPT	:= \
-	$(HOST_AUTOCONF) \
-	--enable-static \
-	--disable-shared \
-	--disable-pwr8 \
-	--disable-debug \
-	--disable-profile \
-	--disable-sanitize \
-	--disable-asm \
-	--disable-selinux \
-	--disable-llvm-shared-libs \
-	--disable-libunwind \
-	--enable-opengl \
-	--disable-gles1 \
-	--disable-gles2 \
-	--disable-dri \
-	--disable-gallium-extra-hud \
-	--disable-lmsensors \
-	--disable-dri3 \
-	--disable-glx \
-	--disable-osmesa \
-	--disable-gallium-osmesa \
-	--disable-egl \
-	--disable-xa \
-	--disable-gbm \
-	--disable-nine \
-	--disable-xvmc \
-	--disable-vdpau \
-	--disable-omx-tizonia \
-	--disable-omx-bellagio \
-	--disable-va \
-	--disable-opencl \
-	--disable-opencl-icd \
-	--disable-gallium-tests \
-	--disable-libglvnd \
-	--disable-mangling \
-	--enable-shared-glapi \
-	--disable-driglx-direct \
-	--disable-glx-tls \
-	--disable-llvm-shared-libs \
-	--disable-glx-read-only-text \
-	--disable-xlib-lease \
-	--disable-llvm \
-	--disable-valgrind \
-	--with-gallium-drivers= \
-	--with-dri-drivers= \
-	--without-vulkan-drivers \
-	--with-platforms=
+	$(HOST_MESON_OPT) \
+	-Dplatforms= \
+	-Ddri3=false \
+	-Ddri-drivers= \
+	-Ddri-drivers-path=/usr/lib/dri \
+	-Ddri-search-path=/usr/lib/dri \
+	-Dgallium-drivers= \
+	-Dgallium-extra-hud=false \
+	-Dgallium-vdpau=false \
+	-Dvdpau-libs-path=/usr/lib/vdpau \
+	-Dgallium-xvmc=false \
+	-Dxvmc-libs-path=/usr/lib \
+	-Dgallium-omx=disabled \
+	-Domx-libs-path=/usr/lib/dri \
+	-Dgallium-va=false \
+	-Dva-libs-path=/usr/lib/dri \
+	-Dgallium-xa=false \
+	-Dgallium-nine=false \
+	-Dgallium-opencl=disabled \
+	-Dd3d-drivers-path=/usr/lib/d3d \
+	-Dvulkan-drivers=[] \
+	-Dshader-cache=false \
+	-Dvulkan-icd-dir=/etc/vulkan/icd.d \
+	-Dshared-glapi=true \
+	-Dgles1=false \
+	-Dgles2=false \
+	-Dopengl=true \
+	-Dgbm=false \
+	-Dglx=disabled \
+	-Degl=false \
+	-Dglvnd=false \
+	-Dasm=false \
+	-Dglx-read-only-text=false \
+	-Dllvm=false \
+	-Dshared-llvm=false \
+	-Dvalgrind=false \
+	-Dlibunwind=false \
+	-Dlmsensors=false \
+	-Dbuild-tests=false \
+	-Dselinux=false \
+	-Dosmesa=none \
+	-Dosmesa-bits=8 \
+	-Dswr-arches=[] \
+	-Dtools=glsl \
+	-Dpower8=false \
+	-Dxlib-lease=false \
+	-Dglx-direct=false
 
 $(STATEDIR)/host-mesalib.install:
 	@$(call targetinfo)
-	install -D -m755 $(HOST_MESALIB_DIR)-build/src/compiler/glsl_compiler $(HOST_MESALIB_PKGDIR)/bin/mesa/glsl_compiler
+	install -D -m755 $(HOST_MESALIB_DIR)-build/src/compiler/glsl/glsl_compiler $(HOST_MESALIB_PKGDIR)/bin/mesa/glsl_compiler
 	@$(call touch)
 
 # vim: syntax=make
diff --git a/rules/mesalib.in b/rules/mesalib.in
index 52fcf22f6988..1542340cd640 100644
--- a/rules/mesalib.in
+++ b/rules/mesalib.in
@@ -4,8 +4,10 @@ menuconfig MESALIB
 	tristate
 	prompt "mesa                          "
 	select HOST_MESALIB
+	select HOST_MESON
 	select HOST_MAKEDEPEND
-	select HOST_SYSTEM_PYTHON
+	select HOST_SYSTEM_PYTHON3
+	select HOST_SYSTEM_PYTHON3_MAKO
 	select GCCLIBS
 	select GCCLIBS_CXX
 	select LIBDRM
@@ -19,6 +21,7 @@ menuconfig MESALIB
 	select LIBDRM_RADEON		if MESALIB_DRI_R600
 	select LIBDRM_RADEON		if MESALIB_DRI_RADEONSI
 	select LIBDRM_NOUVEAU		if MESALIB_DRI_NOUVEAU || MESALIB_DRI_NOUVEAU_VIEUX
+	select LIBDRM_FREEDRENO		if MESALIB_DRI_FREEDRENO
 	select LIBDRM_ETNAVIV		if MESALIB_DRI_ETNAVIV
 	select LM_SENSORS		if MESALIB_LMSENSORS
 	select XORGPROTO		if MESALIB_GLX
@@ -86,6 +89,10 @@ config MESALIB_DRI_NOUVEAU
 	bool
 	prompt "Nvidia > GForce4"
 
+config MESALIB_DRI_KMSRO
+	bool
+	prompt "KMS renderonly"
+
 config MESALIB_DRI_FREEDRENO
 	bool
 	prompt "Freedreno"
@@ -96,7 +103,7 @@ config MESALIB_DRI_ETNAVIV
 
 config MESALIB_DRI_IMX
 	bool
-	depends on MESALIB_DRI_ETNAVIV
+	depends on (MESALIB_DRI_FREEDRENO || MESALIB_DRI_ETNAVIV) && MESALIB_DRI_KMSRO
 	prompt "imx"
 
 config MESALIB_DRI_V3D
@@ -109,6 +116,16 @@ config MESALIB_DRI_VC4
 	bool
 	prompt "vc4"
 
+config MESALIB_DRI_PL111
+	bool
+	depends on MESALIB_DRI_VC4 && MESALIB_DRI_KMSRO
+	prompt "pl111"
+
+config MESALIB_DRI_HX8357D
+	bool
+	depends on MESALIB_DRI_VC4 && MESALIB_DRI_KMSRO
+	prompt "hx8357d"
+
 comment "API Support"
 
 config MESALIB_OPENGL
diff --git a/rules/mesalib.make b/rules/mesalib.make
index cca34917783d..88e2db45cc33 100644
--- a/rules/mesalib.make
+++ b/rules/mesalib.make
@@ -19,8 +19,8 @@ PACKAGES-$(PTXCONF_MESALIB) += mesalib
 #
 # Paths and names
 #
-MESALIB_VERSION	:= 18.3.2
-MESALIB_MD5	:= 4a82bf3ac2e81493a1a84dd7581ec786
+MESALIB_VERSION	:= 19.0.0
+MESALIB_MD5	:= d0d76cd8b00bc1308e37985d4a45d3c5
 MESALIB		:= mesa-$(MESALIB_VERSION)
 MESALIB_SUFFIX	:= tar.xz
 MESALIB_URL	:= \
@@ -36,10 +36,6 @@ MESALIB_LICENSE_FILES := \
 # Prepare
 # ----------------------------------------------------------------------------
 
-MESALIB_CONF_ENV := \
-	$(CROSS_ENV) \
-	ac_cv_prog_PYTHON2=$(PTXDIST_TOPDIR)/bin/python
-
 ifdef PTXCONF_ARCH_X86
 MESALIB_DRI_DRIVERS-$(PTXCONF_MESALIB_DRI_I915)		+= i915
 MESALIB_DRI_DRIVERS-$(PTXCONF_MESALIB_DRI_I965)		+= i965
@@ -47,6 +43,7 @@ endif
 MESALIB_DRI_DRIVERS-$(PTXCONF_MESALIB_DRI_NOUVEAU_VIEUX)+= nouveau
 MESALIB_DRI_DRIVERS-$(PTXCONF_MESALIB_DRI_R200)		+= r200
 
+MESALIB_GALLIUM_DRIVERS-$(PTXCONF_MESALIB_DRI_KMSRO)	+= kmsro
 ifndef PTXCONF_ARCH_ARM # broken: https://bugs.freedesktop.org/show_bug.cgi?id=72064
 ifndef PTXCONF_ARCH_X86 # needs llvm
 MESALIB_GALLIUM_DRIVERS-$(PTXCONF_MESALIB_DRI_R300)	+= r300
@@ -54,21 +51,22 @@ endif
 MESALIB_GALLIUM_DRIVERS-$(PTXCONF_MESALIB_DRI_R600)	+= r600
 MESALIB_GALLIUM_DRIVERS-$(PTXCONF_MESALIB_DRI_RADEONSI)	+= radeonsi
 endif
-
 MESALIB_GALLIUM_DRIVERS-$(PTXCONF_MESALIB_DRI_NOUVEAU)	+= nouveau
 MESALIB_GALLIUM_DRIVERS-$(PTXCONF_MESALIB_DRI_FREEDRENO)+= freedreno
 MESALIB_GALLIUM_DRIVERS-$(PTXCONF_MESALIB_DRI_ETNAVIV)	+= etnaviv
-MESALIB_GALLIUM_DRIVERS-$(PTXCONF_MESALIB_DRI_IMX)	+= imx
 ifdef PTXCONF_ARCH_ARM
 MESALIB_GALLIUM_DRIVERS-$(PTXCONF_MESALIB_DRI_V3D)	+= v3d
 MESALIB_GALLIUM_DRIVERS-$(PTXCONF_MESALIB_DRI_VC4)	+= vc4
 endif
-
 MESALIB_GALLIUM_DRIVERS-$(PTXCONF_MESALIB_DRI_SWRAST)	+= swrast
 
 MESALIB_DRI_LIBS-y += \
 	$(subst nouveau,nouveau_vieux,$(MESALIB_DRI_DRIVERS-y)) \
-	$(subst imx,imx-drm,$(subst freedreno,kgsl,$(MESALIB_GALLIUM_DRIVERS-y)))
+	$(subst kmsro,,$(subst freedreno,kgsl,$(MESALIB_GALLIUM_DRIVERS-y)))
+
+MESALIB_DRI_LIBS-$(PTXCONF_MESALIB_DRI_IMX) += imx-drm
+MESALIB_DRI_LIBS-$(PTXCONF_MESALIB_DRI_PL111) += pl111
+MESALIB_DRI_LIBS-$(PTXCONF_MESALIB_DRI_HX8357D) += hx8357d
 
 MESALIB_LIBS-y				:= libglapi
 MESALIB_LIBS-$(PTXCONF_MESALIB_GLX)	+= libGL
@@ -82,68 +80,55 @@ MESALIBS_EGL_PLATFORMS-$(PTXCONF_MESALIB_EGL_X11)	+= x11
 MESALIBS_EGL_PLATFORMS-$(PTXCONF_MESALIB_EGL_DRM)	+= drm
 MESALIBS_EGL_PLATFORMS-$(PTXCONF_MESALIB_EGL_WAYLAND)	+= wayland
 
-MESALIB_BUILD_OOT	:= YES
-MESALIB_CONF_TOOL	:= autoconf
+MESALIB_CONF_TOOL	:= meson
 MESALIB_CONF_OPT	:= \
-	$(CROSS_AUTOCONF_USR) \
-	--$(call ptx/endis, PTXCONF_GLOBAL_LARGE_FILE)-largefile \
-	--disable-static \
-	--enable-shared \
-	--disable-pwr8 \
-	--disable-debug \
-	--disable-profile \
-	--disable-sanitize \
-	--disable-asm \
-	--disable-selinux \
-	--disable-llvm-shared-libs \
-	--disable-libunwind \
-	--$(call ptx/endis, PTXCONF_MESALIB_OPENGL)-opengl \
-	--$(call ptx/endis, PTXCONF_MESALIB_GLES1)-gles1 \
-	--$(call ptx/endis, PTXCONF_MESALIB_GLES2)-gles2 \
-	--enable-dri \
-	--$(call ptx/endis, PTXCONF_MESALIB_EXTENDED_HUD)-gallium-extra-hud \
-	--$(call ptx/endis, PTXCONF_MESALIB_LMSENSORS)-lmsensors \
-	--disable-dri3 \
-	--$(call ptx/endis, PTXCONF_MESALIB_GLX)-glx \
-	--disable-osmesa \
-	--disable-gallium-osmesa \
-	--$(call ptx/endis, PTXCONF_MESALIB_EGL)-egl \
-	--disable-xa \
-	--$(call ptx/endis, PTXCONF_MESALIB_GBM)-gbm \
-	--disable-nine \
-	--disable-xvmc \
-	--disable-vdpau \
-	--disable-omx-tizonia \
-	--disable-omx-bellagio \
-	--disable-va \
-	--disable-opencl \
-	--disable-opencl-icd \
-	--disable-gallium-tests \
-	--disable-libglvnd \
-	--disable-mangling \
-	--enable-shared-glapi \
-	--enable-driglx-direct \
-	--enable-glx-tls \
-	--disable-glx-read-only-text \
-	--disable-xlib-lease \
-	--disable-llvm \
-	--disable-valgrind \
-	--with-gallium-drivers=$(subst $(space),$(comma),$(MESALIB_GALLIUM_DRIVERS-y)) \
-	--with-platforms=$(subst $(space),$(comma),$(MESALIBS_EGL_PLATFORMS-y)) \
-	--with-dri-driverdir=/usr/lib/dri \
-	--with-dri-searchpath=/usr/lib/dri \
-	--with-dri-drivers=$(subst $(space),$(comma),$(MESALIB_DRI_DRIVERS-y)) \
-	--without-vulkan-drivers \
-	--with-vulkan-icddir=/etc/vulkan/icd.d \
-	--with-osmesa-bits=8 \
-	--with-clang-libdir=/usr/lib \
-	--with-xvmc-libdir=/usr/lib \
-	--with-vdpau-libdir=/usr/lib/vdpau \
-	--with-omx-bellagio-libdir=/usr/lib/dri \
-	--with-omx-tizonia-libdir=/usr/lib/dri \
-	--with-va-libdir=/usr/lib/dri \
-	--with-d3d-libdir=/usr/lib/d3d \
-	--with-swr-archs=
+	$(CROSS_MESON_USR) \
+	-Dplatforms=$(subst $(space),$(comma),$(MESALIBS_EGL_PLATFORMS-y)) \
+	-Ddri3=false \
+	-Ddri-drivers=$(subst $(space),$(comma),$(MESALIB_DRI_DRIVERS-y)) \
+	-Ddri-drivers-path=/usr/lib/dri \
+	-Ddri-search-path=/usr/lib/dri \
+	-Dgallium-drivers=$(subst $(space),$(comma),$(MESALIB_GALLIUM_DRIVERS-y)) \
+	-Dgallium-extra-hud=$(call ptx/truefalse, PTXCONF_MESALIB_EXTENDED_HUD) \
+	-Dgallium-vdpau=false \
+	-Dvdpau-libs-path=/usr/lib/vdpau \
+	-Dgallium-xvmc=false \
+	-Dxvmc-libs-path=/usr/lib \
+	-Dgallium-omx=disabled \
+	-Domx-libs-path=/usr/lib/dri \
+	-Dgallium-va=false \
+	-Dva-libs-path=/usr/lib/dri \
+	-Dgallium-xa=false \
+	-Dgallium-nine=false \
+	-Dgallium-opencl=disabled \
+	-Dd3d-drivers-path=/usr/lib/d3d \
+	-Dvulkan-drivers=[] \
+	-Dshader-cache=false \
+	-Dvulkan-icd-dir=/etc/vulkan/icd.d \
+	-Dshared-glapi=true \
+	-Dgles1=$(call ptx/truefalse, PTXCONF_MESALIB_GLES1) \
+	-Dgles2=$(call ptx/truefalse, PTXCONF_MESALIB_GLES2) \
+	-Dopengl=$(call ptx/truefalse, PTXCONF_MESALIB_OPENGL) \
+	-Dgbm=$(call ptx/truefalse, PTXCONF_MESALIB_GBM) \
+	-Dglx=disabled \
+	-Degl=$(call ptx/truefalse, PTXCONF_MESALIB_EGL) \
+	-Dglvnd=false \
+	-Dasm=false \
+	-Dglx-read-only-text=false \
+	-Dllvm=false \
+	-Dshared-llvm=false \
+	-Dvalgrind=false \
+	-Dlibunwind=false \
+	-Dlmsensors=$(call ptx/truefalse, PTXCONF_MESALIB_LMSENSORS) \
+	-Dbuild-tests=false \
+	-Dselinux=false \
+	-Dosmesa=none \
+	-Dosmesa-bits=8 \
+	-Dswr-arches=[] \
+	-Dtools=[] \
+	-Dpower8=false \
+	-Dxlib-lease=false \
+	-Dglx-direct=false
 
 # ----------------------------------------------------------------------------
 # Compile
-- 
2.20.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

                 reply	other threads:[~2019-03-14  9:18 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190314091803.26313-1-p.zabel@pengutronix.de \
    --to=p.zabel@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox