diff options
author | Paul Sokolovsky <pmiscml@gmail.com> | 2007-01-04 20:17:19 +0000 |
---|---|---|
committer | Paul Sokolovsky <pmiscml@gmail.com> | 2007-01-04 20:17:19 +0000 |
commit | 8eef5d1855dcc401a7aafc54764db3767ccbb570 (patch) | |
tree | 0d2bd46d990fd3f62e824d8094c1340297ebd94c /conf/bitbake.conf | |
parent | c365f60cbcfd55c56a5a414cc3951773832da35e (diff) |
bitbake.conf: Add support for cpio and cpio.gz image formats.
* Required to create initramfs bundles.
* Single image can be used both as rootfs archive to expand to some media
and as initrd (initramfs-style). In the latter case, "rdinit" kernel param
should be used instead of "init". See Documentation/filesystems/ramfs-rootfs-initramfs.txt
for more info.
Diffstat (limited to 'conf/bitbake.conf')
-rw-r--r-- | conf/bitbake.conf | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/conf/bitbake.conf b/conf/bitbake.conf index 6ddf8ecaf4..96ce7f239d 100644 --- a/conf/bitbake.conf +++ b/conf/bitbake.conf @@ -196,6 +196,8 @@ IMAGE_CMD_squashfs-lzma = "mksquashfs-lzma ${IMAGE_ROOTFS} ${DEPLOY_DIR_IMAGE}/$ IMAGE_CMD_tar = "cd ${IMAGE_ROOTFS} && tar -jcvf ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.tar.bz2 ." IMAGE_CMD_tar.gz = "cd ${IMAGE_ROOTFS} && tar -zcvf ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.tar.gz ." IMAGE_CMD_tar.bz2 = "cd ${IMAGE_ROOTFS} && tar -jcvf ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.tar.bz2 ." +IMAGE_CMD_cpio = "cd ${IMAGE_ROOTFS} && (find . | cpio -o -H newc >${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.cpio)" +IMAGE_CMD_cpio.gz = "cd ${IMAGE_ROOTFS} && (find . | cpio -o -H newc | gzip -c -9 >${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.cpio.gz)" EXTRA_IMAGECMD = "" EXTRA_IMAGECMD_jffs2 = "--pad --little-endian --eraseblock=0x40000" EXTRA_IMAGECMD_squashfs = "-le -b 16384" |