summaryrefslogtreecommitdiff
path: root/contrib/image-convert/cpio2tar
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/image-convert/cpio2tar')
-rwxr-xr-xcontrib/image-convert/cpio2tar9
1 files changed, 9 insertions, 0 deletions
diff --git a/contrib/image-convert/cpio2tar b/contrib/image-convert/cpio2tar
new file mode 100755
index 0000000000..7f2c92fe26
--- /dev/null
+++ b/contrib/image-convert/cpio2tar
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+STAGING= #~/linux-ppc/build-oe-angstrom/tmp/staging/i686-linux/bin/
+
+${STAGING}fakeroot bash -c " \
+rm -rf scratch; mkdir scratch; \
+cd scratch; gzip -d -c ../$1 | cpio -i --make-directories; \
+cd ..; \
+tar -cj -C scratch -f $(basename $1 .cpio.gz).tar.bz2 ."