summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2020-04-30 14:13:54 +0900
committerSascha Hauer <s.hauer@pengutronix.de>2020-05-04 09:00:34 +0200
commit7ec32876a47508d1808a7b98531b68378ffda0a4 (patch)
tree21f64aea265b72d6d1ae08faf8d1d3787624292b /Makefile
parentf967e7b4b284e69d513eb8ae8a05b282ec9b91e9 (diff)
downloadbarebox-7ec32876a47508d1808a7b98531b68378ffda0a4.tar.gz
barebox-7ec32876a47508d1808a7b98531b68378ffda0a4.tar.xz
kbuild: do not delete $@ explicitly on failure
The .DELETE_ON_ERROR special target is specified in scripts/Kbuild.include You do not need to delete $@ explicitly when the command fails. GNU Make automatically does it. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 1 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index de9b40ade8..967c279093 100644
--- a/Makefile
+++ b/Makefile
@@ -643,11 +643,7 @@ define rule_barebox__
$(Q)$(if $($(quiet)cmd_sysmap), \
echo ' $($(quiet)cmd_sysmap) System.map' &&) \
- $(cmd_sysmap) $@ System.map; \
- if [ $$? -ne 0 ]; then \
- rm -f $@; \
- false; \
- fi;
+ $(cmd_sysmap) $@ System.map
endef
ifdef CONFIG_KALLSYMS