Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 67e09db5 authored by Masahiro Yamada's avatar Masahiro Yamada Committed by Paul Burton
Browse files

MIPS: boot: fix build rule of vmlinux.its.S



As Documentation/kbuild/makefile.txt says, it is a typical mistake
to forget the FORCE prerequisite for the rule invoked by if_changed.

Add the FORCE to the prerequisite, but it must be filtered-out from
the files passed to the 'cat' command.  Because this rule generates
.vmlinux.its.S.cmd, vmlinux.its.S must be specified as targets so
that the .cmd file is included.

Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
Patchwork: https://patchwork.linux-mips.org/patch/19097/


Signed-off-by: default avatarPaul Burton <paul.burton@mips.com>
Cc: Kees Cook <keescook@chromium.org>
Cc: linux-kernel@vger.kernel.org
parent 321f95b6
Loading
Loading
Loading
Loading
+4 −2
Original line number Original line Diff line number Diff line
@@ -118,10 +118,12 @@ ifeq ($(ADDR_BITS),64)
	itb_addr_cells = 2
	itb_addr_cells = 2
endif
endif


targets += vmlinux.its.S

quiet_cmd_its_cat = CAT     $@
quiet_cmd_its_cat = CAT     $@
      cmd_its_cat = cat $^ >$@
      cmd_its_cat = cat $(filter-out $(PHONY), $^) >$@


$(obj)/vmlinux.its.S: $(addprefix $(srctree)/arch/mips/$(PLATFORM)/,$(ITS_INPUTS))
$(obj)/vmlinux.its.S: $(addprefix $(srctree)/arch/mips/$(PLATFORM)/,$(ITS_INPUTS)) FORCE
	$(call if_changed,its_cat)
	$(call if_changed,its_cat)


quiet_cmd_cpp_its_S = ITS     $@
quiet_cmd_cpp_its_S = ITS     $@