Options for kernel and checker for configuration.nix

svn path=/nixpkgs/trunk/; revision=9371
This commit is contained in:
Michael Raskin
2007-09-25 19:03:07 +00:00
parent 218ec9ae8b
commit dd5daab9d1
3 changed files with 61 additions and 2 deletions

View File

@@ -22,8 +22,24 @@ configurePhase() {
cp $config .config
chmod u+w .config
echo --extraConfig--;
echo "${extraConfig}";
echo "$extraConfig" | while read; do
optionName=$( echo "$REPLY" | sed -e 's/[^A-Z_]//g' );
echo --optionName--;
echo "$REPLY";
echo ${optionName};
if [ -n "${optionName}" ]; then
sed -e s/.'*'${optionName}.'*'/"$REPLY/" -i .config
fi;
done;
echo "$extraConfig" >> .config
echo --finalConfig--
cat .config
#substituteInPlace scripts/kconfig/lxdialog/check-lxdialog.sh \
# --replace /usr /no-such-path