From 369920107edd8ae2487d71a324072fcfaba0731e Mon Sep 17 00:00:00 2001 From: Joshua Lock Date: Thu, 5 Aug 2010 13:25:20 +0000 Subject: deploy.bbclass: use new style staging for deploy tasks All tasks which implement a do_deploy should inherit this class to have the changes in the deploy task staged. Update recipes which include a do_deploy function to inherit this class and to use DEPLOYDIR rather than DEPLOY_DIR_IMAGE. Signed-off-by: Joshua Lock --- meta-extras/packages/linux/linux-nokia800.inc | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'meta-extras/packages/linux') diff --git a/meta-extras/packages/linux/linux-nokia800.inc b/meta-extras/packages/linux/linux-nokia800.inc index a9505fab5..540dfbb4c 100644 --- a/meta-extras/packages/linux/linux-nokia800.inc +++ b/meta-extras/packages/linux/linux-nokia800.inc @@ -5,7 +5,7 @@ LICENSE = "GPL" KERNEL_OUTPUT = "arch/${ARCH}/boot/${KERNEL_IMAGETYPE}" KERNEL_CCSUFFIX = "-3.4.4+csl-arm-2005q3-2" -inherit kernel +inherit kernel deploy RPROVIDES_kernel-image = "hostap-modules" @@ -34,13 +34,10 @@ do_configure_prepend() { } do_deploy() { - install -d ${DEPLOY_DIR_IMAGE} - install -m 0644 arch/${ARCH}/boot/${KERNEL_IMAGETYPE} ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${PV}-${MACHINE}-${DATETIME}.bin - cd ${DEPLOY_DIR_IMAGE} + install -m 0644 arch/${ARCH}/boot/${KERNEL_IMAGETYPE} ${DEPLOYDIR}/${KERNEL_IMAGETYPE}-${PV}-${MACHINE}-${DATETIME}.bin + cd ${DEPLOYDIR} ln -sf ${KERNEL_IMAGETYPE}-${PV}-${MACHINE}-${DATETIME}.bin ${KERNEL_IMAGETYPE}-${MACHINE}.bin - tar -cvzf ${DEPLOY_DIR_IMAGE}/modules-${KERNEL_RELEASE}-${MACHINE}.tgz -C ${D} lib + tar -cvzf ${DEPLOYDIR}/modules-${KERNEL_RELEASE}-${MACHINE}.tgz -C ${D} lib } -do_deploy[dirs] = "${S}" - addtask deploy before do_populate_sysroot after do_install -- cgit v1.2.3