Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

initramfs: specify $(src)/gen_initramfs.sh as a prerequisite in Makefile

Specify the dependency directly in the Makefile.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Greg Thelen <gthelen@google.com>

+4 -5
+3 -4
usr/Makefile
··· 24 24 # Generate the initramfs cpio archive 25 25 26 26 hostprogs-y := gen_init_cpio 27 - initramfs := $(CONFIG_SHELL) $(srctree)/$(src)/gen_initramfs.sh 28 27 ramfs-input := $(if $(filter-out "",$(CONFIG_INITRAMFS_SOURCE)), \ 29 28 $(shell echo $(CONFIG_INITRAMFS_SOURCE)),-d) 30 29 ramfs-args := \ ··· 39 40 endif 40 41 41 42 quiet_cmd_initfs = GEN $@ 42 - cmd_initfs = $(initramfs) -o $@ $(ramfs-args) $(ramfs-input) 43 + cmd_initfs = $(CONFIG_SHELL) $< -o $@ $(ramfs-args) $(ramfs-input) 43 44 44 45 targets := $(datafile_y) 45 46 ··· 51 52 # 2) There are changes in which files are included (added or deleted) 52 53 # 3) If gen_init_cpio are newer than initramfs_data.cpio 53 54 # 4) Arguments to gen_initramfs.sh changes 54 - $(obj)/$(datafile_y): $(obj)/gen_init_cpio $(deps_initramfs) FORCE 55 - $(Q)$(initramfs) -l $(ramfs-input) > $(obj)/$(datafile_d_y) 55 + $(obj)/$(datafile_y): $(src)/gen_initramfs.sh $(obj)/gen_init_cpio $(deps_initramfs) FORCE 56 + $(Q)$< -l $(ramfs-input) > $(obj)/$(datafile_d_y) 56 57 $(call if_changed,initfs) 57 58 58 59 subdir-$(CONFIG_UAPI_HEADER_TEST) += include
+1 -1
usr/gen_initramfs.sh
··· 235 235 case "$arg" in 236 236 "-l") # files included in initramfs - used by kbuild 237 237 dep_list="list_" 238 - echo "deps_initramfs := $0 \\" 238 + echo "deps_initramfs := \\" 239 239 shift 240 240 ;; 241 241 "-o") # generate compressed cpio image named $1