summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2007-08-08 12:38:56 +0000
committerRichard Purdie <richard@openedhand.com>2007-08-08 12:38:56 +0000
commit6ca61e5a3cb5443c5203411e10f2c2e74e48b72b (patch)
tree1d31b6ae1aade873f4df6dd79c0970fe65c74ad4
parent303cbeeea22248d7d3c635921fe9929106c60150 (diff)
downloadpoky-6ca61e5a3cb5443c5203411e10f2c2e74e48b72b.tar.gz
zaurus-2.6.inc: Merge in installkit function from OE.dev
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2389 311d38ba-8fff-0310-9ca6-ca027cbcb966
-rw-r--r--meta/conf/machine/include/zaurus-2.6.inc27
1 files changed, 27 insertions, 0 deletions
diff --git a/meta/conf/machine/include/zaurus-2.6.inc b/meta/conf/machine/include/zaurus-2.6.inc
index 681d38770b..cf0a238a70 100644
--- a/meta/conf/machine/include/zaurus-2.6.inc
+++ b/meta/conf/machine/include/zaurus-2.6.inc
@@ -16,3 +16,30 @@ MACHINE_EXTRA_RRECOMMENDS_c7x0 = "kernel-module-snd-soc-corgi"
16MACHINE_EXTRA_RRECOMMENDS_akita = "kernel-module-snd-soc-spitz" 16MACHINE_EXTRA_RRECOMMENDS_akita = "kernel-module-snd-soc-spitz"
17MACHINE_EXTRA_RRECOMMENDS_spitz = "kernel-module-snd-soc-spitz" 17MACHINE_EXTRA_RRECOMMENDS_spitz = "kernel-module-snd-soc-spitz"
18MACHINE_EXTRA_RRECOMMENDS_poodle = "kernel-module-snd-soc-poodle" 18MACHINE_EXTRA_RRECOMMENDS_poodle = "kernel-module-snd-soc-poodle"
19
20MACHINE_POSTPROCESS_COMMAND = "zaurus_make_installkit"
21
22zaurus_make_installkit () {
23 cd ${DEPLOY_DIR_IMAGE}
24 rm -rf ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}-installkit/
25 mkdir ${IMAGE_NAME}-installkit/
26
27 # Get the latest kernel using the zImage-<machine>.bin symlink
28 cp zImage-${MACHINE}.bin ${IMAGE_NAME}-installkit/zImage.bin
29
30 if [ "${MACHINE}" = "spitz" ]; then
31 cp gnu-tar ${IMAGE_NAME}-installkit/
32 cp ${IMAGE_NAME}.rootfs.tar.gz ${IMAGE_NAME}-installkit/hdimage1.tgz
33 else
34 cp ${IMAGE_NAME}.rootfs.jffs2 ${IMAGE_NAME}-installkit/initrd.bin
35 fi
36
37 # All zaurus machines except collie need updater.sh
38 if [ "${MACHINE}" != "collie" ]; then
39 cp updater.sh.${MACHINE} ${IMAGE_NAME}-installkit/updater.sh
40 fi
41
42 tar czf ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}-installkit.tgz ${IMAGE_NAME}-installkit/
43 md5sum ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}-installkit.tgz > ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}-installkit.tgz.md5
44 rm -rf ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}-installkit/
45}