From 2901f8891d3d0a17b42c870947ab801d833d569e Mon Sep 17 00:00:00 2001 From: Jeroen Hofstee Date: Wed, 20 Jul 2011 08:38:21 +0000 Subject: [PATCH] mkconfig: also create CONFIG defines with BSD sed Parsing of boards.cfg fails on FreeBSD with the error: sed: 1: "/=/ {s/=/\t/;q } ; { s/ ...": extra characters at the end of q command BSD sed expects commands to be on seperate 'lines', hence it expects an additional ; before the closing brackets. BSD sed does not support \t, replaced by literal tab. Signed-off-by: Jeroen Hofstee Cc: Marek Vasut Acked-by: Mike Frysinger --- mkconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mkconfig b/mkconfig index 6ff533f339..ecb6d4ef4f 100755 --- a/mkconfig +++ b/mkconfig @@ -148,7 +148,7 @@ fi echo "/* Automatically generated - do not edit */" >>config.h for i in ${TARGETS} ; do - i="`echo ${i} | sed '/=/ {s/=/\t/;q } ; { s/$/\t1/ }'`" + i="`echo ${i} | sed '/=/ {s/=/ /;q; } ; { s/$/ 1/; }'`" echo "#define CONFIG_${i}" >>config.h ; done -- 2.39.5