diff options
Diffstat (limited to 'usr/Makefile')
-rw-r--r-- | usr/Makefile | 18 |
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 @@ | |||
5 | klibcdirs:; | 5 | klibcdirs:; |
6 | PHONY += klibcdirs | 6 | PHONY += 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 |
15 | suffix_y = | 10 | suffix_$(CONFIG_INITRAMFS_COMPRESSION_NONE) = |
16 | |||
17 | # Lzma, but no gzip nor bzip2 | ||
18 | suffix_$(CONFIG_RD_LZMA) = .lzma | ||
19 | 11 | ||
20 | # Gzip, but no bzip2 | 12 | # Gzip, but no bzip2 |
21 | suffix_$(CONFIG_RD_GZIP) = .gz | 13 | suffix_$(CONFIG_INITRAMFS_COMPRESSION_GZIP) = .gz |
22 | 14 | ||
23 | # Bzip2 | 15 | # Bzip2 |
24 | suffix_$(CONFIG_RD_BZIP2) = .bz2 | 16 | suffix_$(CONFIG_INITRAMFS_COMPRESSION_BZIP2) = .bz2 |
25 | 17 | ||
18 | # Lzma | ||
19 | suffix_$(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 |
28 | obj-$(CONFIG_BLK_DEV_INITRD) := initramfs_data$(suffix_y).o | 22 | obj-$(CONFIG_BLK_DEV_INITRD) := initramfs_data$(suffix_y).o |