All of lore.kernel.org
 help / color / mirror / Atom feed
* Exporting custom kernel header file to SDK #sdk #kernel
@ 2021-06-10 16:21 Lukasz Domowy
  0 siblings, 0 replies; only message in thread
From: Lukasz Domowy @ 2021-06-10 16:21 UTC (permalink / raw)
  To: yocto

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

Hello,

I wrote a kernel driver which exposes some header to userspace application. Application engineers use generated SDK, so I'd like to export that header file as part of SDK.
I added my header to <kernel>/include/uapi/linux/ and thought it would be enouogh - as during SDK generation it would be copied to SDK.

I use Yocto 3.2.2 and custom recipe for kernel 5.10.

I generated SDK and installed it, but to my surprise:
- my header is missing at <SDK install path>/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/include/linux/
- <SDK install path>/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/include/linux/version.h contains:
#define LINUX_VERSION_CODE 329728
which means kernel version 5.8 (why not 5.10?)

It looks like SDK takes default Yocto gatesgarth kernel version (5.8) to SDK, not my kernel version. PREFERRED_PROVIDER_virtual/kernel is properly set and right kernel version is built (at tmp/deploy/images)
What am I doing wrong?

I would appreciate any hints. Thank you in advance.

Best regards,
Lukasz

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-06-10 16:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-10 16:21 Exporting custom kernel header file to SDK #sdk #kernel Lukasz Domowy

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.