aboutsummaryrefslogtreecommitdiffstats
path: root/usr/Makefile
diff options
context:
space:
mode:
authorAlain Knaff <alain@knaff.lu>2009-02-19 16:43:51 -0500
committerH. Peter Anvin <hpa@linux.intel.com>2009-02-19 16:43:51 -0500
commitab76f3d771590d5c89faa3219559c5d3fc0ce0c2 (patch)
tree4433427c29c34e8fc1ab7ba50bb381f8f5b2051d /usr/Makefile
parentab59d3b70f7a47987f80e153d828363faec643fe (diff)
bzip2/lzma: make internal initramfs compression configurable
Impact: Avoids silent environment dependency Make builtin initramfs compression an explicit configurable. The previous version would pick a compression based on the binaries which were installed on the system, which could lead to unexpected results. It is now explicitly configured, and not having the appropriate binaries installed on the build host is simply an error. Signed-off-by: Alain Knaff <alain@knaff.lu> Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'usr/Makefile')
-rw-r--r--usr/Makefile18
1 files changed, 6 insertions, 12 deletions
diff --git a/usr/Makefile b/usr/Makefile
index 451cdff7dff9..b84894b3929d 100644
--- a/usr/Makefile
+++ b/usr/Makefile
@@ -5,24 +5,18 @@
5klibcdirs:; 5klibcdirs:;
6PHONY += klibcdirs 6PHONY += klibcdirs
7 7
8# Find out "preferred" ramdisk compressor. Order of preference is
9# 1. bzip2 efficient, and likely to be present
10# 2. gzip former default
11# 3. lzma
12# 4. none
13 8
14# None of the above 9# No compression
15suffix_y = 10suffix_$(CONFIG_INITRAMFS_COMPRESSION_NONE) =
16
17# Lzma, but no gzip nor bzip2
18suffix_$(CONFIG_RD_LZMA) = .lzma
19 11
20# Gzip, but no bzip2 12# Gzip, but no bzip2
21suffix_$(CONFIG_RD_GZIP) = .gz 13suffix_$(CONFIG_INITRAMFS_COMPRESSION_GZIP) = .gz
22 14
23# Bzip2 15# Bzip2
24suffix_$(CONFIG_RD_BZIP2) = .bz2 16suffix_$(CONFIG_INITRAMFS_COMPRESSION_BZIP2) = .bz2
25 17
18# Lzma
19suffix_$(CONFIG_INITRAMFS_COMPRESSION_LZMA) = .lzma
26 20
27# Generate builtin.o based on initramfs_data.o 21# Generate builtin.o based on initramfs_data.o
28obj-$(CONFIG_BLK_DEV_INITRD) := initramfs_data$(suffix_y).o 22obj-$(CONFIG_BLK_DEV_INITRD) := initramfs_data$(suffix_y).o