aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorImre Kaloz <kaloz@openwrt.org>2009-11-21 15:20:11 +0000
committerImre Kaloz <kaloz@openwrt.org>2009-11-21 15:20:11 +0000
commit8e5aa66efeb5433d92c51d46c03ff61c700df8d8 (patch)
tree7422750d18229d40ce8a819807e7ce0a541aab5e
parent8151a5f6daad1cc7a7970c52f8473b903807e591 (diff)
downloadupstream-8e5aa66efeb5433d92c51d46c03ff61c700df8d8.tar.gz
upstream-8e5aa66efeb5433d92c51d46c03ff61c700df8d8.tar.bz2
upstream-8e5aa66efeb5433d92c51d46c03ff61c700df8d8.zip
make lzo compressed initramfs selectable, too
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18457 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--Config.in3
-rw-r--r--include/kernel-defaults.mk1
2 files changed, 4 insertions, 0 deletions
diff --git a/Config.in b/Config.in
index 3e8475cc30..71a7c7da8a 100644
--- a/Config.in
+++ b/Config.in
@@ -43,6 +43,9 @@ menu "Target Images"
config TARGET_INITRAMFS_COMPRESSION_LZMA
bool "LZMA"
+
+ config TARGET_INITRAMFS_COMPRESSION_LZO
+ bool "LZO"
endchoice
config TARGET_ROOTFS_JFFS2
diff --git a/include/kernel-defaults.mk b/include/kernel-defaults.mk
index f49cbb93a0..300139cab0 100644
--- a/include/kernel-defaults.mk
+++ b/include/kernel-defaults.mk
@@ -76,6 +76,7 @@ ifeq ($(KERNEL),2.6)
echo -e "$(if $(CONFIG_TARGET_INITRAMFS_COMPRESSION_GZIP),CONFIG_INITRAMFS_COMPRESSION_GZIP=y\nCONFIG_RD_GZIP=y,# CONFIG_INITRAMFS_COMPRESSION_GZIP is not set\n# CONFIG_RD_GZIP is not set)" >> $(LINUX_DIR)/.config
echo -e "$(if $(CONFIG_TARGET_INITRAMFS_COMPRESSION_BZIP2),CONFIG_INITRAMFS_COMPRESSION_BZIP2=y\nCONFIG_RD_BZIP2=y,# CONFIG_INITRAMFS_COMPRESSION_BZIP2 is not set\n# CONFIG_RD_BZIP2 is not set)" >> $(LINUX_DIR)/.config
echo -e "$(if $(CONFIG_TARGET_INITRAMFS_COMPRESSION_LZMA),CONFIG_INITRAMFS_COMPRESSION_LZMA=y\nCONFIG_RD_LZMA=y,# CONFIG_INITRAMFS_COMPRESSION_LZMA is not set\n# CONFIG_RD_LZMA is not set)" >> $(LINUX_DIR)/.config
+ echo -e "$(if $(CONFIG_TARGET_INITRAMFS_COMPRESSION_LZO),CONFIG_INITRAMFS_COMPRESSION_LZO=y\nCONFIG_RD_LZO=y,# CONFIG_INITRAMFS_COMPRESSION_LZO is not set\n# CONFIG_RD_LZO is not set)" >> $(LINUX_DIR)/.config
endef
else
define Kernel/SetInitramfs