diff options
author | Richard Purdie <richard@openedhand.com> | 2008-03-20 11:39:26 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2008-03-20 11:39:26 +0000 |
commit | e8efeb30d1b39458a6778c3d0f6b32dbee8ad0b7 (patch) | |
tree | 3749c08d2989c37506807f076d7180c95add2c07 /meta/classes/kernel.bbclass | |
parent | fece08fee155ed2fcb3ebc642f67146bfc48c797 (diff) | |
download | poky-e8efeb30d1b39458a6778c3d0f6b32dbee8ad0b7.tar.gz |
kernel.bbclass: Add staging hooks
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4100 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/classes/kernel.bbclass')
-rw-r--r-- | meta/classes/kernel.bbclass | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index 99680ceabd..67dff3f7e6 100644 --- a/meta/classes/kernel.bbclass +++ b/meta/classes/kernel.bbclass | |||
@@ -426,6 +426,7 @@ KERNEL_IMAGE_SYMLINK_NAME = "${KERNEL_IMAGETYPE}-${MACHINE}" | |||
426 | do_deploy() { | 426 | do_deploy() { |
427 | install -d ${DEPLOY_DIR_IMAGE} | 427 | install -d ${DEPLOY_DIR_IMAGE} |
428 | install -m 0644 arch/${ARCH}/boot/${KERNEL_IMAGETYPE} ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGE_BASE_NAME}.bin | 428 | install -m 0644 arch/${ARCH}/boot/${KERNEL_IMAGETYPE} ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGE_BASE_NAME}.bin |
429 | package_stagefile_shell ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGE_BASE_NAME}.bin | ||
429 | tar -cvzf ${DEPLOY_DIR_IMAGE}/modules-${KERNEL_VERSION}-${PR}-${MACHINE}.tgz -C ${D} lib | 430 | tar -cvzf ${DEPLOY_DIR_IMAGE}/modules-${KERNEL_VERSION}-${PR}-${MACHINE}.tgz -C ${D} lib |
430 | 431 | ||
431 | if test "x${KERNEL_IMAGETYPE}" = "xuImage" ; then | 432 | if test "x${KERNEL_IMAGETYPE}" = "xuImage" ; then |
@@ -440,11 +441,13 @@ do_deploy() { | |||
440 | uboot-mkimage -A ${ARCH} -O linux -T kernel -C gzip -a ${UBOOT_ENTRYPOINT} -e ${UBOOT_ENTRYPOINT} -n "${DISTRO_NAME}/${PV}/${MACHINE}" -d linux.bin.gz ${DEPLOY_DIR_IMAGE}/uImage-${PV}-${PR}-${MACHINE}-${DATETIME}.bin | 441 | uboot-mkimage -A ${ARCH} -O linux -T kernel -C gzip -a ${UBOOT_ENTRYPOINT} -e ${UBOOT_ENTRYPOINT} -n "${DISTRO_NAME}/${PV}/${MACHINE}" -d linux.bin.gz ${DEPLOY_DIR_IMAGE}/uImage-${PV}-${PR}-${MACHINE}-${DATETIME}.bin |
441 | rm -f linux.bin.gz | 442 | rm -f linux.bin.gz |
442 | fi | 443 | fi |
444 | package_stagefile_shell ${DEPLOY_DIR_IMAGE}/uImage-${PV}-${PR}-${MACHINE}-${DATETIME}.bin | ||
443 | fi | 445 | fi |
444 | 446 | ||
445 | cd ${DEPLOY_DIR_IMAGE} | 447 | cd ${DEPLOY_DIR_IMAGE} |
446 | rm -f ${KERNEL_IMAGE_SYMLINK_NAME}.bin | 448 | rm -f ${KERNEL_IMAGE_SYMLINK_NAME}.bin |
447 | ln -sf ${KERNEL_IMAGE_BASE_NAME}.bin ${KERNEL_IMAGE_SYMLINK_NAME}.bin | 449 | ln -sf ${KERNEL_IMAGE_BASE_NAME}.bin ${KERNEL_IMAGE_SYMLINK_NAME}.bin |
450 | package_stagefile_shell ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGE_SYMLINK_NAME}.bin | ||
448 | } | 451 | } |
449 | 452 | ||
450 | do_deploy[dirs] = "${S}" | 453 | do_deploy[dirs] = "${S}" |