]> git.baikalelectronics.ru Git - kernel.git/commitdiff
s390/purgatory: remove duplicated build rule of kexec-purgatory.o
authorMasahiro Yamada <masahiroy@kernel.org>
Mon, 13 Jun 2022 17:09:02 +0000 (02:09 +0900)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Thu, 30 Jun 2022 12:18:16 +0000 (14:18 +0200)
This is equivalent to the pattern rule in scripts/Makefile.build.

Having the dependency on $(obj)/purgatory.ro is enough.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Link: https://lore.kernel.org/r/20220613170902.1775211-3-masahiroy@kernel.org
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
arch/s390/purgatory/Makefile

index 3e2c17ba04defea9ec07f249184518f9396a2d18..d237bc6841cb8608c2bb3118d549d8f9bf9c7c5b 100644 (file)
@@ -48,7 +48,6 @@ OBJCOPYFLAGS_purgatory.ro += --remove-section='.note.*'
 $(obj)/purgatory.ro: $(obj)/purgatory $(obj)/purgatory.chk FORCE
                $(call if_changed,objcopy)
 
-$(obj)/kexec-purgatory.o: $(obj)/kexec-purgatory.S $(obj)/purgatory.ro FORCE
-       $(call if_changed_rule,as_o_S)
+$(obj)/kexec-purgatory.o: $(obj)/purgatory.ro
 
 obj-y += kexec-purgatory.o