config: enable ext4 rootfs and gzip

Also disable for x86 by default
This commit is contained in:
AmadeusGhost 2020-04-01 16:08:54 +08:00
parent b9749d61aa
commit ed025d9baa
2 changed files with 5 additions and 3 deletions

View File

@ -79,7 +79,8 @@ menu "Target Images"
menuconfig TARGET_ROOTFS_EXT4FS
bool "ext4"
default n
default y if USES_EXT4
default n if TARGET_x86
help
Build an ext4 root filesystem.
@ -288,7 +289,8 @@ menu "Target Images"
config TARGET_IMAGES_GZIP
bool "GZip images"
depends on TARGET_IMAGES_PAD || TARGET_ROOTFS_EXT4FS || TARGET_x86
default n
default y
default n if TARGET_x86
comment "Image Options"

View File

@ -150,7 +150,7 @@ platform_do_upgrade_uDPU() {
platform_copy_config_uDPU() {
# Config is saved on the /misc partition and copied on the rootfs after the reboot
if [ -f /tmp/sysupgrade.tgz ]; then
cp -f /tmp/sysupgrade.tgz /tmp/syscfg/sysupgrade.tgz
cp -f /tmp/sysupgrade.tgz /misc/
sync
fi
}