[PATCH] env: Fix avoid using a leftover text-environment file

Marek Vasut marex at denx.de
Mon Apr 4 01:17:12 CEST 2022


Clean build ends up generating the following error, add -f switch to rm
to mitigate it:
"
rm: cannot remove 'include/generated/env.in': No such file or directory
"

Fixes: f432eb6d8a9 ("env: Avoid using a leftover text-environment file")
Cc: Sean Anderson <seanga2 at gmail.com>
Cc: Simon Glass <sjg at chromium.org>
Cc: Tom Rini <trini at konsulko.com>
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 4672147318e..868445bf33c 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
-- 
2.35.1



More information about the U-Boot mailing list