On 13-10-07 12:18 PM, Richard Purdie wrote:
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};
Yah, that's where it lives. I'm building now and trying to validate Khem's
use case.
Bruce
?
Cheers,
Richard
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core