scripts/image: add support to choice the compression method for squashing the SYSTEM file

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2012-02-13 00:56:32 +01:00
parent ed53cfd2d6
commit 001b250dc9
8 changed files with 26 additions and 2 deletions

View File

@ -107,6 +107,9 @@
# use linux-next (latest rc) instead latest released version
LINUX_NEXT="no"
# SquashFS compression method (gzip / lzo / xz)
SQUASHFS_COMPRESSION="gzip"
# Mediacenter to use (xbmc / no)
if [ "$PVR" = yes ]; then
MEDIACENTER="xbmc-pvr"

View File

@ -107,6 +107,9 @@
# use linux-next (latest rc) instead latest released version
LINUX_NEXT="no"
# SquashFS compression method (gzip / lzo / xz)
SQUASHFS_COMPRESSION="gzip"
# Mediacenter to use (xbmc / no)
if [ "$PVR" = yes ]; then
MEDIACENTER="xbmc-pvr"

View File

@ -107,6 +107,9 @@
# use linux-next (latest rc) instead latest released version
LINUX_NEXT="no"
# SquashFS compression method (gzip / lzo / xz)
SQUASHFS_COMPRESSION="gzip"
# Mediacenter to use (xbmc / no)
if [ "$PVR" = yes ]; then
MEDIACENTER="xbmc-pvr"

View File

@ -107,6 +107,9 @@
# use linux-next (latest rc) instead latest released version
LINUX_NEXT="no"
# SquashFS compression method (gzip / lzo / xz)
SQUASHFS_COMPRESSION="gzip"
# Mediacenter to use (xbmc / no)
if [ "$PVR" = yes ]; then
MEDIACENTER="xbmc-pvr"

View File

@ -107,6 +107,9 @@
# use linux-next (latest rc) instead latest released version
LINUX_NEXT="no"
# SquashFS compression method (gzip / lzo / xz)
SQUASHFS_COMPRESSION="gzip"
# Mediacenter to use (xbmc / no)
if [ "$PVR" = yes ]; then
MEDIACENTER="xbmc-pvr"

View File

@ -107,6 +107,9 @@
# use linux-next (latest rc) instead latest released version
LINUX_NEXT="no"
# SquashFS compression method (gzip / lzo / xz)
SQUASHFS_COMPRESSION="gzip"
# Mediacenter to use (xbmc / no)
if [ "$PVR" = yes ]; then
MEDIACENTER="xbmc-pvr"

View File

@ -107,6 +107,9 @@
# use linux-next (latest rc) instead latest released version
LINUX_NEXT="no"
# SquashFS compression method (gzip / lzo / xz)
SQUASHFS_COMPRESSION="gzip"
# Mediacenter to use (xbmc / no)
if [ "$PVR" = yes ]; then
MEDIACENTER="xbmc-pvr"

View File

@ -185,9 +185,12 @@ IMAGE_NAME="$DISTRONAME-$TARGET_VERSION"
fi
# create squashfs file
if [ -z "$SQUASHFS_COMPRESSION" ]; then
SQUASHFS_COMPRESSION="gzip"
fi
echo "rm -rf $TARGET_IMG/$IMAGE_NAME.system" >> $FAKEROOT_SCRIPT
# echo "$ROOT/$TOOLCHAIN/bin/mksquashfs $BUILD/image/system $TARGET_IMG/$IMAGE_NAME.system -noappend -comp xz" >> $FAKEROOT_SCRIPT
echo "$ROOT/$TOOLCHAIN/bin/mksquashfs $BUILD/image/system $TARGET_IMG/$IMAGE_NAME.system -noappend" >> $FAKEROOT_SCRIPT
echo "$ROOT/$TOOLCHAIN/bin/mksquashfs $BUILD/image/system $TARGET_IMG/$IMAGE_NAME.system -noappend -comp $SQUASHFS_COMPRESSION" >> $FAKEROOT_SCRIPT
# run fakeroot
$ROOT/$TOOLCHAIN/bin/fakeroot -- $FAKEROOT_SCRIPT