Skip to contentSkip to conversation

fbida: Fix build when x11 is not enabled in distro features

PATCH New Khem Raj 1 participant 1 message Mar 7, 2022

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 fbida: Fix build when x11 is not enabled in distro features

---
 meta-oe/recipes-graphics/fbida/fbida_2.14.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-oe/recipes-graphics/fbida/fbida_2.14.bb +2 -0
index c1ef3430c2..bc6f021e6b 100644
@@ -39,6 +39,8 @@ PACKAGECONFIG[egl] = ",,"
 
 EXTRA_OEMAKE += ""${@bb.utils.contains('PACKAGECONFIG', 'egl', 'HAVE_CAIRO_GL=yes', 'HAVE_CAIRO_GL=no', d)}""
 
+CFLAGS += "${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', '-DEGL_NO_X11=1', d)}"
+
 do_compile() {
     sed -i -e 's# fbgs# \$(srcdir)/fbgs#; s#-Ijpeg#-I\$(srcdir)/jpeg#; s# jpeg/# \$(srcdir)/jpeg/#' ${S}/GNUmakefile
     sed -i -e 's:/sbin/ldconfig:echo x:' ${S}/mk/Autoconf.mk
Signature · 1 line
2.35.1