diff mbox series

[meta-arago,kirkstone/master] glsdk-example-apps: Fix build when x11 is not available

Message ID 20230208233548.19880-1-afd@ti.com
State Accepted
Delegated to: Ryan Eatmon
Headers show
Series [meta-arago,kirkstone/master] glsdk-example-apps: Fix build when x11 is not available | expand

Commit Message

Andrew Davis Feb. 8, 2023, 11:35 p.m. UTC
When the graphics driver is not built with x11 support the pkg-config
file will include a cflag that causes the correct non-x11 headers to
be included. This package does not correctly check pkg-config and
so misses this cflag. Add it manually.

Signed-off-by: Andrew Davis <afd@ti.com>
---
 .../recipes-graphics/glsdk-example-apps/glsdk-example-apps.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta-arago-extras/recipes-graphics/glsdk-example-apps/glsdk-example-apps.bb b/meta-arago-extras/recipes-graphics/glsdk-example-apps/glsdk-example-apps.bb
index 6827ed31..7b0bc3c4 100644
--- a/meta-arago-extras/recipes-graphics/glsdk-example-apps/glsdk-example-apps.bb
+++ b/meta-arago-extras/recipes-graphics/glsdk-example-apps/glsdk-example-apps.bb
@@ -16,7 +16,9 @@  SRC_URI = "git://git.ti.com/git/glsdk/example-applications.git;protocol=https;br
 
 SRCREV="52466430609c402a9f1c0667ccf727d096336d0d"
 
-PR = "r52"
+PR = "r53"
+
+CFLAGS += "${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', '-DEGL_NO_X11',d)}"
 
 do_install:append () {
     install -d ${D}${sysconfdir}/glsdkstatcoll