diff options
author | Roland McGrath <roland@redhat.com> | 2010-07-29 19:24:43 -0700 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 2010-07-29 19:24:43 -0700 |
commit | 11487c5358c414c73bcfd9c850d469fba081f18c (patch) | |
tree | 37772c24c3e6aea1f9afc12f2ff89c9ae58e15cc /scripts/reconfig.sh | |
parent | 7f2b706ac8d669475df57714364a00361ae3072f (diff) | |
download | kernel-11487c5358c414c73bcfd9c850d469fba081f18c.tar.gz kernel-11487c5358c414c73bcfd9c850d469fba081f18c.tar.xz kernel-11487c5358c414c73bcfd9c850d469fba081f18c.zip |
Restore README.txt, scripts.
Diffstat (limited to 'scripts/reconfig.sh')
-rwxr-xr-x | scripts/reconfig.sh | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/scripts/reconfig.sh b/scripts/reconfig.sh new file mode 100755 index 000000000..d9e8fa7c3 --- /dev/null +++ b/scripts/reconfig.sh @@ -0,0 +1,26 @@ +#!/bin/bash + +base_sublevel=$(grep "^%define base_sublevel" kernel.spec | head -n1 | awk '{ print $3 }') + +#if [ `grep -c "^%define released_kernel 1" kernel.spec` -ge 1 ]; then + V=$base_sublevel +#else +# let V=$base_sublevel+1 +#fi + +cd kernel-2.6.$base_sublevel/linux-2.6.$base_sublevel.noarch/ +rm -f kernel-*.config +cp ../../kernel-2.6.$V-*.config . + +for i in kernel-*.config +do + echo $i + rm -f .config + cp $i .config + Arch=`head -1 .config | cut -b 3-` + make ARCH=$Arch nonint_oldconfig > /dev/null || exit 1 + echo "# $Arch" > configs/$i + cat .config >> configs/$i + echo +done + |