Srinivasan Shanmugam

To build without using "wayland" distro feature

Discussion created by Srinivasan Shanmugam on Jan 29, 2019

Dear I.MX community,

 

As per our current design, below is the contents of the common distro.conf (CustomOS.conf) which is used for our custom platform,
which is used for other some other hardware platforms too, but as of now as I was trying to integrate the imx8 layers (as imx8 platform is
dependent on 'wayland' distro feature), I have already created the separate layer (meta-custom-imx8) for adding support for imx8 into our
custom distro and integrated into our custom distro and trying to build for imx8 using this CustomOS.conf.

 

Could you please let me know how can I remove this "wayland" under "DISTRO_FEATURES_remove" without editing this "CustomOS.conf" file (as this distro file is common for all the other platforms and need not to be touched, just for sake of building for imx8). And I have also tried moving this to meta-custom-imx8 layer without touching the "CustomOS.conf" by using "imx8mmevk-extra.conf" (by adding DISTRO_FEATURES_append = " wayland pam systemd").

 

Until or unless I remove the 'wayland' entry from DISTRO_FEATURES_remove in "CustomOS.conf", the build is not going
through and stuck with the error as shown below.

 

Could you please do the needful with your pointers for solving this issue  (ie., without editing the "CustomOS.conf" - without removing the "wayland" entry from DISTRO_FEATURES_remove in CustomOS.conf) how can I get the build to go through, Is there anyways that I can override this in my meta-custom-imx8 layer??

 


CustomOS.conf
=============
require conf/distro/poky.conf
DISTRO = "CustomOS"
DISTRO_NAME = "CustomOS distribution"
DISTRO_VERSION = '${CUSTOM_DISTRO_VERSION}'
DISTRO_CODENAME = "CustomOS"
SDK_VENDOR = "-customostrksdk"
SDK_VERSION := "${@'${DISTRO_VERSION}'.replace('snapshot-${DATE}','snapshot')}"

 

# Remove bullshit
DISTRO_FEATURES_remove = " \
api-documentation \
cramfs \
directfb \
ipsec \
irda \
pci \
pcmcia \
ptest \
wayland \
x11 \
ipv6 \
"

 

# Add stuff
DISTRO_FEATURES_append = " \
alsa \
bluez5 \
ldconfig \
opengl \
systemd \
"
DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit"
VIRTUAL-RUNTIME_init_manager = "systemd"

 

 

 

imx8mmevk-extra.conf
====================
include custom-imx8-base.inc
include conf/distro/include/fsl-imx-preferred-env.inc

 

DISTRO_FEATURES_append = " wayland pam systemd"

 

SSTATE_DIR ?= "/var/build/yocto/sstate-cache/sumo-imx8"
SOURCE_MIRROR_URL ?= "file:///var/build/yocto/sources/sumo-imx8/"

 

DISTRO_NAME_append = " (${CUSTOM_TARGET_IMAGE})"

 

 

 

Error:
======
WARNING: Host distribution "ubuntu-18.04" has not been validated with
this version of the build system; you may possibly experience
unexpected failures. It is recommended that you use a tested
distribution.
Parsing recipes: 100%
|#############################################################################################################################################################################################################################################|
Time: 0:00:11
Parsing of 2351 .bb files complete (0 cached, 2351 parsed). 3258
targets, 419 skipped, 7 masked, 0 errors.
Removing 1 recipes from the aarch64 sysroot: 100%
|#################################################################################################################################################################################################################|
Time: 0:00:00
Removing 4 recipes from the imx8mmevk sysroot: 100%
|###############################################################################################################################################################################################################|
Time: 0:00:00
NOTE: Resolving any missing task queue dependencies
ERROR: Nothing PROVIDES 'virtual/egl' (but
/home/srinishanmugam/custombuild_test19/customos/sources/meta-qt5/recipes-qt/qt5/qtbase_git.bb,
/home/srinishanmugam/custombuild_test19/customos/sources/poky/meta/recipes-graphics/cairo/cairo_1.14.12.bb
DEPENDS on or otherwise requires it)
imx-gpu-viv PROVIDES virtual/egl but was skipped: incompatible with
machine imx8mmevk (not in COMPATIBLE_MACHINE)
imx-gpu-viv PROVIDES virtual/egl but was skipped: missing required
distro feature 'wayland' (not in DISTRO_FEATURES)
imx-gpu-viv PROVIDES virtual/egl but was skipped: incompatible with
machine imx8mmevk (not in COMPATIBLE_MACHINE)
NOTE: Runtime target 'qtbase' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['qtbase', 'virtual/egl']
ERROR: Required build target 'traktor-image-debug-imx8' has no
buildable providers.
Missing or unbuildable dependency chain was:
['traktor-image-debug-imx8', 'qtbase', 'virtual/egl']

 

Summary: There was 1 WARNING message shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
2019-01-29 11:40:34,651 - Error during build (Return code 1)

 

kindly do the needful, please let me if you require any other information needs to be furnished from my side.

 

Thanks in advance

Outcomes