diff options
author | Paul Sokolovsky <pmiscml@gmail.com> | 2007-09-11 01:01:37 +0000 |
---|---|---|
committer | Paul Sokolovsky <pmiscml@gmail.com> | 2007-09-11 01:01:37 +0000 |
commit | 95383d57563c9ba44fc91ea82ed150f8db12678a (patch) | |
tree | 7ba113cbc960ea0f66bd23cc03d27545f8c311a8 /packages/images/liveramdisk-image.bb | |
parent | b62a90194852fa2f3e30e572a1ca972b24ebd97c (diff) |
liveramdisk-image: Build a LiveRamdisk image.
Diffstat (limited to 'packages/images/liveramdisk-image.bb')
-rw-r--r-- | packages/images/liveramdisk-image.bb | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/packages/images/liveramdisk-image.bb b/packages/images/liveramdisk-image.bb new file mode 100644 index 0000000000..026ed7b81c --- /dev/null +++ b/packages/images/liveramdisk-image.bb @@ -0,0 +1,28 @@ +# LiveRamdisk image +# Hwo to build: +# First build angstrom-x11-image with glibc +# then switch to ANGSTROM_MODE=uclibc and build this recipe +# LiveRamdisk concept/implementation by Paul Sokolovsky +LICENSE = "MIT" +IMAGE_FSTYPES = "cpio.gz" + +#IMAGE_INSTALL = "initramfs-boot busybox kernel-module-uinput uclibc libgcc1" +IMAGE_INSTALL = "initramfs-jffs2 busybox-static kernel-module-mtdram" + +export IMAGE_BASENAME = "liveramdisk" +export IMAGE_LINGUAS = "" + +# Install only ${IMAGE_INSTALL}, not even deps +PACKAGE_INSTALL_NO_DEPS = "1" + +inherit image + +IMAGE_PREPROCESS_COMMAND += " copy_jffs2_image; " + +copy_jffs2_image() { + # We need glibc main image + latest_image=`ls -1 -r ${DEPLOY_DIR}/../glibc/images/${MACHINE}/Angstrom-x11-image-glibc-*.rootfs.jffs2|head -n1` + [ -n "$latest_image" ] || oefatal "Cannot find jffs2 image in ${DEPLOY_DIR}/../glibc/images/${MACHINE}/" + oenote "Using: cp $latest_image ${IMAGE_ROOTFS}/initrd.jffs2" + cp $latest_image ${IMAGE_ROOTFS}/initrd.jffs2 +} |