summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>2022-04-03 16:06:03 +0200
committerTom Rini <trini@konsulko.com>2022-04-04 08:25:41 -0400
commite75c5b9386c57cdd54149e82ca39e960819cf207 (patch)
tree73f43cc765dc3959f8c69481b6dba0543c7d1b7e
parent182887735c16aaa2139517b60c1b8dbc62cedef1 (diff)
downloadu-boot-e75c5b9386c57cdd54149e82ca39e960819cf207.tar.gz
u-boot-e75c5b9386c57cdd54149e82ca39e960819cf207.tar.bz2
u-boot-e75c5b9386c57cdd54149e82ca39e960819cf207.zip
env: do not fail on non-existing env.in file
If include/generated/env.in does not exist, which is a typical case for clean build, quiet_cmd_gen_envp command tries to delete this file unconditionally. This produces following warning during the build: ENVP include/generated/env.in rm: cannot remove 'include/generated/env.in': No such file or directory Add '-f' option to the `rm` command to not complain if file does not exist. Fixes: f432eb6d8a9d ("env: Avoid using a leftover text-environment file") Reviewed-by: Sean Anderson <seanga2@gmail.com> Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 4672147318..868445bf33 100644
--- a/Makefile
+++ b/Makefile
@@ -1846,7 +1846,7 @@ quiet_cmd_gen_envp = ENVP $@
-I$(srctree)/arch/$(ARCH)/include \
$< -o $@; \
else \
- rm $@; \
+ rm -f $@; \
touch $@ ; \
fi
include/generated/env.in: include/generated/env.txt FORCE