Skip to contentSkip to conversation

package/glmark2: drm-glesv2 needs libdrm

PATCH Applied Bernd Kuhls 3 participants 10 messages Nov 13, 2021 – Nov 18, 2021 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/3 package/glmark2: drm-glesv2 needs libdrm

Fixes:
http://autobuild.buildroot.net/results/58a/58a498fac83cbb55b252ab54cd8db04570bb5ec9/

---
v2: moved libdrm select to main symbol (Yann)

 package/glmark2/Config.in  | 3 +++
 package/glmark2/glmark2.mk | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)
package/glmark2/Config.in +3 -0
index 40d0adcc8a..3ef3a0e8e3 100644
@@ -7,6 +7,8 @@ config BR2_PACKAGE_GLMARK2_FLAVOR_DRM_GLESV2
 	depends on BR2_PACKAGE_HAS_LIBEGL
 	depends on BR2_PACKAGE_HAS_LIBGLES
 	depends on BR2_PACKAGE_HAS_UDEV
+	# libpthread-stubs -> libdrm
+	depends on BR2_TOOLCHAIN_HAS_THREADS
 	select BR2_PACKAGE_GLMARK2_FLAVOR_ANY
 
 config BR2_PACKAGE_GLMARK2_FLAVOR_DRM_GL
@@ -63,6 +65,7 @@ config BR2_PACKAGE_GLMARK2
 	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # C++14
 	depends on BR2_PACKAGE_GLMARK2_FLAVOR_ANY
 	select BR2_PACKAGE_JPEG
+	select BR2_PACKAGE_LIBDRM if BR2_PACKAGE_GLMARK2_FLAVOR_DRM_GLESV2
 	select BR2_PACKAGE_LIBPNG
 	help
 	  glmark2 is an OpenGL 2.0 and ES 2.0 benchmark.
package/glmark2/glmark2.mk +1 -1
index 5c2dd06362..5ad3ea2cb4 100644
@@ -11,7 +11,7 @@ GLMARK2_LICENSE_FILES = COPYING COPYING.SGI
 GLMARK2_DEPENDENCIES = host-pkgconf jpeg libegl libpng
 
 ifeq ($(BR2_PACKAGE_GLMARK2_FLAVOR_DRM_GLESV2),y)
-GLMARK2_DEPENDENCIES += libgles udev
+GLMARK2_DEPENDENCIES += libdrm libgles udev
 GLMARK2_FLAVORS += drm-glesv2
 endif
 
Signature · 6 lines
2.30.2

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

PATCH 3/3 package/glmark2: fix selection of dependencies

Commit 9c068b4be8 (package/glmark2: fix wayland build) extended the set of required libraries for various "flavor" options by selecting those libraries from the blind options.

However, that option is true as soon as the requirements are met (the depends on), even when glmark2 itself is not enabled.

This means that extra libraries are pulled in to the build, even when not required.

We fix that by moving the actual selects to the main symbol, along with the proper conditions. This means that we have two lines that select wayland-protocols, under two different conditions; we could make that a single select, but the codition would need to be on two lines anyway, so meh...

---
Requested by Yann:
http://lists.busybox.net/pipermail/buildroot/2021-November/628389.html

 package/glmark2/Config.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
package/glmark2/Config.in +2 -2
index 6761397d3f..5897ccb3ff 100644
@@ -27,7 +27,6 @@ config BR2_PACKAGE_GLMARK2_FLAVOR_WAYLAND_GLESV2
 	depends on BR2_PACKAGE_HAS_LIBGLES
 	depends on BR2_PACKAGE_WAYLAND
 	select BR2_PACKAGE_GLMARK2_FLAVOR_ANY
-	select BR2_PACKAGE_WAYLAND_PROTOCOLS
 
 config BR2_PACKAGE_GLMARK2_FLAVOR_WAYLAND_GL
 	bool
@@ -36,7 +35,6 @@ config BR2_PACKAGE_GLMARK2_FLAVOR_WAYLAND_GL
 	depends on BR2_PACKAGE_HAS_LIBGL
 	depends on BR2_PACKAGE_WAYLAND
 	select BR2_PACKAGE_GLMARK2_FLAVOR_ANY
-	select BR2_PACKAGE_WAYLAND_PROTOCOLS
 
 config BR2_PACKAGE_GLMARK2_FLAVOR_X11_GLESV2
 	bool
@@ -68,6 +66,8 @@ config BR2_PACKAGE_GLMARK2
 	select BR2_PACKAGE_JPEG
 	select BR2_PACKAGE_LIBDRM if BR2_PACKAGE_GLMARK2_FLAVOR_DRM_GLESV2
 	select BR2_PACKAGE_LIBPNG
+	select BR2_PACKAGE_WAYLAND_PROTOCOLS if BR2_PACKAGE_GLMARK2_FLAVOR_WAYLAND_GL
+	select BR2_PACKAGE_WAYLAND_PROTOCOLS if BR2_PACKAGE_GLMARK2_FLAVOR_WAYLAND_GLESV2
 	help
 	  glmark2 is an OpenGL 2.0 and ES 2.0 benchmark.
 
Signature · 6 lines
2.30.2

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw

Re: [Buildroot] [PATCH 3/3] package/glmark2: fix selection of dependencies

Bernd, All,

On 2021-11-13 10:30 +0100, Bernd Kuhls spake thusly:

Quoted 10 lines

Commit 9c068b4be8 (package/glmark2: fix wayland build) extended the set of required libraries for various "flavor" options by selecting those libraries from the blind options.

However, that option is true as soon as the requirements are met (the depends on), even when glmark2 itself is not enabled.

This means that extra libraries are pulled in to the build, even when not required.

Quoted 7 lines

We fix that by moving the actual selects to the main symbol, along with the proper conditions. This means that we have two lines that select wayland-protocols, under two different conditions; we could make that a single select, but the codition would need to be on two lines anyway, so meh...

Aha! I see you re-used my previous commit as-is. You even kept all my typoes! ;-)

Applied to master, thanks.

Regards,
Yann E. MORIN.

Quoted 43 lines

---
Requested by Yann:
http://lists.busybox.net/pipermail/buildroot/2021-November/628389.html

 package/glmark2/Config.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
package/glmark2/Config.in +2 -2
index 6761397d3f..5897ccb3ff 100644
@@ -27,7 +27,6 @@ config BR2_PACKAGE_GLMARK2_FLAVOR_WAYLAND_GLESV2
 	depends on BR2_PACKAGE_HAS_LIBGLES
 	depends on BR2_PACKAGE_WAYLAND
 	select BR2_PACKAGE_GLMARK2_FLAVOR_ANY
-	select BR2_PACKAGE_WAYLAND_PROTOCOLS
 
 config BR2_PACKAGE_GLMARK2_FLAVOR_WAYLAND_GL
 	bool
@@ -36,7 +35,6 @@ config BR2_PACKAGE_GLMARK2_FLAVOR_WAYLAND_GL
 	depends on BR2_PACKAGE_HAS_LIBGL
 	depends on BR2_PACKAGE_WAYLAND
 	select BR2_PACKAGE_GLMARK2_FLAVOR_ANY
-	select BR2_PACKAGE_WAYLAND_PROTOCOLS
 
 config BR2_PACKAGE_GLMARK2_FLAVOR_X11_GLESV2
 	bool
@@ -68,6 +66,8 @@ config BR2_PACKAGE_GLMARK2
 	select BR2_PACKAGE_JPEG
 	select BR2_PACKAGE_LIBDRM if BR2_PACKAGE_GLMARK2_FLAVOR_DRM_GLESV2
 	select BR2_PACKAGE_LIBPNG
+	select BR2_PACKAGE_WAYLAND_PROTOCOLS if BR2_PACKAGE_GLMARK2_FLAVOR_WAYLAND_GL
+	select BR2_PACKAGE_WAYLAND_PROTOCOLS if BR2_PACKAGE_GLMARK2_FLAVOR_WAYLAND_GLESV2
 	help
 	  glmark2 is an OpenGL 2.0 and ES 2.0 benchmark.
 
Signature · 6 lines
2.30.2

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#3 lore raw

Re: [Buildroot] [PATCH 3/3] package/glmark2: fix selection of dependencies

In reply to Bernd Kuhls
Quoted 18 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Bernd" == Bernd Kuhls <[email protected]> writes:

Commit 9c068b4be8 (package/glmark2: fix wayland build) extended the set of required libraries for various "flavor" options by selecting those libraries from the blind options.

However, that option is true as soon as the requirements are met (the depends on), even when glmark2 itself is not enabled.

This means that extra libraries are pulled in to the build, even when not required.

We fix that by moving the actual selects to the main symbol, along with the proper conditions. This means that we have two lines that select wayland-protocols, under two different conditions; we could make that a single select, but the codition would need to be on two lines anyway, so meh...

Quoted 4 lines

---
Requested by Yann:
http://lists.busybox.net/pipermail/buildroot/2021-November/628389.html

Committed to 2021.02.x and 2021.08.x, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#4 lore raw

PATCH v2 2/3 package/glmark2: drm-glesv2 needs libgbm

In reply to Bernd Kuhls

Fixes build error with defconfig from:
http://autobuild.buildroot.net/results/e393dbfba7c2989fe983df47ea0638c3ba62ae7a/

Checking for 'libdrm': yes
Checking for 'gbm' : not found

after http://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/
was applied. Both patches are needed to fix the build error.

---
v2: no changes

 package/glmark2/Config.in  | 1 +
 package/glmark2/glmark2.mk | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
package/glmark2/Config.in +1 -0
index 3ef3a0e8e3..6761397d3f 100644
@@ -5,6 +5,7 @@ config BR2_PACKAGE_GLMARK2_FLAVOR_DRM_GLESV2
 	bool
 	default y
 	depends on BR2_PACKAGE_HAS_LIBEGL
+	depends on BR2_PACKAGE_HAS_LIBGBM
 	depends on BR2_PACKAGE_HAS_LIBGLES
 	depends on BR2_PACKAGE_HAS_UDEV
 	# libpthread-stubs -> libdrm
package/glmark2/glmark2.mk +1 -1
index 5ad3ea2cb4..e8d6f71dad 100644
@@ -11,7 +11,7 @@ GLMARK2_LICENSE_FILES = COPYING COPYING.SGI
 GLMARK2_DEPENDENCIES = host-pkgconf jpeg libegl libpng
 
 ifeq ($(BR2_PACKAGE_GLMARK2_FLAVOR_DRM_GLESV2),y)
-GLMARK2_DEPENDENCIES += libdrm libgles udev
+GLMARK2_DEPENDENCIES += libdrm libgbm libgles udev
 GLMARK2_FLAVORS += drm-glesv2
 endif
 
Signature · 6 lines
2.30.2

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#5 lore raw

Re: [Buildroot] [PATCH v2 2/3] package/glmark2: drm-glesv2 needs libgbm

Bernd, All,

On 2021-11-13 10:30 +0100, Bernd Kuhls spake thusly:

Quoted 10 lines

Fixes build error with defconfig from:
http://autobuild.buildroot.net/results/e393dbfba7c2989fe983df47ea0638c3ba62ae7a/

Checking for 'libdrm': yes
Checking for 'gbm' : not found

after http://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/
was applied. Both patches are needed to fix the build error.

Applied to master, thanks.

Regards,
Yann E. MORIN.

Quoted 39 lines

---
v2: no changes

 package/glmark2/Config.in  | 1 +
 package/glmark2/glmark2.mk | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
package/glmark2/Config.in +1 -0
index 3ef3a0e8e3..6761397d3f 100644
@@ -5,6 +5,7 @@ config BR2_PACKAGE_GLMARK2_FLAVOR_DRM_GLESV2
 	bool
 	default y
 	depends on BR2_PACKAGE_HAS_LIBEGL
+	depends on BR2_PACKAGE_HAS_LIBGBM
 	depends on BR2_PACKAGE_HAS_LIBGLES
 	depends on BR2_PACKAGE_HAS_UDEV
 	# libpthread-stubs -> libdrm
package/glmark2/glmark2.mk +1 -1
index 5ad3ea2cb4..e8d6f71dad 100644
@@ -11,7 +11,7 @@ GLMARK2_LICENSE_FILES = COPYING COPYING.SGI
 GLMARK2_DEPENDENCIES = host-pkgconf jpeg libegl libpng
 
 ifeq ($(BR2_PACKAGE_GLMARK2_FLAVOR_DRM_GLESV2),y)
-GLMARK2_DEPENDENCIES += libdrm libgles udev
+GLMARK2_DEPENDENCIES += libdrm libgbm libgles udev
 GLMARK2_FLAVORS += drm-glesv2
 endif
 
Signature · 6 lines
2.30.2

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#6 lore raw

Re: [Buildroot] [PATCH v2 2/3] package/glmark2: drm-glesv2 needs libgbm

In reply to Bernd Kuhls
Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Bernd" == Bernd Kuhls <[email protected]> writes:

Fixes build error with defconfig from:
http://autobuild.buildroot.net/results/e393dbfba7c2989fe983df47ea0638c3ba62ae7a/

Checking for 'libdrm': yes
Checking for 'gbm' : not found

Quoted 6 lines

after http://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/
was applied. Both patches are needed to fix the build error.

---
v2: no changes

We don't have BR2_PACKAGE_HAS_LIBGBM / the virtual gbm package in 2021.02.x / 2021.08.x, so I have NOT applied this to the stable branches.

What is the solution here? Depend on mesa?

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

A message that is not in the archive (sent off-list or not yet received): 87h7catpaz.fsf__1784.76354792423$1637186493$gmane$org@dell.be.48ers.dk

#8 lore raw

Re: [Buildroot] [PATCH v2 2/3] package/glmark2: drm-glesv2 needs libgbm

Am Wed, 17 Nov 2021 23:01:08 +0100 schrieb Peter Korsgaard:

Quoted 5 lines

We don't have BR2_PACKAGE_HAS_LIBGBM / the virtual gbm package in 2021.02.x / 2021.08.x, so I have NOT applied this to the stable branches.

What is the solution here? Depend on mesa?

Hi Peter,

yes, please pick http://patchwork.ozlabs.org/project/buildroot/patch/
[email protected]/

Regards, Bernd

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#9 lore raw
In reply to Bernd Kuhls

Bernd, All,

On 2021-11-13 10:30 +0100, Bernd Kuhls spake thusly:

Quoted 16 lines

Fixes:
http://autobuild.buildroot.net/results/58a/58a498fac83cbb55b252ab54cd8db04570bb5ec9/

---
v2: moved libdrm select to main symbol (Yann)

 package/glmark2/Config.in  | 3 +++
 package/glmark2/glmark2.mk | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)
package/glmark2/Config.in +0 -0
index 40d0adcc8a..3ef3a0e8e3 100644

package/glmark2/Config.in config BR2_PACKAGE_GLMARK2_FLAVOR_DRM_GLESV2 · line 11

Quoted 5 lines
package/glmark2/Config.in +2 -0
@@ -7,6 +7,8 @@ config BR2_PACKAGE_GLMARK2_FLAVOR_DRM_GLESV2
 	depends on BR2_PACKAGE_HAS_LIBEGL
 	depends on BR2_PACKAGE_HAS_LIBGLES
 	depends on BR2_PACKAGE_HAS_UDEV
+	# libpthread-stubs -> libdrm
+	depends on BR2_TOOLCHAIN_HAS_THREADS

The comment to explain the dependency goes on the same line as the dependency.

Applied to master, thanks.

Regards,
Yann E. MORIN.

Quoted 31 lines
package/glmark2/Config.in +1 -0
 	select BR2_PACKAGE_GLMARK2_FLAVOR_ANY
 
 config BR2_PACKAGE_GLMARK2_FLAVOR_DRM_GL
@@ -63,6 +65,7 @@ config BR2_PACKAGE_GLMARK2
 	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # C++14
 	depends on BR2_PACKAGE_GLMARK2_FLAVOR_ANY
 	select BR2_PACKAGE_JPEG
+	select BR2_PACKAGE_LIBDRM if BR2_PACKAGE_GLMARK2_FLAVOR_DRM_GLESV2
 	select BR2_PACKAGE_LIBPNG
 	help
 	  glmark2 is an OpenGL 2.0 and ES 2.0 benchmark.
package/glmark2/glmark2.mk +1 -1
index 5c2dd06362..5ad3ea2cb4 100644
@@ -11,7 +11,7 @@ GLMARK2_LICENSE_FILES = COPYING COPYING.SGI
 GLMARK2_DEPENDENCIES = host-pkgconf jpeg libegl libpng
 
 ifeq ($(BR2_PACKAGE_GLMARK2_FLAVOR_DRM_GLESV2),y)
-GLMARK2_DEPENDENCIES += libgles udev
+GLMARK2_DEPENDENCIES += libdrm libgles udev
 GLMARK2_FLAVORS += drm-glesv2
 endif
 
Signature · 6 lines
2.30.2

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#10 lore raw
In reply to Bernd Kuhls
Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Bernd" == Bernd Kuhls <[email protected]> writes:

Fixes:
http://autobuild.buildroot.net/results/58a/58a498fac83cbb55b252ab54cd8db04570bb5ec9/

---
v2: moved libdrm select to main symbol (Yann)

Committed to 2021.02.x and 2021.08.x, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot