summaryrefslogtreecommitdiff
path: root/contrib/image-convert/tar2jffs
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/image-convert/tar2jffs')
-rwxr-xr-xcontrib/image-convert/tar2jffs8
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/image-convert/tar2jffs b/contrib/image-convert/tar2jffs
new file mode 100755
index 0000000000..7bf158e4a5
--- /dev/null
+++ b/contrib/image-convert/tar2jffs
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+STAGING= #~/linux-ppc/build-oe-angstrom/tmp/staging/i686-linux/bin/
+
+${STAGING}fakeroot bash -c " \
+rm -rf scratch; mkdir scratch; \
+tar -xj -f $1 -C scratch; \
+${STAGING}mkfs.jffs2 -x lzo --root=scratch --faketime --output=$(dirname $1)/$(basename $1 .tar.bz2).jffs2"