Skip to contentSkip to conversation

mesa: Convert recipe to use meson build system

RFC PATCH Superseded Fabio Berton 5 participants 11 messages Feb 22, 2019 – Feb 26, 2019 Arm/Amlogic Meson SoC support

v4 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

RFC PATCH v4 1/1 mesa: Convert recipe to use meson build system

- Remove all non related meson patches
- Change radeon driver to r100

Based on https://patchwork.openembedded.org/patch/158748/

---
 ...0001-Simplify-wayland-scanner-lookup.patch | 42 --------------
 ...ing-include-stddef.h-in-egldevice.h.patch} |  4 +-
 ...k-for-all-linux-host_os-combinations.patch | 50 ++++++++++++++++
 ...-winsys-svga-drm-Include-sys-types.h.patch | 34 -----------
 ...M-version-when-using-LLVM-Git-releas.patch | 44 --------------
 ...R-for-defining-WAYLAND_PROTOCOLS_DAT.patch | 35 -----------
 meta/recipes-graphics/mesa/mesa.inc           | 58 +++++++++----------
 meta/recipes-graphics/mesa/mesa_18.3.4.bb     |  7 +--
 8 files changed, 81 insertions(+), 193 deletions(-)
 delete mode 100644 meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch
 rename meta/recipes-graphics/mesa/files/{0005-egl-add-missing-include-stddef.h-in-egldevice.h.patch => 0001-egl-add-missing-include-stddef.h-in-egldevice.h.patch} (91%)
 create mode 100644 meta/recipes-graphics/mesa/files/0002-meson.build-check-for-all-linux-host_os-combinations.patch
 delete mode 100644 meta/recipes-graphics/mesa/files/0002-winsys-svga-drm-Include-sys-types.h.patch
 delete mode 100644 meta/recipes-graphics/mesa/files/0003-Properly-get-LLVM-version-when-using-LLVM-Git-releas.patch
 delete mode 100644 meta/recipes-graphics/mesa/files/0004-use-PKG_CHECK_VAR-for-defining-WAYLAND_PROTOCOLS_DAT.patch
meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch deleted +0 -42
deleted file mode 100644
index 1c2ded0e60..0000000000
@@ -1,42 +0,0 @@
-From 81bcaa1aeecf1e66b4d94181e9a827d68e970b03 Mon Sep 17 00:00:00 2001
-From: Fabio Berton <[email protected]>
-Date: Wed, 20 Feb 2019 16:17:00 -0300
-Subject: [PATCH 1/5] Simplify wayland-scanner lookup
-Organization: O.S. Systems Software LTDA.
-
-Don't use pkg-config to lookup the path of a binary that's in the path.
-
-Alternatively we'd have to prefix the path returned by pkg-config with
-PKG_CONFIG_SYSROOT_DIR.
-
-Upstream-Status: Pending
-Signed-off-by: Jussi Kukkonen <[email protected]>
-Signed-off-by: Otavio Salvador <[email protected]>
----
- configure.ac | 7 +------
- 1 file changed, 1 insertion(+), 6 deletions(-)
-
-diff --git a/configure.ac b/configure.ac
-index cd9ff259fad..402b4a91946 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -1841,16 +1841,11 @@ for plat in $platforms; do
-         fi
-         WAYLAND_PROTOCOLS_DATADIR=`$PKG_CONFIG --variable=pkgdatadir wayland-protocols`
-
--        PKG_CHECK_MODULES([WAYLAND_SCANNER], [wayland-scanner],
--                          WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`,
--                          WAYLAND_SCANNER='')
-         PKG_CHECK_EXISTS([wayland-scanner >= 1.15],
-                           AC_SUBST(SCANNER_ARG, 'private-code'),
-                           AC_SUBST(SCANNER_ARG, 'code'))
-
--        if test "x$WAYLAND_SCANNER" = x; then
--            AC_PATH_PROG([WAYLAND_SCANNER], [wayland-scanner], [:])
--        fi
-+        AC_PATH_PROG([WAYLAND_SCANNER], [wayland-scanner], [:])
-
-         if test "x$WAYLAND_SCANNER" = "x:"; then
-                 AC_MSG_ERROR([wayland-scanner is needed to compile the wayland platform])
---
-2.20.1
meta/recipes-graphics/mesa/files/0001-egl-add-missing-include-stddef.h-in-egldevice.h.patch renamed from meta/recipes-graphics/mesa/files/0005-egl-add-missing-include-stddef.h-in-egldevice.h.patch +2 -2
similarity index 91%
rename from meta/recipes-graphics/mesa/files/0005-egl-add-missing-include-stddef.h-in-egldevice.h.patch
rename to meta/recipes-graphics/mesa/files/0001-egl-add-missing-include-stddef.h-in-egldevice.h.patch
index 1782576db2..08d128e919 100644
@@ -1,7 +1,7 @@
-From f452e30ab664fe608acc107cc03d2efa8731d938 Mon Sep 17 00:00:00 2001
+From d2d5acdcb10465c024c8b0931d49e49660210d2c Mon Sep 17 00:00:00 2001
 From: Gurchetan Singh <[email protected]>
 Date: Wed, 28 Nov 2018 08:39:34 -0800
-Subject: [PATCH 5/5] egl: add missing #include <stddef.h> in egldevice.h
+Subject: [PATCH 1/2] egl: add missing #include <stddef.h> in egldevice.h
 MIME-Version: 1.0
 Content-Type: text/plain; charset=UTF-8
 Content-Transfer-Encoding: 8bit
meta/recipes-graphics/mesa/files/0002-meson.build-check-for-all-linux-host_os-combinations.patch new file +50 -0

50 lines not on this page · raw message

meta/recipes-graphics/mesa/files/0002-winsys-svga-drm-Include-sys-types.h.patch deleted +0 -34
deleted file mode 100644
index 12dca61e19..0000000000
@@ -1,34 +0,0 @@
-From 34c3d07b67e6c08f555473a86ff158951abb6000 Mon Sep 17 00:00:00 2001
-From: Khem Raj <[email protected]>
-Date: Wed, 16 Aug 2017 18:58:20 -0700
-Subject: [PATCH 2/5] winsys/svga/drm: Include sys/types.h
-Organization: O.S. Systems Software LTDA.
-
-vmw_screen.h uses dev_t which is defines in sys/types.h
-this header is required to be included for getting dev_t
-definition. This issue happens on musl C library, it is hidden
-on glibc since sys/types.h is included through another
-system headers
-
-Signed-off-by: Khem Raj <[email protected]>
-Upstream-Status: Backport [7dfdfbf8c37e52e7b9b09f7d1d434edad3ebc864]
-Signed-off-by: Otavio Salvador <[email protected]>
----
- src/gallium/winsys/svga/drm/vmw_screen.h | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/src/gallium/winsys/svga/drm/vmw_screen.h b/src/gallium/winsys/svga/drm/vmw_screen.h
-index a87c087d9c5..cb34fec48e7 100644
---- a/src/gallium/winsys/svga/drm/vmw_screen.h
-+++ b/src/gallium/winsys/svga/drm/vmw_screen.h
-@@ -41,6 +41,7 @@
- #include "svga_winsys.h"
- #include "pipebuffer/pb_buffer_fenced.h"
- #include <os/os_thread.h>
-+#include <sys/types.h>
- 
- #define VMW_GMR_POOL_SIZE (16*1024*1024)
- #define VMW_QUERY_POOL_SIZE (8192)
--- 
-2.20.1
-
meta/recipes-graphics/mesa/files/0003-Properly-get-LLVM-version-when-using-LLVM-Git-releas.patch deleted +0 -44

44 lines not on this page · raw message

meta/recipes-graphics/mesa/files/0004-use-PKG_CHECK_VAR-for-defining-WAYLAND_PROTOCOLS_DAT.patch deleted +0 -35
deleted file mode 100644
index 8c91790249..0000000000
@@ -1,35 +0,0 @@
-From f48b8f073f921ce5be859130313e9d392ef3e78e Mon Sep 17 00:00:00 2001
-From: Fabio Berton <[email protected]>
-Date: Fri, 15 Feb 2019 10:57:06 -0200
-Subject: [PATCH 4/5] use PKG_CHECK_VAR for defining WAYLAND_PROTOCOLS_DATADIR
-Organization: O.S. Systems Software LTDA.
-
-This allows to override the wayland-protocols pkgdatadir with the
-WAYLAND_PROTOCOLS_DATADIR from environment.
-
-pkgconfig would return an absolute path in
-/usr/share/wayland-protocols
-for the pkgdatadir value, which is not suitable for cross-compiling.
-
-Upstream-Status: Pending
-
-Signed-off-by: Khem Raj <[email protected]>
-Signed-off-by: Otavio Salvador <[email protected]>
-Signed-off-by: Fabio Berton <[email protected]>
----
- configure.ac | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/configure.ac b/configure.ac
-index 0065376f4b7..b21fb2210c6 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -1839,7 +1839,7 @@ for plat in $platforms; do
-         if test "x$enable_egl" = xyes; then
-           PKG_CHECK_MODULES([WAYLAND_EGL], [wayland-egl-backend >= $WAYLAND_EGL_BACKEND_REQUIRED])
-         fi
--        WAYLAND_PROTOCOLS_DATADIR=`$PKG_CONFIG --variable=pkgdatadir wayland-protocols`
-+        PKG_CHECK_VAR([WAYLAND_PROTOCOLS_DATADIR], [wayland-protocols >= $WAYLAND_PROTOCOLS_REQUIRED], pkgdatadir)
- 
-         PKG_CHECK_EXISTS([wayland-scanner >= 1.15],
-                           AC_SUBST(SCANNER_ARG, 'private-code'),
meta/recipes-graphics/mesa/mesa.inc +27 -31

126 lines not on this page · raw message

meta/recipes-graphics/mesa/mesa_18.3.4.bb +2 -5
index 27f4f0241f..7afb15be10 100644
@@ -1,11 +1,8 @@
 require ${BPN}.inc
 
 SRC_URI = "https://mesa.freedesktop.org/archive/mesa-${PV}.tar.xz \
-           file://0001-Simplify-wayland-scanner-lookup.patch \
-           file://0002-winsys-svga-drm-Include-sys-types.h.patch \
-           file://0003-Properly-get-LLVM-version-when-using-LLVM-Git-releas.patch \
-           file://0004-use-PKG_CHECK_VAR-for-defining-WAYLAND_PROTOCOLS_DAT.patch \
-           file://0005-egl-add-missing-include-stddef.h-in-egldevice.h.patch \
+           file://0001-egl-add-missing-include-stddef.h-in-egldevice.h.patch \
+           file://0002-meson.build-check-for-all-linux-host_os-combinations.patch \
 "
 
 SRC_URI[md5sum] = "6f2a5e01dd5cb91d05a9534f5a80c35d"
Signature · 1 line
2.20.1
#1 lore raw

packages/corei7-64-poky-linux/mesa/libgles1-mesa: FILELIST: removed "/usr/lib/libGLESv1_CM.so.1.1.0", added "/usr/lib/libGLESv1_CM.so.1.0.0"

Is that intentional? Looks like a version mistake in the meson.build.

Ross

#2 lore raw

So far:

<dcbaker>rburton: according to this commit it's intentional:
cc15460e182148292be877bec5a8a61cec57377d <dcbaker>although I'm not sure that patch was correct now, it looks like autotools has generated a 1.1.0 since 2014

Quoted 8 lines · Ross

packages/corei7-64-poky-linux/mesa/libgles1-mesa: FILELIST: removed "/usr/lib/libGLESv1_CM.so.1.1.0", added "/usr/lib/libGLESv1_CM.so.1.0.0"

Is that intentional? Looks like a version mistake in the meson.build.

Ross

#3 lore raw
Quoted 15 lines · Ross

So far:

<dcbaker>rburton: according to this commit it's intentional:
cc15460e182148292be877bec5a8a61cec57377d <dcbaker>although I'm not sure that patch was correct now, it looks like autotools has generated a 1.1.0 since 2014

Quoted 6 lines · Ross

packages/corei7-64-poky-linux/mesa/libgles1-mesa: FILELIST: removed "/usr/lib/libGLESv1_CM.so.1.1.0", added "/usr/lib/libGLESv1_CM.so.1.0.0"

Is that intentional? Looks like a version mistake in the meson.build.

I intend to wait for 19.0.1 to upgrade to meson, however, we will again upgrade and then do the meson change so we can track regressions or behavior changes.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9 9981-7854          Mobile: +1 (347) 903-9750
#4 lore raw
In reply to Burton, Ross

I'm also not convinced this was right and have submitted
https://lists.freedesktop.org/archives/mesa-dev/2019-February/215791.html.
When that is reviewed we'll know whether this change is fine, or we should pick a the patch.

Ross

Quoted 17 lines · Ross

So far:

<dcbaker>rburton: according to this commit it's intentional:
cc15460e182148292be877bec5a8a61cec57377d <dcbaker>although I'm not sure that patch was correct now, it looks like autotools has generated a 1.1.0 since 2014

Quoted 8 lines · Ross

packages/corei7-64-poky-linux/mesa/libgles1-mesa: FILELIST: removed "/usr/lib/libGLESv1_CM.so.1.1.0", added "/usr/lib/libGLESv1_CM.so.1.0.0"

Is that intentional? Looks like a version mistake in the meson.build.

Ross

#5 lore raw

Patch has been accepted, so we need to cherry-pick the patch I mentioned.

Ross

Quoted 26 lines · Ross

I'm also not convinced this was right and have submitted
https://lists.freedesktop.org/archives/mesa-dev/2019-February/215791.html.
When that is reviewed we'll know whether this change is fine, or we should pick a the patch.

Ross

Quoted 17 lines · Ross

So far:

<dcbaker>rburton: according to this commit it's intentional:
cc15460e182148292be877bec5a8a61cec57377d <dcbaker>although I'm not sure that patch was correct now, it looks like autotools has generated a 1.1.0 since 2014

Quoted 8 lines · Ross

packages/corei7-64-poky-linux/mesa/libgles1-mesa: FILELIST: removed "/usr/lib/libGLESv1_CM.so.1.1.0", added "/usr/lib/libGLESv1_CM.so.1.0.0"

Is that intentional? Looks like a version mistake in the meson.build.

Ross

#6 lore raw
Quoted 2 lines · Ross

Patch has been accepted, so we need to cherry-pick the patch I mentioned.

We will wait for 19.0.1 to be out to go to meson, so it will be applied there for sure.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9 9981-7854          Mobile: +1 (347) 903-9750
#7 lore raw
Quoted 8 lines · Otavio Salvador
Quoted 2 lines · Ross

Patch has been accepted, so we need to cherry-pick the patch I mentioned.

We will wait for 19.0.1 to be out to go to meson, so it will be applied there for sure.

I am still seeing fredreno build failure with master-next
https://errors.yoctoproject.org/Errors/Details/230466/

Quoted 9 lines

--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9 9981-7854 Mobile: +1 (347) 903-9750
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#8 lore raw
Quoted 6 lines · Khem Raj
Quoted 3 lines · Otavio Salvador
Quoted 1 line · Ross
Quoted 8 lines
Quoted 5 lines
Quoted 1 line

Patch has been accepted, so we need to cherry-pick the patch I mentioned.

We will wait for 19.0.1 to be out to go to meson, so it will be applied there for sure.

I am still seeing fredreno build failure with master-next
https://errors.yoctoproject.org/Errors/Details/230466/

I was about to suggest that the right fix would be to get rid of that recipe, since it's been deprecated, see:
http://bloggingthemonkey.blogspot.com/2016/11/a-quick-note-for-usersdistros.html

So i checked the Layer index to find which layer has the recipe just to realize it's my own meta-qcom layer... oops.

Are you ok, if I remove it, or do you need it for anything?

Quoted 15 lines
Quoted 10 lines

--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9 9981-7854 Mobile: +1 (347) 903-9750
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#9 lore raw
Quoted 17 lines · Nicolas Dechesne
Quoted 6 lines · Khem Raj
Quoted 3 lines · Otavio Salvador
Quoted 1 line · Ross
Quoted 8 lines
Quoted 5 lines
Quoted 1 line

Patch has been accepted, so we need to cherry-pick the patch I mentioned.

We will wait for 19.0.1 to be out to go to meson, so it will be applied there for sure.

I am still seeing fredreno build failure with master-next
https://errors.yoctoproject.org/Errors/Details/230466/

Quoted 8 lines

I was about to suggest that the right fix would be to get rid of that recipe, since it's been deprecated, see:
http://bloggingthemonkey.blogspot.com/2016/11/a-quick-note-for-usersdistros.html

So i checked the Layer index to find which layer has the recipe just to realize it's my own meta-qcom layer... oops.

Are you ok, if I remove it, or do you need it for anything?

Deleting is fine

Quoted 16 lines
Quoted 16 lines
Quoted 11 lines

--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9 9981-7854 Mobile: +1 (347) 903-9750
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#10 lore raw
Quoted 24 lines · Khem Raj
Quoted 21 lines · Nicolas Dechesne
Quoted 6 lines · Khem Raj
Quoted 3 lines · Otavio Salvador
Quoted 1 line · Ross
Quoted 8 lines
Quoted 5 lines
Quoted 1 line

Patch has been accepted, so we need to cherry-pick the patch I mentioned.

We will wait for 19.0.1 to be out to go to meson, so it will be applied there for sure.

I am still seeing fredreno build failure with master-next
https://errors.yoctoproject.org/Errors/Details/230466/

I was about to suggest that the right fix would be to get rid of that recipe, since it's been deprecated, see:
http://bloggingthemonkey.blogspot.com/2016/11/a-quick-note-for-usersdistros.html

Quoted 6 lines
Quoted 4 lines

So i checked the Layer index to find which layer has the recipe just to realize it's my own meta-qcom layer... oops.

Are you ok, if I remove it, or do you need it for anything?

Deleting is fine

done. for both master and thud branches.

Quoted 17 lines
Quoted 17 lines
Quoted 17 lines
Quoted 12 lines

--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9 9981-7854 Mobile: +1 (347) 903-9750
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core