diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2008-10-29 02:48:22 +0100 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2008-10-29 03:00:56 +0100 |
commit | 7994045755bbd2d4d0a54061e0407bac31b3dc6d (patch) | |
tree | afb1012585e219e4a4701900ca90b7679429ae9b /meta/classes/kernel.bbclass | |
parent | fd38c1b084f3d7f7955e16e8886e325dab4e4c27 (diff) | |
download | openembedded-core-7994045755bbd2d4d0a54061e0407bac31b3dc6d.tar.gz openembedded-core-7994045755bbd2d4d0a54061e0407bac31b3dc6d.tar.bz2 openembedded-core-7994045755bbd2d4d0a54061e0407bac31b3dc6d.zip |
kernel.bbclass: We dont want to tar lib/ if we dont have any modules
Diffstat (limited to 'meta/classes/kernel.bbclass')
-rw-r--r-- | 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 059f787eb8..b2266bee5d 100644 --- a/meta/classes/kernel.bbclass +++ b/meta/classes/kernel.bbclass @@ -452,7 +452,9 @@ do_deploy() { install -d ${DEPLOY_DIR_IMAGE} install -m 0644 arch/${ARCH}/boot/${KERNEL_IMAGETYPE} ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGE_BASE_NAME}.bin package_stagefile_shell ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGE_BASE_NAME}.bin - tar -cvzf ${DEPLOY_DIR_IMAGE}/modules-${KERNEL_VERSION}-${PR}-${MACHINE}.tgz -C ${D} lib + if (grep -q -i -e '^CONFIG_MODULES=y$' .config); then + tar -cvzf ${DEPLOY_DIR_IMAGE}/modules-${KERNEL_VERSION}-${PR}-${MACHINE}.tgz -C ${D} lib + fi if test "x${KERNEL_IMAGETYPE}" = "xuImage" ; then if test -e arch/${ARCH}/boot/compressed/vmlinux ; then |