image: improve Kconfig for seperate ramdisk option
authorDaniel Golle <daniel@makrotopia.org>
Thu, 25 Feb 2021 14:13:50 +0000 (14:13 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Thu, 25 Feb 2021 16:39:55 +0000 (16:39 +0000)
* show only if target supports it (ie. seperate_ramdisk feature set)
* select XZ compression by default of ramdisk is seperate

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
config/Config-images.in

index 080fee2ccef620951f173cab7a90d4189f6e804d..b1f5b4371980d1455dff178ffae8fabc07e875b7 100644 (file)
@@ -17,6 +17,7 @@ menu "Target Images"
                        default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_lantiq
                        default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_mpc85xx
                        default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_ramips
+                       default TARGET_INITRAMFS_COMPRESSION_XZ if USES_SEPERATE_INITRAMFS
                        default TARGET_INITRAMFS_COMPRESSION_NONE
                        depends on TARGET_ROOTFS_INITRAMFS
                        help
@@ -66,7 +67,7 @@ menu "Target Images"
 
                config TARGET_ROOTFS_INITRAMFS_SEPERATE
                        bool "seperate ramdisk"
-                       depends on TARGET_ROOTFS_INITRAMFS && !TARGET_INITRAMFS_FORCE
+                       depends on USES_SEPERATE_INITRAMFS && TARGET_ROOTFS_INITRAMFS && !TARGET_INITRAMFS_FORCE
                        default y if USES_SEPERATE_INITRAMFS
                        help
                          Generate seperate initrd.cpio instead of embedding it.