All of lore.kernel.org
 help / color / mirror / Atom feed
* Exporting kernel header from patch
@ 2014-04-24 15:57 Vuille, Martin (Martin)
  2014-04-24 17:32 ` Bruce Ashfield
  0 siblings, 1 reply; 10+ messages in thread
From: Vuille, Martin (Martin) @ 2014-04-24 15:57 UTC (permalink / raw)
  To: yocto@yoctoproject.org

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

I have a custom layer to add patches to my vendor's BSP layer
(based on Linux 3.4, if it matters) and a .bbappend to list the
patches.

One of the patches adds a header, and this header needs to
be exported to the sysroot.

I added the following to my .bbappend, based on a discussion
I found:

do_install_append() {
    install -d ${D}${includedir}/linux
    install -m 644 ${S}/include/linux/uc1698u.h ${D}${includedir}/linux/uc1698u.h
}

It "works" (i.e., the header is installed in the sysroot) but there must
be more to it than that because I also get a warning about the header
being "installed but not shipped in any package".

What's the correct way to do this?

MV

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

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: Exporting kernel header from patch
@ 2015-07-22 15:09 Gamma.Dean
       [not found] ` <CAF3SDA5-QQ3me8ETP=nP5irdf3nDtncFQLT0PtyzoJb3SCgMjQ@mail.gmail.com>
  0 siblings, 1 reply; 10+ messages in thread
From: Gamma.Dean @ 2015-07-22 15:09 UTC (permalink / raw)
  To: yocto

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

When using a shared sstate cache which has the previously built kernel it appears that STAGING_KERNEL_DIR does not get populated - in my case there is no tmp/work-shared directory at all.  If I have modified the user space app to look there for a header is there some dependency I can add that will force STAGING_KERNEL_DIR to get built?

If not, perhaps the best answer is your other proposed method of just adding the header to an additional path in sysroot.

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

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

end of thread, other threads:[~2015-07-23 17:55 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-24 15:57 Exporting kernel header from patch Vuille, Martin (Martin)
2014-04-24 17:32 ` Bruce Ashfield
2014-04-24 17:52   ` Vuille, Martin (Martin)
2014-04-24 18:00     ` Bruce Ashfield
2014-04-24 19:54       ` Vuille, Martin (Martin)
2014-04-24 20:05         ` Bruce Ashfield
2014-04-24 20:18           ` Vuille, Martin (Martin)
  -- strict thread matches above, loose matches on Subject: below --
2015-07-22 15:09 Gamma.Dean
     [not found] ` <CAF3SDA5-QQ3me8ETP=nP5irdf3nDtncFQLT0PtyzoJb3SCgMjQ@mail.gmail.com>
2015-07-23  1:03   ` Daniel.
2015-07-23 17:54     ` Gamma.Dean

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.