mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-31 14:37:59 +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
|
# use linux-next (latest rc) instead latest released version
|
||||||
LINUX_NEXT="no"
|
LINUX_NEXT="no"
|
||||||
|
|
||||||
|
# SquashFS compression method (gzip / lzo / xz)
|
||||||
|
SQUASHFS_COMPRESSION="gzip"
|
||||||
|
|
||||||
# Mediacenter to use (xbmc / no)
|
# Mediacenter to use (xbmc / no)
|
||||||
if [ "$PVR" = yes ]; then
|
if [ "$PVR" = yes ]; then
|
||||||
MEDIACENTER="xbmc-pvr"
|
MEDIACENTER="xbmc-pvr"
|
||||||
|
@ -107,6 +107,9 @@
|
|||||||
# use linux-next (latest rc) instead latest released version
|
# use linux-next (latest rc) instead latest released version
|
||||||
LINUX_NEXT="no"
|
LINUX_NEXT="no"
|
||||||
|
|
||||||
|
# SquashFS compression method (gzip / lzo / xz)
|
||||||
|
SQUASHFS_COMPRESSION="gzip"
|
||||||
|
|
||||||
# Mediacenter to use (xbmc / no)
|
# Mediacenter to use (xbmc / no)
|
||||||
if [ "$PVR" = yes ]; then
|
if [ "$PVR" = yes ]; then
|
||||||
MEDIACENTER="xbmc-pvr"
|
MEDIACENTER="xbmc-pvr"
|
||||||
|
@ -107,6 +107,9 @@
|
|||||||
# use linux-next (latest rc) instead latest released version
|
# use linux-next (latest rc) instead latest released version
|
||||||
LINUX_NEXT="no"
|
LINUX_NEXT="no"
|
||||||
|
|
||||||
|
# SquashFS compression method (gzip / lzo / xz)
|
||||||
|
SQUASHFS_COMPRESSION="gzip"
|
||||||
|
|
||||||
# Mediacenter to use (xbmc / no)
|
# Mediacenter to use (xbmc / no)
|
||||||
if [ "$PVR" = yes ]; then
|
if [ "$PVR" = yes ]; then
|
||||||
MEDIACENTER="xbmc-pvr"
|
MEDIACENTER="xbmc-pvr"
|
||||||
|
@ -107,6 +107,9 @@
|
|||||||
# use linux-next (latest rc) instead latest released version
|
# use linux-next (latest rc) instead latest released version
|
||||||
LINUX_NEXT="no"
|
LINUX_NEXT="no"
|
||||||
|
|
||||||
|
# SquashFS compression method (gzip / lzo / xz)
|
||||||
|
SQUASHFS_COMPRESSION="gzip"
|
||||||
|
|
||||||
# Mediacenter to use (xbmc / no)
|
# Mediacenter to use (xbmc / no)
|
||||||
if [ "$PVR" = yes ]; then
|
if [ "$PVR" = yes ]; then
|
||||||
MEDIACENTER="xbmc-pvr"
|
MEDIACENTER="xbmc-pvr"
|
||||||
|
@ -107,6 +107,9 @@
|
|||||||
# use linux-next (latest rc) instead latest released version
|
# use linux-next (latest rc) instead latest released version
|
||||||
LINUX_NEXT="no"
|
LINUX_NEXT="no"
|
||||||
|
|
||||||
|
# SquashFS compression method (gzip / lzo / xz)
|
||||||
|
SQUASHFS_COMPRESSION="gzip"
|
||||||
|
|
||||||
# Mediacenter to use (xbmc / no)
|
# Mediacenter to use (xbmc / no)
|
||||||
if [ "$PVR" = yes ]; then
|
if [ "$PVR" = yes ]; then
|
||||||
MEDIACENTER="xbmc-pvr"
|
MEDIACENTER="xbmc-pvr"
|
||||||
|
@ -107,6 +107,9 @@
|
|||||||
# use linux-next (latest rc) instead latest released version
|
# use linux-next (latest rc) instead latest released version
|
||||||
LINUX_NEXT="no"
|
LINUX_NEXT="no"
|
||||||
|
|
||||||
|
# SquashFS compression method (gzip / lzo / xz)
|
||||||
|
SQUASHFS_COMPRESSION="gzip"
|
||||||
|
|
||||||
# Mediacenter to use (xbmc / no)
|
# Mediacenter to use (xbmc / no)
|
||||||
if [ "$PVR" = yes ]; then
|
if [ "$PVR" = yes ]; then
|
||||||
MEDIACENTER="xbmc-pvr"
|
MEDIACENTER="xbmc-pvr"
|
||||||
|
@ -107,6 +107,9 @@
|
|||||||
# use linux-next (latest rc) instead latest released version
|
# use linux-next (latest rc) instead latest released version
|
||||||
LINUX_NEXT="no"
|
LINUX_NEXT="no"
|
||||||
|
|
||||||
|
# SquashFS compression method (gzip / lzo / xz)
|
||||||
|
SQUASHFS_COMPRESSION="gzip"
|
||||||
|
|
||||||
# Mediacenter to use (xbmc / no)
|
# Mediacenter to use (xbmc / no)
|
||||||
if [ "$PVR" = yes ]; then
|
if [ "$PVR" = yes ]; then
|
||||||
MEDIACENTER="xbmc-pvr"
|
MEDIACENTER="xbmc-pvr"
|
||||||
|
@ -185,9 +185,12 @@ IMAGE_NAME="$DISTRONAME-$TARGET_VERSION"
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# create squashfs file
|
# create squashfs file
|
||||||
|
if [ -z "$SQUASHFS_COMPRESSION" ]; then
|
||||||
|
SQUASHFS_COMPRESSION="gzip"
|
||||||
|
fi
|
||||||
|
|
||||||
echo "rm -rf $TARGET_IMG/$IMAGE_NAME.system" >> $FAKEROOT_SCRIPT
|
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 -comp $SQUASHFS_COMPRESSION" >> $FAKEROOT_SCRIPT
|
||||||
echo "$ROOT/$TOOLCHAIN/bin/mksquashfs $BUILD/image/system $TARGET_IMG/$IMAGE_NAME.system -noappend" >> $FAKEROOT_SCRIPT
|
|
||||||
|
|
||||||
# run fakeroot
|
# run fakeroot
|
||||||
$ROOT/$TOOLCHAIN/bin/fakeroot -- $FAKEROOT_SCRIPT
|
$ROOT/$TOOLCHAIN/bin/fakeroot -- $FAKEROOT_SCRIPT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user