[oe-commits] Bruce Ashfield : kernel: restore scripts in the sysroot

git at git.openembedded.org git at git.openembedded.org
Wed Oct 9 22:56:15 UTC 2013


Module: openembedded-core.git
Branch: master-next-1.6
Commit: 8a111bb334618b4327de6ea1024a91dcfb89b555
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=8a111bb334618b4327de6ea1024a91dcfb89b555

Author: Bruce Ashfield <bruce.ashfield at windriver.com>
Date:   Tue Oct  8 17:12:54 2013 -0400

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.

Signed-off-by: Bruce Ashfield <bruce.ashfield at windriver.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 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 f40ea89..dedfab7 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}
 }



More information about the Openembedded-commits mailing list