Skip to content

Commit a2183c0

Browse files
committed
initramfs: replace klibcdirs in Makefile with FORCE
'klibcdirs' was added by commit d39a206 ("kbuild: rebuild initramfs if content of initramfs changes"). If this is just a matter of forcing execution of the recipe line, we can replace it with FORCE. The following code is currently useless: $(deps_initramfs): klibcdirs The original intent could be a hook for the klibc integration into the kernel tree, but klibc is a separate project, which can be built independently. Clean it up. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Reviewed-by: Greg Thelen <gthelen@google.com>
1 parent 9945722 commit a2183c0

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

‎usr/Makefile‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
# kbuild file for usr/ - including initramfs image
44
#
55

6-
klibcdirs:;
7-
PHONY += klibcdirs
8-
96
suffix_y = $(subst $\",,$(CONFIG_INITRAMFS_COMPRESSION))
107
datafile_y = initramfs_data.cpio$(suffix_y)
118
datafile_d_y = .$(datafile_y).d
@@ -50,13 +47,12 @@ targets := $(datafile_y)
5047
# do not try to update files included in initramfs
5148
$(deps_initramfs): ;
5249

53-
$(deps_initramfs): klibcdirs
5450
# We rebuild initramfs_data.cpio if:
5551
# 1) Any included file is newer than initramfs_data.cpio
5652
# 2) There are changes in which files are included (added or deleted)
5753
# 3) If gen_init_cpio are newer than initramfs_data.cpio
5854
# 4) Arguments to gen_initramfs.sh changes
59-
$(obj)/$(datafile_y): $(obj)/gen_init_cpio $(deps_initramfs) klibcdirs
55+
$(obj)/$(datafile_y): $(obj)/gen_init_cpio $(deps_initramfs) FORCE
6056
$(Q)$(initramfs) -l $(ramfs-input) > $(obj)/$(datafile_d_y)
6157
$(call if_changed,initfs)
6258

0 commit comments

Comments
 (0)