On Wed, Jan 24, 2024 at 12:05 PM Daniele Lugli <daniele.lu...@gmail.com> wrote: > > Hi all, > > I would like to have kernel headers in my image, in order to locally build a > module. > > I added > > IMAGE_INSTALL:append = " kernel-dev" > IMAGE_INSTALL:append = " kernel-devsrc" > IMAGE_INSTALL:append = " kernel-modules" > > in my image recipe and, as a result, I see that /usr/src/kernel and > /lib/modules/${uname -r}/build are now populated. > > But when I try to build my module (which builds correctly on a non-poky > machine) I get: > > ./include/linux/compiler.h:247:10: fatal error: asm/rwonce.h No such file or > directory > > And, in fact, there is no rwonce.h under /usr/src/kernel. There is one under > /lib/modules... but it is in asm-generic/rwonce.h >
Have you run "make scripts prepare" in /usr/src/kernel ? Bruce > Any idea? > > Thank you in advance > -- > Daniele Lugli > General Logic srl > Viale Curreno, 41 > 10133 Torino > Italy > tel +39 329 3933041 > www.general-logic.com > www.linkedin.com/in/daniele-lugli > > > -- - 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 (#62268): https://lists.yoctoproject.org/g/yocto/message/62268 Mute This Topic: https://lists.yoctoproject.org/mt/103936013/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-