Makefile (9668097599aa5fb87351bc2263e06a1c24718d40) Makefile (4538f41305c3f2c35463c996663dbf6307030ad7)
1# SPDX-License-Identifier: GPL-2.0
2#
3# kbuild file for usr/ - including initramfs image
4#
5
6suffix_y = $(subst $\",,$(CONFIG_INITRAMFS_COMPRESSION))
7datafile_y = initramfs_data.cpio$(suffix_y)
8datafile_d_y = .$(datafile_y).d

--- 11 unchanged lines hidden (view full) ---

20# tracked automatically.
21$(obj)/initramfs_data.o: $(obj)/$(datafile_y) FORCE
22
23#####
24# Generate the initramfs cpio archive
25
26hostprogs-y := gen_init_cpio
27ramfs-input := $(if $(filter-out "",$(CONFIG_INITRAMFS_SOURCE)), \
1# SPDX-License-Identifier: GPL-2.0
2#
3# kbuild file for usr/ - including initramfs image
4#
5
6suffix_y = $(subst $\",,$(CONFIG_INITRAMFS_COMPRESSION))
7datafile_y = initramfs_data.cpio$(suffix_y)
8datafile_d_y = .$(datafile_y).d

--- 11 unchanged lines hidden (view full) ---

20# tracked automatically.
21$(obj)/initramfs_data.o: $(obj)/$(datafile_y) FORCE
22
23#####
24# Generate the initramfs cpio archive
25
26hostprogs-y := gen_init_cpio
27ramfs-input := $(if $(filter-out "",$(CONFIG_INITRAMFS_SOURCE)), \
28 $(shell echo $(CONFIG_INITRAMFS_SOURCE)),-d)
28 $(shell echo $(CONFIG_INITRAMFS_SOURCE)),$(srctree)/$(src)/default_cpio_list)
29ramfs-args := \
30 $(if $(CONFIG_INITRAMFS_ROOT_UID), -u $(CONFIG_INITRAMFS_ROOT_UID)) \
31 $(if $(CONFIG_INITRAMFS_ROOT_GID), -g $(CONFIG_INITRAMFS_ROOT_GID))
32
33# $(datafile_d_y) is used to identify all files included
34# in initramfs and to detect if any files are added/removed.
35# Removed files are identified by directory timestamp being updated
36# The dependency list is generated by gen_initramfs.sh -l

--- 21 unchanged lines hidden ---
29ramfs-args := \
30 $(if $(CONFIG_INITRAMFS_ROOT_UID), -u $(CONFIG_INITRAMFS_ROOT_UID)) \
31 $(if $(CONFIG_INITRAMFS_ROOT_GID), -g $(CONFIG_INITRAMFS_ROOT_GID))
32
33# $(datafile_d_y) is used to identify all files included
34# in initramfs and to detect if any files are added/removed.
35# Removed files are identified by directory timestamp being updated
36# The dependency list is generated by gen_initramfs.sh -l

--- 21 unchanged lines hidden ---