From: Rasmus Villemoes Date: Wed, 28 Aug 2019 11:00:46 +0000 (+0000) Subject: Makefile: fix newline escaping for CONFIG_DEFAULT_ENV_FILE X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=47e8ee6b39a47dc0bbde43049dc83dbc48dcdb56;p=u-boot.git Makefile: fix newline escaping for CONFIG_DEFAULT_ENV_FILE I wanted this to be compatible with mkenvimage, including the ability to embed newlines in variables by escaping them. But I failed to check that it works more than once. Fixes: f3d8f7dd73a (Allow providing default environment from file) Signed-off-by: Rasmus Villemoes --- diff --git a/Makefile b/Makefile index 0570d02e5d..c02accfc26 100644 --- a/Makefile +++ b/Makefile @@ -1700,7 +1700,7 @@ define filechk_defaultenv.h (grep -v '^#' | \ grep -v '^$$' | \ tr '\n' '\0' | \ - sed -e 's/\\\x0/\n/' | \ + sed -e 's/\\\x0/\n/g' | \ xxd -i ; echo ", 0x00" ; ) endef