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

Andrey Zhizhikin <[email protected]> Thu, 4 Nov 2021 10:44:36 +0100
Newsgroups org.yoctoproject.lists.meta-freescale
Message-ID <CAHtQpK4esRvSRf=64yGZJ3GcH8sf5ji0eQkgpNxevU94Zchmyg@mail.gmail.com>
Hello Marek,

On Thu, Nov 4, 2021 at 8:24 AM Marek S?omiany <[email protected]> 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
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#24776): https://lists.yoctoproject.org/g/meta-freescale/message/24776
> Mute This Topic: https://lists.yoctoproject.org/mt/86810959/3617192
> Mute #meta-freescale:https://lists.yoctoproject.org/g/meta-freescale/mutehashtag/meta-freescale
> Mute #hardknott:https://lists.yoctoproject.org/g/meta-freescale/mutehashtag/hardknott
> Group Owner: [email protected]
> Unsubscribe: https://lists.yoctoproject.org/g/meta-freescale/unsub [[email protected]]
> -=-=-=-=-=-=-=-=-=-=-=-
>

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

-- 
Regards,
Andrey.