diff options
author | Andrea Adami <andrea.adami@gmail.com> | 2009-08-12 00:09:31 +0200 |
---|---|---|
committer | Andrea Adami <andrea.adami@gmail.com> | 2009-08-12 00:09:31 +0200 |
commit | 5a7e0f0eb265c98248ffd23d4801d1e0c1af031b (patch) | |
tree | 29131bd4ef7c34f760ba2306ba2d528fe743cbb3 /recipes/zaurus-utils/zaurus-updater.bb | |
parent | ecb37e065e8e402711c415a01b50f1186fc27a10 (diff) | |
download | openembedded-5a7e0f0eb265c98248ffd23d4801d1e0c1af031b.tar.gz |
zaurus-utils: create a common container for the various Zaurus tools
Diffstat (limited to 'recipes/zaurus-utils/zaurus-updater.bb')
-rw-r--r-- | recipes/zaurus-utils/zaurus-updater.bb | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/recipes/zaurus-utils/zaurus-updater.bb b/recipes/zaurus-utils/zaurus-updater.bb new file mode 100644 index 0000000000..ab32d7fe29 --- /dev/null +++ b/recipes/zaurus-utils/zaurus-updater.bb @@ -0,0 +1,38 @@ +DESCRIPTION = "Encrypted shellscript for the Zaurus ROM update" +DEPENDS = "encdec-updater-native" +LICENSE = "zaurus-updater" +PR = "r23" + +PACKAGES = "" +PACKAGE_ARCH = "${MACHINE_ARCH}" +COMPATIBLE_MACHINE = '(poodle|c7x0|spitz|akita|tosa)' + +SRC_URI = "file://updater.sh \ + file://gnu-tar.gz" +S = "${WORKDIR}" + +do_configure() { + sed -i "s/ZAURUS_UPDATER_VERSION/${PR}/" "${S}/updater.sh" +} + +do_compile() { + encdec-updater -e updater.sh +} + +do_deploy() { + install -d ${DEPLOY_DIR_IMAGE} + install -m 0755 updater.sh ${DEPLOY_DIR_IMAGE}/updater.sh.${MACHINE} + package_stagefile_shell ${DEPLOY_DIR_IMAGE}/updater.sh.${MACHINE} + + case ${MACHINE} in + spitz ) + install -m 0755 gnu-tar ${DEPLOY_DIR_IMAGE}/gnu-tar + package_stagefile_shell ${DEPLOY_DIR_IMAGE}/gnu-tar + ;; + *) + ;; + esac +} + +addtask deploy before do_build after do_compile +PARALLEL_MAKE = "" |