All of lore.kernel.org
 help / color / mirror / Atom feed
* kernel headers in my image
@ 2024-01-24 17:05 Daniele Lugli
  2024-01-24 18:53 ` [yocto] " Bruce Ashfield
  0 siblings, 1 reply; 3+ messages in thread
From: Daniele Lugli @ 2024-01-24 17:05 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 937 bytes --]

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

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 ( http://www.general-logic.com/ )
www.linkedin.com/in/daniele- lugli ( http://www.linkedin.com/in/daniele-lugli )

[-- Attachment #2: Type: text/html, Size: 1859 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [yocto] kernel headers in my image
  2024-01-24 17:05 kernel headers in my image Daniele Lugli
@ 2024-01-24 18:53 ` Bruce Ashfield
  2024-01-24 19:33   ` Daniele Lugli
  0 siblings, 1 reply; 3+ messages in thread
From: Bruce Ashfield @ 2024-01-24 18:53 UTC (permalink / raw)
  To: yocto, daniele.lugli

On Wed, Jan 24, 2024 at 12:05 PM Daniele Lugli <daniele.lugli@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
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#62258): https://lists.yoctoproject.org/g/yocto/message/62258
> Mute This Topic: https://lists.yoctoproject.org/mt/103936013/1050810
> Group Owner: yocto+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [bruce.ashfield@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>


-- 
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [yocto] kernel headers in my image
  2024-01-24 18:53 ` [yocto] " Bruce Ashfield
@ 2024-01-24 19:33   ` Daniele Lugli
  0 siblings, 0 replies; 3+ messages in thread
From: Daniele Lugli @ 2024-01-24 19:33 UTC (permalink / raw)
  To: Bruce Ashfield, yocto

[-- Attachment #1: Type: text/plain, Size: 299 bytes --]

I hadn't. Now, my modules are built.

Thank you very much!
--
Daniele Lugli
General Logic srl
Viale Curreno, 41
10133 Torino
Italy
tel +39 329 3933041
www.general-logic.com ( http://www.general-logic.com/ )
www.linkedin.com/in/daniele- lugli ( http://www.linkedin.com/in/daniele-lugli )

[-- Attachment #2: Type: text/html, Size: 1149 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-01-24 19:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-24 17:05 kernel headers in my image Daniele Lugli
2024-01-24 18:53 ` [yocto] " Bruce Ashfield
2024-01-24 19:33   ` Daniele Lugli

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.