[OE-core] [PATCH 1/1] kernel: restore scripts in the sysroot
Richard Purdie
richard.purdie at linuxfoundation.org
Mon Oct 7 16:18:33 UTC 2013
On Mon, 2013-10-07 at 11:20 -0400, Bruce Ashfield wrote:
> I had it slightly wrong. Try:
> >
> > kernelheaders_sstate_postinst () {
> > if [ "${BB_CURRENTTASK}" = "populate_sysroot" -o "${BB_CURRENTTASK}" = "populate_sysroot_setscene" ]
> > then
> > ( cd ${KERNEL_SRC_PATH};
> > oe_runmake scripts
> > )
> > fi
> > }
> >
> > since the files are actually installed at this point, therefore we
> > operate on the final location.
>
> That's the kicker, I can't get the right variable to find the final
> location, KERNEL_SRC_PATH is set to /usr/src/kernel, so we can't operate
> on it directly. When things were runing in the sysroot_append, the
> kernel src was staged, and then operated on, then it makes it into the
> sysroot. Here, we could operate on the STAGING_KERNEL, which is in the
> sysroot, but stripped of the scripts. Perhaps that is the answer, but
> I need to confirm that scripts installed in that location would be
> available to the out of tree module builds that are looking for modpost
> and friends.
Guessing again (third time lucky?),
cd ${STAGING_DIR_KERNEL};
?
Cheers,
Richard
More information about the Openembedded-core
mailing list