Commit 19d111cc authored by Masahiro Yamada's avatar Masahiro Yamada Committed by Michal Simek

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 9c2af1c7 ("kbuild: add
.DELETE_ON_ERROR special target").

I also reused equivalent cmd_shipped from scripts/Makefile.lib.
Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
parent 52e79c4f
...@@ -12,12 +12,9 @@ $(obj)/linked_dtb.o: $(obj)/system.dtb ...@@ -12,12 +12,9 @@ $(obj)/linked_dtb.o: $(obj)/system.dtb
# Generate system.dtb from $(DTB).dtb # Generate system.dtb from $(DTB).dtb
ifneq ($(DTB),system) ifneq ($(DTB),system)
$(obj)/system.dtb: $(obj)/$(DTB).dtb $(obj)/system.dtb: $(obj)/$(DTB).dtb
$(call if_changed,cp) $(call if_changed,shipped)
endif endif
endif endif
quiet_cmd_cp = CP $< $@$2
cmd_cp = cat $< >$@$2 || (rm -f $@ && echo false)
# Rule to build device tree blobs # Rule to build device tree blobs
DTC_FLAGS := -p 1024 DTC_FLAGS := -p 1024
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment