Skip to contentSkip to conversation

gzip cpio

PATCH New Clark Rawlins 3 participants 3 messages Jun 21, 2007 – Aug 1, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gzip cpio

This patch is useful to me. It permits gzipping the cpio archive after creation. This is my first attempt so if there are better, or more correct ways to accomplish this I am interested in improving my changes. -------------- next part --------------
A non-text attachment was scrubbed...
Name: target-cpio.patch
Type: text/x-patch
Size: 1059 bytes
Desc: not available
Url : http://busybox.net/lists/buildroot/attachments/20070621/86e2606c/attachment.bin

#1 lore raw

PATCH 1/1 gzip cpio

Quoted 3 lines · Clark Rawlins

This patch is useful to me. It permits gzipping the cpio archive after creation. This is my first attempt so if there are better, or more correct ways to accomplish this I am interested in improving my changes.

Problem is that somebody will show up sooner or later who wants to use another compressor (we've seen this with ext2 rootfs).
Let me suggest you look at target/ext2/ext2root.mk
and do the same COMPRESSOR fiddling (with cpio and any other target format).

thanks,

#2 lore raw

PATCH 1/1 gzip cpio

Quoted 10 lines · Bernhard Fischer
Quoted 3 lines · Clark Rawlins

This patch is useful to me. It permits gzipping the cpio archive after creation. This is my first attempt so if there are better, or more correct ways to accomplish this I am interested in improving my changes.

Problem is that somebody will show up sooner or later who wants to use another compressor (we've seen this with ext2 rootfs).
Let me suggest you look at target/ext2/ext2root.mk
and do the same COMPRESSOR fiddling (with cpio and any other target format).

Attached is a patch to add the same compression options to the cpio root as to the ext2 root.

I'm only using gzipped cpio at the moment, but will gladly do the same for other output formats if there is demand for it.

Cheers,
Chris

Signature · 9 lines
Chris Malarky
chris at malarky dot org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cpioroot-compressor.patch
Type: text/x-patch
Size: 4635 bytes
Desc: 
Url : http://busybox.net/lists/buildroot/attachments/20070801/78835336/attachment.bin