From: Samuel Mescoff <samuel@mescoff.fr>
Date: Mon, 15 Apr 2019 10:28:26 +0000 (+0200)
Subject: Makefile: fix processing of default environment file
X-Git-Tag: v2025.01-rc5-pxa1908~2532^2~12
X-Git-Url: http://git.dujemihanovic.xyz/img/static/html/index.html?a=commitdiff_plain;h=4b7f5f3e75841b115caacef5983a9cc681521ec7;p=u-boot.git

Makefile: fix processing of default environment file

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@mescoff.fr>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
---

diff --git a/Makefile b/Makefile
index 55aa90cf17..07539ca596 100644
--- a/Makefile
+++ b/Makefile
@@ -1830,7 +1830,7 @@ define filechk_defaultenv.h
 	(grep -v '^#' | \
 	 grep -v '^$$' | \
 	 tr '\n' '\0' | \
-	 sed -e 's/\\\x0/\n/g' | \
+	 sed -e 's/\\\x0\s*//g' | \
 	 xxd -i ; echo ", 0x00" ; )
 endef