* Kernel configuration for Linux 2.6.23.

* More compact way to override kernel configuration options, e.g.
  extraFlags = ["CONFIG_NO_HZ=y" "# CONFIG_IRQBALANCE is not set"];

svn path=/nixpkgs/trunk/; revision=9562
This commit is contained in:
Eelco Dolstra
2007-10-31 14:39:43 +00:00
parent 16d701c9ab
commit dbc1928af6
9 changed files with 7886 additions and 141 deletions

View File

@@ -22,24 +22,21 @@ configurePhase() {
cp $config .config
chmod u+w .config
echo --extraConfig--;
echo "${extraConfig}";
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" | 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
@@ -49,6 +46,9 @@ configurePhase() {
make oldconfig \
$makeFlags "${makeFlagsArray[@]}"
echo --finalConfig--
cat .config
}