Re: #meta-freescale #hardknott Can't remove use-mainline-bsp from MACHINEOVERRIDES #meta-freescale #hardknott


Andrey Zhizhikin
 

Hello Marek,

On Thu, Nov 4, 2021 at 8:24 AM Marek S?omiany <marekslomiany@...> wrote:

Hi,
I'm working on new board based on imx8m mini and in my MACHINEOVERRIDES in when checking `bitbake -e` I have following list:
aarch64:armv8a:use-mainline-bsp:my-machine-name
In machine config file I have following includes:
require conf/machine/include/imx-base.inc
require conf/machine/include/tune-cortexa53.inc
and the overrides config:
MACHINEOVERRIDES =. "mx8:mx8m:mx8mm:"
Even after removing the dot and trying to specify full list of overrides, I still get use-mainline-bsp on the list, and by that mx8, mx8m and mx8mm are being removed by `MACHINEOVERRIDES_EXTENDER_FILTER_OUT_use-mainline-bsp`
I have tried to grep through all meta layers I have but got no result.
I have following layers in my bblayers.conf:
meta
meta-poky
meta-yocto-bsp
meta-openembedded/meta-oe
meta-freescale
my-new-layer
What could be appending this use-mainline-bsp to my overrides?
This machine override is added based on the BSP flavor that the distro
layer sets. BSP flavor is defined as either "mainline" which consumes
only OSS components, or "nxp" which adds NXP proprietary components.

It is defined to "mainline" per default in [1], and every distro layer
can set it in order to define which components are required and which
BSP should be built. The definition of BSP flavor is also commented at
the link provided.

meta-freescale-distro layer provides both of BSP flavors, and if like
in you case this layer is not included - BSP flavor is defaulted to
"mainline".

Please note, that MACHINEOVERRIDES like "mx8:mx8m:mx8mm" are
NXP-specific ones, and if you're planning to use Mainline BSP - they
should not be defined explicitly.


Kind regards,
Marek



Link: [1]: https://github.com/Freescale/meta-freescale/blob/75cc53cc480f73d8dc97cf1b52c48fb874d16a97/conf/machine/include/imx-base.inc#L13

--
Regards,
Andrey.

Join meta-freescale@lists.yoctoproject.org to automatically receive all group messages.