summaryrefslogtreecommitdiff
path: root/recipes/zaurus-utils/zaurus-installer.bb
diff options
context:
space:
mode:
authorAndrea Adami <andrea.adami@gmail.com>2009-08-12 00:09:31 +0200
committerAndrea Adami <andrea.adami@gmail.com>2009-08-12 00:09:31 +0200
commit5a7e0f0eb265c98248ffd23d4801d1e0c1af031b (patch)
tree29131bd4ef7c34f760ba2306ba2d528fe743cbb3 /recipes/zaurus-utils/zaurus-installer.bb
parentecb37e065e8e402711c415a01b50f1186fc27a10 (diff)
zaurus-utils: create a common container for the various Zaurus tools
Diffstat (limited to 'recipes/zaurus-utils/zaurus-installer.bb')
-rw-r--r--recipes/zaurus-utils/zaurus-installer.bb35
1 files changed, 35 insertions, 0 deletions
diff --git a/recipes/zaurus-utils/zaurus-installer.bb b/recipes/zaurus-utils/zaurus-installer.bb
new file mode 100644
index 0000000000..e24f2aafaf
--- /dev/null
+++ b/recipes/zaurus-utils/zaurus-installer.bb
@@ -0,0 +1,35 @@
+DESCRIPTION = "Installkit for kexecboot-kernel"
+DEPENDS = "${@base_conditional('MACHINE', 'collie', 'linux-kexecboot', 'zaurus-updater linux-kexecboot', d)}"
+LICENSE = "zaurus-installer"
+PR = "r1"
+
+PACKAGES = ""
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+COMPATIBLE_MACHINE = '(collie|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}
+
+ if [ ! "${MACHINE}" = "collie" ]; then
+ cp updater.sh.${MACHINE} installkit-${MACHINE}/updater.sh
+ fi
+
+ 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