mirror of
https://github.com/libretro/Lakka.git
synced 2024-11-27 01:50:47 +00:00
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:
parent
ed53cfd2d6
commit
001b250dc9
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user