From 968dcd3f40fe48c83867432afc1aab9a62cc108b Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Thu, 27 Aug 2020 20:58:36 -0700 Subject: [PATCH] libsdl2: Add userland dependency when not using vc4graphics Needed to provide KHR/khrplatform.h header Signed-off-by: Khem Raj --- recipes-graphics/libsdl2/libsdl2_%.bbappend | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 recipes-graphics/libsdl2/libsdl2_%.bbappend diff --git a/recipes-graphics/libsdl2/libsdl2_%.bbappend b/recipes-graphics/libsdl2/libsdl2_%.bbappend new file mode 100644 index 0000000..cb9c24e --- /dev/null +++ b/recipes-graphics/libsdl2/libsdl2_%.bbappend @@ -0,0 +1,5 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" + +# when using userland graphic KHR/khrplatform.h is provided by userland but virtual/libgl is provided by mesa-gl where +# we explicitly delete KHR/khrplatform.h since its already coming from userland package +DEPENDS_append_rpi = " ${@bb.utils.contains('MACHINE_FEATURES', 'vc4graphics', '', 'userland', d)}"