summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorGraeme Gregory <dp@xora.org.uk>2008-04-28 11:22:01 +0000
committerGraeme Gregory <dp@xora.org.uk>2008-04-28 11:22:01 +0000
commitda246fe0b1e996c8f3d18824d8fb2cd0fafb5be3 (patch)
tree3a594a7ee6383c3f0b32171a37b84a5bd6dbefad /classes
parentf37239b69eba869e67a53062cc6b8de6be89ff5b (diff)
classes/kernel.bbclass : fix for situation in which we generate no modules.
Diffstat (limited to 'classes')
-rw-r--r--classes/kernel.bbclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/classes/kernel.bbclass b/classes/kernel.bbclass
index 90583b42a4..a295c144e7 100644
--- a/classes/kernel.bbclass
+++ b/classes/kernel.bbclass
@@ -470,7 +470,10 @@ 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
+
+ if [ -d "${D}lib" ]; then
tar -cvzf ${DEPLOY_DIR_IMAGE}/modules-${PV}-${PR}-${MACHINE}.tgz -C ${D} lib
+ fi
if test "x${KERNEL_IMAGETYPE}" = "xuImage" ; then
if test -e arch/${ARCH}/boot/compressed/vmlinux ; then