aboutsummaryrefslogtreecommitdiffstats
path: root/usr/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'usr/Makefile')
-rw-r--r--usr/Makefile23
1 files changed, 14 insertions, 9 deletions
diff --git a/usr/Makefile b/usr/Makefile
index 029ffe6cd0d8..e767f019accf 100644
--- a/usr/Makefile
+++ b/usr/Makefile
@@ -6,20 +6,23 @@ klibcdirs:;
6PHONY += klibcdirs 6PHONY += klibcdirs
7 7
8 8
9# Gzip
10suffix_$(CONFIG_INITRAMFS_COMPRESSION_GZIP) = .gz
11
12# Bzip2 9# Bzip2
13suffix_$(CONFIG_INITRAMFS_COMPRESSION_BZIP2) = .bz2 10suffix_$(CONFIG_RD_BZIP2) = .bz2
14 11
15# Lzma 12# Lzma
16suffix_$(CONFIG_INITRAMFS_COMPRESSION_LZMA) = .lzma 13suffix_$(CONFIG_RD_LZMA) = .lzma
17 14
18# XZ 15# XZ
19suffix_$(CONFIG_INITRAMFS_COMPRESSION_XZ) = .xz 16suffix_$(CONFIG_RD_XZ) = .xz
20 17
21# Lzo 18# Lzo
22suffix_$(CONFIG_INITRAMFS_COMPRESSION_LZO) = .lzo 19suffix_$(CONFIG_RD_LZO) = .lzo
20
21# Lz4
22suffix_$(CONFIG_RD_LZ4) = .lz4
23
24# Gzip
25suffix_$(CONFIG_RD_GZIP) = .gz
23 26
24AFLAGS_initramfs_data.o += -DINITRAMFS_IMAGE="usr/initramfs_data.cpio$(suffix_y)" 27AFLAGS_initramfs_data.o += -DINITRAMFS_IMAGE="usr/initramfs_data.cpio$(suffix_y)"
25 28
@@ -53,7 +56,10 @@ endif
53quiet_cmd_initfs = GEN $@ 56quiet_cmd_initfs = GEN $@
54 cmd_initfs = $(initramfs) -o $@ $(ramfs-args) $(ramfs-input) 57 cmd_initfs = $(initramfs) -o $@ $(ramfs-args) $(ramfs-input)
55 58
56targets := initramfs_data.cpio.gz initramfs_data.cpio.bz2 initramfs_data.cpio.lzma initramfs_data.cpio.xz initramfs_data.cpio.lzo initramfs_data.cpio 59targets := initramfs_data.cpio.gz initramfs_data.cpio.bz2 \
60 initramfs_data.cpio.lzma initramfs_data.cpio.xz \
61 initramfs_data.cpio.lzo initramfs_data.cpio.lz4 \
62 initramfs_data.cpio
57# do not try to update files included in initramfs 63# do not try to update files included in initramfs
58$(deps_initramfs): ; 64$(deps_initramfs): ;
59 65
@@ -66,4 +72,3 @@ $(deps_initramfs): klibcdirs
66$(obj)/initramfs_data.cpio$(suffix_y): $(obj)/gen_init_cpio $(deps_initramfs) klibcdirs 72$(obj)/initramfs_data.cpio$(suffix_y): $(obj)/gen_init_cpio $(deps_initramfs) klibcdirs
67 $(Q)$(initramfs) -l $(ramfs-input) > $(obj)/.initramfs_data.cpio.d 73 $(Q)$(initramfs) -l $(ramfs-input) > $(obj)/.initramfs_data.cpio.d
68 $(call if_changed,initfs) 74 $(call if_changed,initfs)
69