diff options
-rw-r--r-- | meta/classes/kernel.bbclass | 11 |
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() { } do_install[prefuncs] += "package_get_auto_pr" + +SSTATEPOSTINSTFUNCS += "kernelscripts_sstate_postinst" +kernelscripts_sstate_postinst () { + if [ "${BB_CURRENTTASK}" = "populate_sysroot" -o "${BB_CURRENTTASK}" = "populate_sysroot_setscene" ]; then + ( + cd ${STAGING_KERNEL_DIR} + oe_runmake scripts + ) + fi +} + sysroot_stage_all_append() { sysroot_stage_dir ${D}${KERNEL_SRC_PATH} ${SYSROOT_DESTDIR}${KERNEL_SRC_PATH} } |