mirror of
https://xff.cz/git/u-boot/
synced 2025-09-26 21:11:18 +02:00
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>
This commit is contained in:
committed by
Wolfgang Denk
parent
5bce5dc33d
commit
2901f8891d
2
mkconfig
2
mkconfig
@@ -148,7 +148,7 @@ fi
|
|||||||
echo "/* Automatically generated - do not edit */" >>config.h
|
echo "/* Automatically generated - do not edit */" >>config.h
|
||||||
|
|
||||||
for i in ${TARGETS} ; do
|
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 ;
|
echo "#define CONFIG_${i}" >>config.h ;
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user