diff options
author | Andrea Adami <andrea.adami@gmail.com> | 2009-05-07 00:21:55 +0200 |
---|---|---|
committer | Andrea Adami <andrea.adami@gmail.com> | 2009-05-07 00:21:55 +0200 |
commit | f81d3536a79e997001205a947b237cf466aba2ab (patch) | |
tree | 227680a2167bbf14efdf09e96feada8c6535201f /recipes/zaurus-updater | |
parent | be92de3d29dbcb6cff391cddb07248898ac9aadf (diff) |
zaurus-installer: add new package for installkit creation
- packs together updater.sh + kexecboot-kernel
Diffstat (limited to 'recipes/zaurus-updater')
-rw-r--r-- | recipes/zaurus-updater/zaurus-installer.bb | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/recipes/zaurus-updater/zaurus-installer.bb b/recipes/zaurus-updater/zaurus-installer.bb new file mode 100644 index 0000000000..098110b969 --- /dev/null +++ b/recipes/zaurus-updater/zaurus-installer.bb @@ -0,0 +1,32 @@ +DESCRIPTION = "Installkit for kexecboot-kernel" +DEPENDS = "zaurus-updater linux-kexecboot" +PR = "r0" + +PACKAGES = "" +PACKAGE_ARCH = "${MACHINE_ARCH}" +COMPATIBLE_MACHINE = '(poodle|c7x0|spitz|akita|tosa)' + +S = "${WORKDIR}" + +do_configure() { +} + +do_compile() { +} + +do_deploy() { + + cd ${DEPLOY_DIR_IMAGE} + rm -rf ${DEPLOY_DIR_IMAGE}/installkit-${MACHINE}/ + mkdir installkit-${MACHINE}/ + + [ -f "${KERNEL_IMAGETYPE}-kexecboot-${MACHINE}.bin" ] && cp ${KERNEL_IMAGETYPE}-kexecboot-${MACHINE}.bin installkit-${MACHINE}/${KERNEL_IMAGETYPE} + + cp updater.sh.${MACHINE} installkit-${MACHINE}/updater.sh + + tar czf ${DEPLOY_DIR_IMAGE}/installkit-${MACHINE}.tar.gz installkit-${MACHINE}/ + md5sum ${DEPLOY_DIR_IMAGE}/installkit-${MACHINE}.tar.gz > ${DEPLOY_DIR_IMAGE}/installkit-${MACHINE}.tar.gz.md5 + rm -rf ${DEPLOY_DIR_IMAGE}/installkit-${MACHINE}/ +} + +addtask deploy before do_build after do_compile |