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

microblaze: remove the explicit removal of system.dtb

I guess

|| (rm -f $@ && echo false)

... should be

|| (rm -f $@ && false)

In fact, no Makefile needs to delete a target explicitly on error.

It is automatically done since commit 9c2af1c7377a ("kbuild: add
.DELETE_ON_ERROR special target").

I also reused equivalent cmd_shipped from scripts/Makefile.lib.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>

authored by

Masahiro Yamada and committed by
Michal Simek
19d111cc 52e79c4f

+1 -4
+1 -4
arch/microblaze/boot/dts/Makefile
··· 12 12 # Generate system.dtb from $(DTB).dtb 13 13 ifneq ($(DTB),system) 14 14 $(obj)/system.dtb: $(obj)/$(DTB).dtb 15 - $(call if_changed,cp) 15 + $(call if_changed,shipped) 16 16 endif 17 17 endif 18 - 19 - quiet_cmd_cp = CP $< $@$2 20 - cmd_cp = cat $< >$@$2 || (rm -f $@ && echo false) 21 18 22 19 # Rule to build device tree blobs 23 20 DTC_FLAGS := -p 1024