Skip to content

Commit edf6947

Browse files
Nicolas PitreMichal Marek
authored andcommitted
kbuild: Fix dependencies for final vmlinux link
The if_changed directive is useless against phony targets. Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Fixes: 2441e78 ("kbuild: better abstract vmlinux sequential prerequisites") Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org> Signed-off-by: Michal Marek <mmarek@suse.cz>
1 parent 2441e78 commit edf6947

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -953,7 +953,7 @@ include/generated/autoksyms.h: FORCE
953953
cmd_link-vmlinux = $(CONFIG_SHELL) $< $(LD) $(LDFLAGS) $(LDFLAGS_vmlinux)
954954
quiet_cmd_link-vmlinux = LINK $@
955955

956-
vmlinux: scripts/link-vmlinux.sh vmlinux_prereq FORCE
956+
vmlinux: scripts/link-vmlinux.sh vmlinux_prereq $(vmlinux-deps) FORCE
957957
+$(call if_changed,link-vmlinux)
958958

959959
# Build samples along the rest of the kernel

0 commit comments

Comments
 (0)