Hello Khem, On 08/04/2015 09:01 PM, Khem Raj wrote: > >> On Jul 30, 2015, at 1:34 AM, Javier Martinez Canillas >> <jav...@osg.samsung.com> wrote: >> >> From: Derek Foreman <der...@osg.samsung.com> >> >> The Raspberry Pi boards can use one of two graphics stacks: The "userland" >> user-space driver or the VC4 drm/kms kernel driver. This patch allows the >> user to choose if the VC4 driver has to be used instead and set the right >> preferred providers for that case. >> >> Signed-off-by: Derek Foreman <der...@osg.samsung.com> >> [javier: Extend commit msg and made conditional instead removing userland] >> Signed-off-by: Javier Martinez Canillas <jav...@osg.samsung.com> >> >> --- >> >> conf/machine/include/rpi-default-providers.inc | 8 ++++---- >> conf/machine/include/rpi-default-versions.inc | 2 +- >> 2 files changed, 5 insertions(+), 5 deletions(-) >> >> diff --git a/conf/machine/include/rpi-default-providers.inc >> b/conf/machine/include/rpi-default-providers.inc >> index ee3a3acce7bd..233f177bd16e 100644 >> --- a/conf/machine/include/rpi-default-providers.inc >> +++ b/conf/machine/include/rpi-default-providers.inc >> @@ -3,8 +3,8 @@ >> PREFERRED_PROVIDER_virtual/kernel = "linux-raspberrypi" >> PREFERRED_PROVIDER_u-boot = "u-boot-rpi" >> PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg" >> -PREFERRED_PROVIDER_virtual/egl ?= "userland" >> -PREFERRED_PROVIDER_virtual/libgles2 ?= "userland" >> -PREFERRED_PROVIDER_virtual/libgl ?= "mesa-gl" >> -PREFERRED_PROVIDER_virtual/mesa ?= "mesa-gl" >> +PREFERRED_PROVIDER_virtual/egl ?= "${@bb.utils.contains('DISTRO_FEATURES', >> 'vc4-gfx', 'mesa', 'userland', d)}" >> +PREFERRED_PROVIDER_virtual/libgles2 ?= >> "${@bb.utils.contains('DISTRO_FEATURES', 'vc4-gfx', 'mesa', 'userland', d)}" >> +PREFERRED_PROVIDER_virtual/libgl ?= >> "${@bb.utils.contains('DISTRO_FEATURES', 'vc4-gfx', 'mesa', 'mesa-gl', d)}" >> +PREFERRED_PROVIDER_virtual/mesa ?= "${@bb.utils.contains('DISTRO_FEATURES', >> 'vc4-gfx', 'mesa', 'mesa-gl', d)}” > > who defines the distro feature ? > >
Distro features AFAICT are user defined options, you can for example have the following in your conf/local.conf: DISTRO_FEATURES_append = " vc4-gfx" Best regards, -- Javier Martinez Canillas Open Source Group Samsung Research America -- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto