Part Number: TMDX654GPEVM
Hi I am watching and following the video at training.ti.com/customizing-yocto-for-production-add-subtract-packages
We have also created a custom layer and confirmed that the layer has been added.
chung@chung:~/yocto/tisdk/build$ MACHINE=am65xx-evm bitbake-layers show-layers NOTE: Starting bitbake server... layer path priority ========================================================================== meta-custom /home/chung/yocto/tisdk/sources/meta-custom 16 meta-processor-sdk /home/chung/yocto/tisdk/sources/meta-processor-sdk 15 meta-ros /home/chung/yocto/tisdk/sources/meta-ros 7 meta-arago-distro /home/chung/yocto/tisdk/sources/meta-arago/meta-arago-distro 10 meta-arago-extras /home/chung/yocto/tisdk/sources/meta-arago/meta-arago-extras 10 meta-browser /home/chung/yocto/tisdk/sources/meta-browser 7 meta-qt5 /home/chung/yocto/tisdk/sources/meta-qt5 7 meta-virtualization /home/chung/yocto/tisdk/sources/meta-virtualization 8 meta-networking /home/chung/yocto/tisdk/sources/meta-openembedded/meta-networking 5 meta-python /home/chung/yocto/tisdk/sources/meta-openembedded/meta-python 7 meta-oe /home/chung/yocto/tisdk/sources/meta-openembedded/meta-oe 6 meta-gnome /home/chung/yocto/tisdk/sources/meta-openembedded/meta-gnome 7 meta-multimedia /home/chung/yocto/tisdk/sources/meta-openembedded/meta-multimedia 6 meta-filesystems /home/chung/yocto/tisdk/sources/meta-openembedded/meta-filesystems 6 meta-ti /home/chung/yocto/tisdk/sources/meta-ti 6 meta-linaro-toolchain /home/chung/yocto/tisdk/sources/meta-linaro/meta-linaro-toolchain 30 meta-optee /home/chung/yocto/tisdk/sources/meta-linaro/meta-optee 8 meta /home/chung/yocto/tisdk/sources/oe-core/meta 5
However, during the process of checking the hello-world recipe, an error appears as follows.
chung@chung:~/yocto/tisdk/build$ MACHINE=am65xx-evm bitbake-layers show-recipes hello* NOTE: Starting bitbake server... WARNING: Layer meta-custom should set LAYERSERIES_COMPAT_meta-custom in its conf/layer.conf file to list the core layer names it is compatible with. WARNING: Layer meta-processor-sdk should set LAYERSERIES_COMPAT_meta-processor-sdk in its conf/layer.conf file to list the core layer names it is compatible with. WARNING: Layer browser-layer should set LAYERSERIES_COMPAT_browser-layer in its conf/layer.conf file to list the core layer names it is compatible with. WARNING: Layer meta-custom should set LAYERSERIES_COMPAT_meta-custom in its conf/layer.conf file to list the core layer names it is compatible with. WARNING: Layer meta-processor-sdk should set LAYERSERIES_COMPAT_meta-processor-sdk in its conf/layer.conf file to list the core layer names it is compatible with. WARNING: Layer browser-layer should set LAYERSERIES_COMPAT_browser-layer in its conf/layer.conf file to list the core layer names it is compatible with. Loading cache: 100% |###########################################################################################| Time: 0:00:00 Loaded 176 entries from dependency cache. ERROR: ExpansionError during parsing /home/chung/yocto/tisdk/sources/meta-custom/recipes-core/images/custom-base-image.bb:--:-- Traceback (most recent call last): bb.data_smart.ExpansionError: Failure expanding variable IMAGE_INSTALL[:=], expression was ${@oe_filter_out('packagegroup-arago-base', ' packagegroup-core-boot packagegroup-arago-base packagegroup-arago-console packagegroup-arago-base-tisdk packagegroup-arago-test systemd-initramfs ', d)} which triggered exception NameError: name 'oe_filter_out' is not defined Summary: There were 6 WARNING messages shown. Summary: There was 1 ERROR message shown, returning a non-zero exit code. Traceback (most recent call last): File "/home/chung/yocto/tisdk/sources/bitbake/bin/bitbake-layers", line 103, in <module> ret = main() File "/home/chung/yocto/tisdk/sources/bitbake/bin/bitbake-layers", line 93, in main tinfoil.parse_recipes() File "/home/chung/yocto/tisdk/sources/bitbake/lib/bb/tinfoil.py", line 454, in parse_recipes self.run_actions(config_params) File "/home/chung/yocto/tisdk/sources/bitbake/lib/bb/tinfoil.py", line 437, in run_actions raise TinfoilUIException(ret) bb.tinfoil.TinfoilUIException: 1
I suspect that I did something wrong
The layer.conf of meta-custom is normally written as follows.
# It really depends on order of the layers appearing in BBLAYERS # variable in toplevel bblayers.conf file, where bitbake will search # for .inc files and others where bitbake uses BBPATH since it will # search the directories from first to last as specified in BBPATH # Therefore if you want a given layer to be considered high priority # for the .inc and .conf etc. then consider it adding at the beginning # of BBPATH. For bblayers bitbake will use BBFILES_PRIORITY to resolve # the recipe contention so the order of directories in BBFILES does # not matter. # We have a conf and classes directory, append to BBPATH BBPATH .= ":${LAYERDIR}" # We have a recipes directory, add to BBFILES BBFILES += "${LAYERDIR}/recipes-*/*/*.bb ${LAYERDIR}/recipes-*/*/*.bbappend" BBFILE_COLLECTIONS += "meta-custom" BBFILE_PATTERN_meta-custom := "^${LAYERDIR}/" # Define the priority for recipes (.bb files) from this layer, # choosing carefully how this layer interacts with all of the # other layers. BBFILE_PRIORITY_meta-custom = "16"
Also build / conf / bblayers.bb is written as
# This template file was created by taking the oe-core/meta/conf/bblayers.conf # file and removing the BBLAYERS section at the end. # LAYER_CONF_VERSION is increased each time build/conf/bblayers.conf # changes incompatibly LCONF_VERSION = "7" BBPATH = "${TOPDIR}" BBFILES ?= "" # Layers configured by oe-core-setup script BBLAYERS += " \ /home/chung/yocto/tisdk/sources/meta-custom \ /home/chung/yocto/tisdk/sources/meta-processor-sdk \ /home/chung/yocto/tisdk/sources/meta-ros \ /home/chung/yocto/tisdk/sources/meta-arago/meta-arago-distro \ /home/chung/yocto/tisdk/sources/meta-arago/meta-arago-extras \ /home/chung/yocto/tisdk/sources/meta-browser \ /home/chung/yocto/tisdk/sources/meta-qt5 \ /home/chung/yocto/tisdk/sources/meta-virtualization \ /home/chung/yocto/tisdk/sources/meta-openembedded/meta-networking \ /home/chung/yocto/tisdk/sources/meta-openembedded/meta-python \ /home/chung/yocto/tisdk/sources/meta-openembedded/meta-oe \ /home/chung/yocto/tisdk/sources/meta-openembedded/meta-gnome \ /home/chung/yocto/tisdk/sources/meta-openembedded/meta-multimedia \ /home/chung/yocto/tisdk/sources/meta-openembedded/meta-filesystems \ /home/chung/yocto/tisdk/sources/meta-ti \ /home/chung/yocto/tisdk/sources/meta-linaro/meta-linaro-toolchain \ /home/chung/yocto/tisdk/sources/meta-linaro/meta-optee \ /home/chung/yocto/tisdk/sources/oe-core/meta \ "
So I followed the video and processors.wiki.ti.com/.../Sitara_Linux_Training:_Getting_Started_with_Openembedded correctly but got an error. I would like a workaround for this. Thank you.