liri-wayland_git: rework PACKAGECONFIG defaults

* Use default matching for most environments
* In case a BSP wants a different device-interation it can ovverride simply -
  e.g. a closed-source accelerated Raspi could set
  PACKAGECONFIG_EGL_rpi = "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'brcm', '', d)}"

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
This commit is contained in:
Andreas Müller
2017-03-01 17:24:19 +01:00
parent 7bb98e5f85
commit 198b4647d1

View File

@@ -25,7 +25,13 @@ DEPENDS += " \
libinput \
"
# egl packageconfig factored out to make it easy for BSP layers to pick what
# machines need
PACKAGECONFIG_EGL ?= "kms"
PACKAGECONFIG ??= " \
protocols \
${PACKAGECONFIG_EGL} \
${@bb.utils.contains("DISTRO_FEATURES", "x11", "xwayland", "",d)} \
"
PACKAGECONFIG[kms] = "-DENABLE_EGLDEVICEINTEGRATION_KMS:BOOL=ON,-DENABLE_EGLDEVICEINTEGRATION_KMS:BOOL=OFF,drm libgbm virtual/egl"