Makefile (4b4193256c8d3bc3a5397b5cd9494c2ad386317d) | Makefile (129ab0d2d9f38b9d43df35235fc66c6740d6928b) |
---|---|
1# SPDX-License-Identifier: GPL-2.0 2# 3# kbuild file for usr/ - including initramfs image 4# 5 6# cmd_bzip2, cmd_lzma, cmd_lzo, cmd_lz4 from scripts/Makefile.lib appends the 7# size at the end of the compressed file, which unfortunately does not work 8# with unpack_to_rootfs(). Make size_append no-op. --- 7 unchanged lines hidden (view full) --- 16compress-$(CONFIG_INITRAMFS_COMPRESSION_LZO) := lzo 17compress-$(CONFIG_INITRAMFS_COMPRESSION_LZ4) := lz4 18compress-$(CONFIG_INITRAMFS_COMPRESSION_ZSTD) := zstd 19 20obj-$(CONFIG_BLK_DEV_INITRD) := initramfs_data.o 21 22$(obj)/initramfs_data.o: $(obj)/initramfs_inc_data 23 | 1# SPDX-License-Identifier: GPL-2.0 2# 3# kbuild file for usr/ - including initramfs image 4# 5 6# cmd_bzip2, cmd_lzma, cmd_lzo, cmd_lz4 from scripts/Makefile.lib appends the 7# size at the end of the compressed file, which unfortunately does not work 8# with unpack_to_rootfs(). Make size_append no-op. --- 7 unchanged lines hidden (view full) --- 16compress-$(CONFIG_INITRAMFS_COMPRESSION_LZO) := lzo 17compress-$(CONFIG_INITRAMFS_COMPRESSION_LZ4) := lz4 18compress-$(CONFIG_INITRAMFS_COMPRESSION_ZSTD) := zstd 19 20obj-$(CONFIG_BLK_DEV_INITRD) := initramfs_data.o 21 22$(obj)/initramfs_data.o: $(obj)/initramfs_inc_data 23 |
24ramfs-input := $(strip $(shell echo $(CONFIG_INITRAMFS_SOURCE))) | 24ramfs-input := $(CONFIG_INITRAMFS_SOURCE) |
25cpio-data := 26 27# If CONFIG_INITRAMFS_SOURCE is empty, generate a small initramfs with the 28# default contents. 29ifeq ($(ramfs-input),) 30ramfs-input := $(srctree)/$(src)/default_cpio_list 31endif 32 --- 57 unchanged lines hidden --- | 25cpio-data := 26 27# If CONFIG_INITRAMFS_SOURCE is empty, generate a small initramfs with the 28# default contents. 29ifeq ($(ramfs-input),) 30ramfs-input := $(srctree)/$(src)/default_cpio_list 31endif 32 --- 57 unchanged lines hidden --- |