diff options
author | Jeroen Hofstee <jeroen@myspectrum.nl> | 2011-07-20 08:38:21 +0000 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-07-28 21:18:06 +0200 |
commit | 2901f8891d3d0a17b42c870947ab801d833d569e (patch) | |
tree | cb3decae06c5ce764e85e0e7e070ceb64c1e1a91 /mkconfig | |
parent | 5bce5dc33d6313ace88bef2081f71532c9e6a4f1 (diff) | |
download | u-boot-2901f8891d3d0a17b42c870947ab801d833d569e.tar.gz |
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 <jeroen@myspectrum.nl>
Cc: Marek Vasut <marek.vasut@gmail.com>
Acked-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'mkconfig')
-rwxr-xr-x | mkconfig | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |