kernel.bbclass: Fix pstaging do_deploy.
authorTom Rini <tom_rini@mentor.com>
Wed, 3 Feb 2010 20:17:07 +0000 (13:17 -0700)
committerTom Rini <tom_rini@mentor.com>
Wed, 3 Feb 2010 20:17:07 +0000 (13:17 -0700)
We need to add ${S}/${KERNEL_OUTPUT} with package_stagefile_shell to
avoid playing more complex games with the install line.  We should
also use package_stagefile_shell on the modules tarball as that will
not otherwise be reproduced.

classes/kernel.bbclass

index 53ea252..39ff928 100644 (file)
@@ -538,10 +538,12 @@ MODULES_IMAGE_BASE_NAME ?= modules-${PV}-${PR}-${MACHINE}
 do_deploy() {
        install -d ${DEPLOY_DIR_IMAGE}
        install -m 0644 ${KERNEL_OUTPUT} ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGE_BASE_NAME}.bin
+       package_stagefile_shell ${S}/${KERNEL_OUTPUT}
        package_stagefile_shell ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGE_BASE_NAME}.bin
 
        if [ -d "${PKGD}/lib" ]; then
                fakeroot tar -cvzf ${DEPLOY_DIR_IMAGE}/${MODULES_IMAGE_BASE_NAME}.tgz -C ${PKGD} lib
+               package_stagefile_shell ${DEPLOY_DIR_IMAGE}/${MODULES_IMAGE_BASE_NAME}.tgz
        fi
 
        cd ${DEPLOY_DIR_IMAGE}