]> git.baikalelectronics.ru Git - uboot.git/commit
env: do not fail on non-existing env.in file
authorAndrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
Sun, 3 Apr 2022 14:06:03 +0000 (16:06 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 4 Apr 2022 12:25:41 +0000 (08:25 -0400)
commitbc7c374ef13e273b0acacb4d34b95ce016ee2563
tree73f43cc765dc3959f8c69481b6dba0543c7d1b7e
parent7e2f7a0be65c5dec173f6af66a54f4bdc326b269
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: 673de390c485 ("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>
Makefile