xorg-xserver: make changes conditional on xen distro feature

The changes in this bbappend should only trigger when xen is in
the distro features.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
This commit is contained in:
Bruce Ashfield 2020-01-22 16:07:51 +00:00
parent 56c3ce96a2
commit d4b8bad25b
2 changed files with 14 additions and 12 deletions

View File

@ -1,13 +1,2 @@
# Change the default Xserver OpenGL configuration for non-x86 distros with Xen: deselect 'glamor'.
# This removes the dependency on libegl to simplify the domU build.
#
# To override this (eg. if wanted for dom0 images) define:
# REMOVED_OPENGL_PKGCONFIGS = ""
require ${@bb.utils.contains('DISTRO_FEATURES', 'xen', '${BPN}_xen.inc', '', d)}
XEN_REMOVED_OPENGL_PKGCONFIGS ?= "glamor"
XEN_REMOVED_OPENGL_PKGCONFIGS_x86 = ""
XEN_REMOVED_OPENGL_PKGCONFIGS_x86-64 = ""
REMOVED_OPENGL_PKGCONFIGS ?= "${@bb.utils.contains('DISTRO_FEATURES', 'xen', "${XEN_REMOVED_OPENGL_PKGCONFIGS}", '', d)}"
OPENGL_PKGCONFIGS_remove = "${REMOVED_OPENGL_PKGCONFIGS}"

View File

@ -0,0 +1,13 @@
# Change the default Xserver OpenGL configuration for non-x86 distros with Xen: deselect 'glamor'.
# This removes the dependency on libegl to simplify the domU build.
#
# To override this (eg. if wanted for dom0 images) define:
# REMOVED_OPENGL_PKGCONFIGS = ""
XEN_REMOVED_OPENGL_PKGCONFIGS ?= "glamor"
XEN_REMOVED_OPENGL_PKGCONFIGS_x86 = ""
XEN_REMOVED_OPENGL_PKGCONFIGS_x86-64 = ""
REMOVED_OPENGL_PKGCONFIGS ?= "${@bb.utils.contains('DISTRO_FEATURES', 'xen', "${XEN_REMOVED_OPENGL_PKGCONFIGS}", '', d)}"
OPENGL_PKGCONFIGS_remove = "${REMOVED_OPENGL_PKGCONFIGS}"