On Sat, Dec 27, 2025 at 7:33 AM <[email protected]> wrote: > > From: Harish Sadineni <[email protected]> > > In sdk while running: 'make prepare' in kernel-source directory after > enabling rust config, > it will throw errors since only makefile is present in rust kernel sources.
Can you show exactly how much of the infrastructure is needed for make prepare to succeed ? We've gone through a lot of effort over the years to not copy whole directories, many which have plenty of source code just like the rust directories do. If we can just copy the Makefiles and Kbuild files + a few elements that are needed for regeneration, that is ideal. Bruce > > Signed-off-by: Harish Sadineni <[email protected]> > --- > meta/recipes-kernel/linux/kernel-devsrc.bb | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/meta/recipes-kernel/linux/kernel-devsrc.bb > b/meta/recipes-kernel/linux/kernel-devsrc.bb > index 23a9093ede..1505a1d70c 100644 > --- a/meta/recipes-kernel/linux/kernel-devsrc.bb > +++ b/meta/recipes-kernel/linux/kernel-devsrc.bb > @@ -139,6 +139,10 @@ do_install() { > cd ${S} > > cp -a scripts $kerneldir/build > + > + if ${@bb.utils.contains('DISTRO_FEATURES', 'rust-kernel', 'true', > 'false', d)}; then > + cp -a rust ${kerneldir}/build > + fi > > # for v6.1+ (otherwise we are missing multiple default targets) > cp -a --parents Kbuild $kerneldir/build 2>/dev/null || : > -- > 2.49.0 > -- - Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end - "Use the force Harry" - Gandalf, Star Trek II
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#228575): https://lists.openembedded.org/g/openembedded-core/message/228575 Mute This Topic: https://lists.openembedded.org/mt/116959156/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
