aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Schmidt <stefan@buglabs.net>2010-12-08 11:28:28 +0100
committerStefan Schmidt <stefan@buglabs.net>2011-02-03 11:43:34 +0100
commit951c432cf126f0bdd2c9c14d9d5c90cd8954ad43 (patch)
tree98707dfe5f89b645c54d25f314efd278c52d33aa
parent2ffe5731b1921314774b1db6e2d41178c642c623 (diff)
downloadopenembedded-951c432cf126f0bdd2c9c14d9d5c90cd8954ad43.tar.gz
openembedded-951c432cf126f0bdd2c9c14d9d5c90cd8954ad43.tar.bz2
openembedded-951c432cf126f0bdd2c9c14d9d5c90cd8954ad43.zip
bug-ramdisk: Add ramdisk image for QA testing
-rw-r--r--recipes/images/bug-ramdisk.bb43
1 files changed, 43 insertions, 0 deletions
diff --git a/recipes/images/bug-ramdisk.bb b/recipes/images/bug-ramdisk.bb
new file mode 100644
index 0000000000..e6da2f7de5
--- /dev/null
+++ b/recipes/images/bug-ramdisk.bb
@@ -0,0 +1,43 @@
+# Remove any kernel-image that the kernel-module-* packages may have pulled in.
+PACKAGE_REMOVE = "kernel-image-* update-modules"
+ROOTFS_POSTPROCESS_COMMAND += "opkg-cl ${IPKG_ARGS} -force-depends \
+ remove ${PACKAGE_REMOVE};"
+inherit image
+
+PR = "r2"
+
+IMAGE_LINGUAS = ""
+
+IMAGE_FSTYPES = "cpio.gz"
+
+ANGSTROM_EXTRA_INSTALL ?= "busybox"
+DISTRO_SSH_DAEMON ?= "dropbear"
+
+IMAGE_PREPROCESS_COMMAND = "create_etc_timestamp"
+
+IMAGE_INSTALL = "task-boot \
+ util-linux-mount util-linux-umount \
+ ${DISTRO_SSH_DAEMON} \
+ ${ANGSTROM_EXTRA_INSTALL} \
+ angstrom-version \
+ bash \
+ marvell-sdio-fw memtester \
+ "
+
+ROOTFS_POSTPROCESS_COMMAND += "rootfs_update_buildinfo"
+
+rootfs_update_buildinfo () {
+ echo "#!/bin/sh" >>${IMAGE_ROOTFS}/init
+ echo "exec /sbin/init" >>${IMAGE_ROOTFS}/init
+ chmod +x ${IMAGE_ROOTFS}/init
+}
+
+IMAGE_POSTPROCESS_COMMAND += "build_uimage"
+
+build_uimage () {
+
+ ${STAGING_BINDIR_NATIVE}/mkimage -A arm -O linux -T ramdisk -C gzip \
+ -a 0x0 -e 0x0 -n uInitramfs -d ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.cpio.gz ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.uimage
+}
+
+# tmp/deploy/glibc/images/bug20/Angstrom-bug-ramdisk-glibc-ipk-2009.X-stable-bug20.rootfs.cpio.gz