From patchwork Sun Sep 23 21:45:10 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: kernel.bbclass: Allow modules.tar.gz generation to be inhibited Date: Sun, 23 Sep 2012 21:45:10 -0000 From: Phil Blundell X-Patchwork-Id: 37087 Message-Id: <1348436710.4444.247.camel@x121e.pbcl.net> To: oe-core The modules.tar.gz archive is sometimes of no value and it can take a noticeable time to build if many modules were enabled in the kernel configuration. The extraneous file also contributes to deploy/ clutter and is a waste of disk space. Allow it to be suppressed by setting KERNEL_DEPLOY_MODULE_TARBALL=0. Signed-off-by: Phil Blundell --- meta/classes/kernel.bbclass | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index fdef1be..2896d28 100644 --- a/meta/classes/kernel.bbclass +++ b/meta/classes/kernel.bbclass @@ -520,9 +520,11 @@ do_uboot_mkimage() { addtask uboot_mkimage before do_install after do_compile +KERNEL_DEPLOY_MODULE_TARBALL ?= "1" + kernel_do_deploy() { install -m 0644 ${KERNEL_OUTPUT} ${DEPLOYDIR}/${KERNEL_IMAGE_BASE_NAME}.bin - if (grep -q -i -e '^CONFIG_MODULES=y$' .config); then + if [ ${KERNEL_DEPLOY_MODULE_TARBALL} = "1" ] && (grep -q -i -e '^CONFIG_MODULES=y$' .config); then tar -cvzf ${DEPLOYDIR}/modules-${KERNEL_VERSION}-${PR}-${MACHINE}.tgz -C ${D} lib fi