initramfs: do not show compression mode choice if INITRAMFS_SOURCE is empty
Changes
2 files changed · +2 −1
| File | Status | Add | Del | Content |
|---|---|---|---|---|
| usr/Kconfig | modified | +1 | −0 | View file |
| usr/Makefile | modified | +1 | −1 | View file |
usr/Kconfig
View filediff --git a/usr/Kconfig b/usr/Kconfig
index 529caab..bdf5bbd 100644
--- a/usr/Kconfig
+++ b/usr/Kconfig
@@ -102,6 +102,7 @@ config RD_LZ4
choice
prompt "Built-in initramfs compression mode"
+ depends on INITRAMFS_SOURCE != ""
help
This option allows you to decide by which algorithm the builtin
initramfs will be compressed. Several compression algorithms are
usr/Makefile
View filediff --git a/usr/Makefile b/usr/Makefile
index 244862b..b6081bb 100644
--- a/usr/Makefile
+++ b/usr/Makefile
@@ -8,7 +8,7 @@
# with unpack_to_rootfs(). Make size_append no-op.
override size_append := :
-compress-$(CONFIG_INITRAMFS_COMPRESSION_NONE) := shipped
+compress-y := shipped
compress-$(CONFIG_INITRAMFS_COMPRESSION_GZIP) := gzip
compress-$(CONFIG_INITRAMFS_COMPRESSION_BZIP2) := bzip2
compress-$(CONFIG_INITRAMFS_COMPRESSION_LZMA) := lzma