chris yocto

I did run bitbake with the -e option and it shows that it does process my machine extra config, but it's overriden by the conf of the BSP.  As a test I also added it to my layer.conf but this is also being overriden. I already set my layer too the highest priority.
How can I fix this?

# $SERIAL_CONSOLES [7 operations]
#   set /home/chris/yocto/karo4/sources/meta-certhon/conf/layer.conf:14
#     "115200;ttymxc1"
#   set /home/chris/yocto/karo4/sources/meta-certhon/conf/machine/qs8m-mq00-extra.conf:1
#     "115200;ttymxc1"
#   set /home/chris/yocto/karo4/sources/meta-freescale/conf/machine/include/
#     "115200;ttymxc0"
#   set /home/chris/yocto/karo4/sources/meta-karo-nxp/conf/machine/include/
#     "115200;ttymxc2"
#   set /home/chris/yocto/karo4/sources/poky/meta/conf/documentation.conf:379
#     [doc] "Defines the serial consoles (TTYs) to enable using getty."
#   set /home/chris/yocto/karo4/sources/poky/meta/conf/bitbake.conf:856
#     [_defaultval] "${@d.getVar('SERIAL_CONSOLE').replace(' ', ';')}"
#   override[mxs]:set /home/chris/yocto/karo4/sources/meta-freescale/conf/machine/include/
#     "115200;ttyAMA0"
# pre-expansion value:
#   "115200;ttymxc2"

Op di 12 jul. 2022 om 16:44 schreef Mike Looijmans <mike.looijmans@...>:

I'd suggest adding some "bogus" things to your machine-extra.conf,
because I don't think the file will actually be used (or even parsed)

You can override SERIAL_CONSOLES in your DISTRO config, as that takes
precedence over the machine config. In local.conf it won't work because
the MACHINE config is included after it.

Another approach is to grep on which recipes use it (half a dozen) and
then create a bbappend for each. That's the approach I've used recently.

Met vriendelijke groet / kind regards,

Mike Looijmans
System Expert

TOPIC Embedded Products B.V.
Materiaalweg 4, 5681 RJ Best
The Netherlands

T: +31 (0) 499 33 69 69
E: mike.looijmans@...

Please consider the environment before printing this e-mail
On 12-07-2022 13:41, chris yocto via wrote:
> Hi,
> I’m trying to customize the SERIAL_CONSOLES variable. In another
> thread I read this can be done by adding a machine-extra.conf file too
> my custom layer. So I added “ SERIAL_CONSOLES = "115200;ttymxc0" ” to
> my machine-extra.conf, but when I  bitbake my custom image, no changes
> are found.
> In the conf file from the bsp for the board I’m using I found
> “SERIAL_CONSOLES = "115200;ttymxc2", when I change this to
> SERIAL_CONSOLES ?= "115200;ttymxc2" my changes are being applied.
> This off course is not ideal since I then still don’t have all changes
> in my own layer.
> Is there a way I can solve this?
> Kind regards,
> Chris

Mike Looijmans

Join { to automatically receive all group messages.