Wind River Support Network

HomeDefectsLIN1018-5654
Fixed

LIN1018-5654 : BSPs for NXP targets filter bb files - not possible to derive BSP

Created: Jan 30, 2020    Updated: Mar 15, 2020
Resolved Date: Feb 10, 2020
Found In Version: 10.18.44.13
Fix Version: 10.18.44.14
Severity: Standard
Applicable for: Wind River Linux LTS 18
Component/s: BSP, Build & Config

Description

I'm currently setting up a project for a customer. They have their own hardware derived from nxp-ls1043 and we will use that BSP from WRL LTS 18 as a base. During the work we will have the ability to build both the reference BSP nxp-ls1043 from the product and also the customers. To afford this the plan is to create a new additional layer with a new machine configuration. This new machine configuration will be derived from nxp-ls0143 as they are quite similar.

This is not possible with WRL LTS 18 right now as the layers meta-freescale and nxp-ls1043 have filtering of .bb and .bbappend files based on MACHINE variable. This must be fixed in some way to make it possible to derive NXP BSPs as it should be a quite common use case for customers.
{\{$ grep BBFILES ../wrl/layers/meta-freescale/conf/layer.conf }}
 {{# We have a packages directory, add to BBFILES}}
 {{BBFILES += "${@bb.utils.contains_any('MACHINE', 'nxp-ls20xx nxp-ls1046 nxp-ls1043 nxp-lx2xxx', '${LAYERDIR}/recipes-*/*/*.bb', '', d)}"}}
 {{BBFILES += "${@bb.utils.contains_any('MACHINE', 'nxp-ls20xx nxp-ls1046 nxp-ls1043 nxp-lx2xxx', '${LAYERDIR}/recipes-*/*/*.bbappend', '', d)}"}}
 \{{BBFILES_DYNAMIC += " }}

Workaround

Patch the product and add the new machine name into the BBFILES filter in layer's conf/layer.conf.

Steps to Reproduce

Create a new layer with this machine configuration file:
$ cat ../layers/meta-vcc-sga/conf/machine/sga.conf
#@TYPE: Machine
#@NAME: vcc-sga
#@DESCRIPTION: Machine configuration for running a Volvo SGA

require conf/machine/ls1043.inc

Add the meta-vcc-sga layer to WRL LTS 18 project and set "MACHINE = 'sga'" in the configuration. Then try to build u-boot-qoriq (for example) that has recipe present in meta-freescale.
Live chat
Online