aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRasmus Villemoes <rasmus.villemoes@prevas.dk>2019-08-28 11:00:46 +0000
committerTom Rini <trini@konsulko.com>2019-08-31 09:27:24 -0400
commit47e8ee6b39a47dc0bbde43049dc83dbc48dcdb56 (patch)
treef5ff4b95ab0ee1853f57353dabecde12c45b5844 /Makefile
parent296439e0b1670217f07d00bcd5d60be00b9bca70 (diff)
downloadu-boot-47e8ee6b39a47dc0bbde43049dc83dbc48dcdb56.zip
u-boot-47e8ee6b39a47dc0bbde43049dc83dbc48dcdb56.tar.gz
u-boot-47e8ee6b39a47dc0bbde43049dc83dbc48dcdb56.tar.bz2
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 <rasmus.villemoes@prevas.dk>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 0570d02..c02accf 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