On 01/12/2022 13:27:13+0000, Ross Burton wrote: > > > > On 1 Dec 2022, at 12:14, Alexandre Belloni <[email protected]> > > wrote: > > > > On 01/12/2022 11:25:29+0000, Ross Burton wrote: > >> On 30 Nov 2022, at 16:21, Alexey Smirnov via lists.openembedded.org > >> <[email protected]> wrote: > >>> -TOOLCHAIN = "gcc" > >>> +TOOLCHAIN ?= “gcc" > >> > >> If the kernel is buildable with clang then the TOOLCHAIN statement should > >> just be removed. > >> > > > > It is buildable but the generated binary is not necessarily bootable, > > depending on the architecture > > So maybe the kernel class should just set TOOLCHAIN for those architectures > where it is known to not work, leaving it unset (and thus overridable with a > global assignment) for everything else? >
I'm not sure this is doable because oe-core doesn't have support for all the architectures that are supported by the kernel and so it would be better to list the ones that are actually supporting clang. Even then we will probably end up with people wanting to build with clang just to ensure there are no new warnings even if the kernel they are going to use is built with gcc (I've already been asked). > Ross > > > -- Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#174111): https://lists.openembedded.org/g/openembedded-core/message/174111 Mute This Topic: https://lists.openembedded.org/mt/95361461/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
