summaryrefslogtreecommitdiffstats
path: root/meta/classes/kernel.bbclass
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@windriver.com>2013-10-08 17:12:54 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-10-14 16:55:27 +0100
commit6a6735cb98d529c8c5376aedb5c951339f54fe96 (patch)
treee609f2ae8b8307698f5f6a1565ba0a3077396114 /meta/classes/kernel.bbclass
parenta83978347518a2c26ac5535c621309b3fa13beab (diff)
downloadpoky-6a6735cb98d529c8c5376aedb5c951339f54fe96.tar.gz
kernel: restore scripts in the sysroot
When building against the sysroot, out of tree modules can require modpost and other utilities normally found in the kernel's scripts directory. For the kernel source in the staging dir, these scripts have been removed to avoid mixing archiectures when packaging kernel-dev (among other things). Rather than further complicate the kernel's install rule, or its packaging, we can restore the scripts by building them in the kernel staging directory after the sstate is installed, making them available to packages that need them. (From OE-Core rev: 5bcd65807aa634060f98928db6011856934dabe4) Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/kernel.bbclass')
-rw-r--r--meta/classes/kernel.bbclass11
1 files changed, 11 insertions, 0 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index f40ea8985d..dedfab7d54 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -297,6 +297,17 @@ kernel_do_install() {
297} 297}
298do_install[prefuncs] += "package_get_auto_pr" 298do_install[prefuncs] += "package_get_auto_pr"
299 299
300
301SSTATEPOSTINSTFUNCS += "kernelscripts_sstate_postinst"
302kernelscripts_sstate_postinst () {
303 if [ "${BB_CURRENTTASK}" = "populate_sysroot" -o "${BB_CURRENTTASK}" = "populate_sysroot_setscene" ]; then
304 (
305 cd ${STAGING_KERNEL_DIR}
306 oe_runmake scripts
307 )
308 fi
309}
310
300sysroot_stage_all_append() { 311sysroot_stage_all_append() {
301 sysroot_stage_dir ${D}${KERNEL_SRC_PATH} ${SYSROOT_DESTDIR}${KERNEL_SRC_PATH} 312 sysroot_stage_dir ${D}${KERNEL_SRC_PATH} ${SYSROOT_DESTDIR}${KERNEL_SRC_PATH}
302} 313}