diff options
author | Phil Blundell <philb@gnu.org> | 2012-09-23 21:45:10 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-12-19 17:54:51 +0000 |
commit | 3d154ae119806021fa04698868fdddc472823a8a (patch) | |
tree | fc6eebfcf4962535996a303e83b2e032a565d3c7 /meta/classes/kernel.bbclass | |
parent | 79f31adabf1b90d27832b65a56734464370dba9c (diff) | |
download | poky-3d154ae119806021fa04698868fdddc472823a8a.tar.gz |
kernel.bbclass: Allow modules*.tar.gz generation to be inhibited
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 MODULE_TARBALL_DEPLOY="0".
(From OE-Core rev: 262bfde1c5c51cc902b50bf0dda543434f12010c)
Signed-off-by: Phil Blundell <pb@pbcl.net>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/kernel.bbclass')
-rw-r--r-- | meta/classes/kernel.bbclass | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index c5e054d3ce..aee8a77a9e 100644 --- a/meta/classes/kernel.bbclass +++ b/meta/classes/kernel.bbclass | |||
@@ -501,6 +501,7 @@ MODULE_TARBALL_BASE_NAME ?= "modules-${PE}-${PV}-${PR}-${MACHINE}-${DATETIME}.tg | |||
501 | # Don't include the DATETIME variable in the sstate package signatures | 501 | # Don't include the DATETIME variable in the sstate package signatures |
502 | MODULE_TARBALL_BASE_NAME[vardepsexclude] = "DATETIME" | 502 | MODULE_TARBALL_BASE_NAME[vardepsexclude] = "DATETIME" |
503 | MODULE_TARBALL_SYMLINK_NAME ?= "modules-${MACHINE}.tgz" | 503 | MODULE_TARBALL_SYMLINK_NAME ?= "modules-${MACHINE}.tgz" |
504 | MODULE_TARBALL_DEPLOY ?= "1" | ||
504 | 505 | ||
505 | do_uboot_mkimage() { | 506 | do_uboot_mkimage() { |
506 | if test "x${KERNEL_IMAGETYPE}" = "xuImage" ; then | 507 | if test "x${KERNEL_IMAGETYPE}" = "xuImage" ; then |
@@ -529,7 +530,7 @@ addtask uboot_mkimage before do_install after do_compile | |||
529 | 530 | ||
530 | kernel_do_deploy() { | 531 | kernel_do_deploy() { |
531 | install -m 0644 ${KERNEL_OUTPUT} ${DEPLOYDIR}/${KERNEL_IMAGE_BASE_NAME}.bin | 532 | install -m 0644 ${KERNEL_OUTPUT} ${DEPLOYDIR}/${KERNEL_IMAGE_BASE_NAME}.bin |
532 | if (grep -q -i -e '^CONFIG_MODULES=y$' .config); then | 533 | if [ ${MODULE_TARBALL_DEPLOY} = "1" ] && (grep -q -i -e '^CONFIG_MODULES=y$' .config); then |
533 | tar -cvzf ${DEPLOYDIR}/${MODULE_TARBALL_BASE_NAME} -C ${D} lib | 534 | tar -cvzf ${DEPLOYDIR}/${MODULE_TARBALL_BASE_NAME} -C ${D} lib |
534 | ln -sf ${MODULE_TARBALL_BASE_NAME}.bin ${MODULE_TARBALL_SYMLINK_NAME} | 535 | ln -sf ${MODULE_TARBALL_BASE_NAME}.bin ${MODULE_TARBALL_SYMLINK_NAME} |
535 | fi | 536 | fi |