[U-Boot] [PATCH] Makefile: fix processing of default environment file
Samuel Mescoff
samuel at mescoff.fr
Mon Apr 15 10:28:26 UTC 2019
Allow the default environment file to contain long lines split into
multiples lines.
Leading white spaces can be added for readability as well.
Signed-off-by: Samuel Mescoff <samuel at mescoff.fr>
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 2824a6e159..d11ee021ca 100644
--- a/Makefile
+++ b/Makefile
@@ -1660,7 +1660,7 @@ define filechk_defaultenv.h
(grep -v '^#' | \
grep -v '^$$' | \
tr '\n' '\0' | \
- sed -e 's/\\\x0/\n/' | \
+ sed -e 's/\\\x0\s*//g' | \
xxd -i ; echo ", 0x00" ; )
endef
--
2.20.1
More information about the U-Boot
mailing list