libc configuration of multilib config
Hi,
We have a cortex-A72 tuning defined as our default tuning based on armv8. We also have some bare metal code that runs on a cortex M0. Yocto allows you to set a default tune for that multilib config so we call it softfp but it's an armv6 architecture with soft floating point:
MULTILIB_GLOBAL_VARIANTS += "softfp" MULTILIBS += "multilib:softfp" DEFAULTTUNE_virtclass-multilib-softfp = "armv6t-novfp"
Since we only have 1 recipe for code running on that processor (the SOC contains armv8 and an M0) we compile it as softp-recipe_name, add it to EXTRA_IMAGEDEPENDS along with other bootloaders and have everything in the same deploy/machine when we create our image.
Now we want to use newlib instead of glibc for the softfp multilib config only. I don't see a way of configuring this. At this point should we put it in a different MACHINE? Are there any guidelines on when to use multilib and when to put it in a new machine?
Thanks.
Quoted 17 lines · Jonathan Richardson
Hi,
We have a cortex-A72 tuning defined as our default tuning based on armv8. We also have some bare metal code that runs on a cortex M0. Yocto allows you to set a default tune for that multilib config so we call it softfp but it's an armv6 architecture with soft floating point:
MULTILIB_GLOBAL_VARIANTS+= "softfp" MULTILIBS += "multilib:softfp" DEFAULTTUNE_virtclass-multilib-softfp = "armv6t-novfp"Since we only have 1 recipe for code running on that processor (the SOC contains armv8 and an M0) we compile it as softp-recipe_name, add it to
EXTRA_IMAGEDEPENDSalong with other bootloaders and have everything in the same deploy/machine when we create our image.
Quoted 5 lines
Now we want to use newlib instead of glibc for the softfp multilib config only. I don't see a way of configuring this. At this point should we put it in a different MACHINE? Are there any guidelines on when to use multilib and when to put it in a new machine?
you might want to look into multi config feature.
https://www.yoctoproject.org/docs/2.3/dev-manual/dev-manual.html#platdev-building-targets-with-multiple-configurations
https://wiki.yoctoproject.org/wiki/TipsAndTricks/BuildingZephyrImages#Arduino_101_and_Multiconfig
Quoted 6 lines
Thanks.
--
_______________________________________________
poky mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/poky
you might want to look into multi config feature.
https://www.yoctoproject.org/docs/2.3/dev-manual/dev-manual.html#platdev-building-targets-with-multiple-configurations
https://wiki.yoctoproject.org/wiki/TipsAndTricks/BuildingZephyrImages#Arduino_101_and_Multiconfig
Not sure how I missed this section but it's exactly what I need. It's nice that we
can configure it automatically without manually changing the MACHINE variable
as well. Thanks Khem/Richard.