Blame scripts/reconfig.sh
|
Roland McGrath |
11487c5 |
#!/bin/bash
|
|
Roland McGrath |
11487c5 |
|
|
Roland McGrath |
11487c5 |
base_sublevel=$(grep "^%define base_sublevel" kernel.spec | head -n1 | awk '{ print $3 }')
|
|
Roland McGrath |
11487c5 |
|
|
Roland McGrath |
11487c5 |
#if [ `grep -c "^%define released_kernel 1" kernel.spec` -ge 1 ]; then
|
|
Roland McGrath |
11487c5 |
V=$base_sublevel
|
|
Roland McGrath |
11487c5 |
#else
|
|
Roland McGrath |
11487c5 |
# let V=$base_sublevel+1
|
|
Roland McGrath |
11487c5 |
#fi
|
|
Roland McGrath |
11487c5 |
|
|
Roland McGrath |
11487c5 |
cd kernel-2.6.$base_sublevel/linux-2.6.$base_sublevel.noarch/
|
|
Roland McGrath |
11487c5 |
rm -f kernel-*.config
|
|
Roland McGrath |
11487c5 |
cp ../../kernel-2.6.$V-*.config .
|
|
Roland McGrath |
11487c5 |
|
|
Roland McGrath |
11487c5 |
for i in kernel-*.config
|
|
Roland McGrath |
11487c5 |
do
|
|
Roland McGrath |
11487c5 |
echo $i
|
|
Roland McGrath |
11487c5 |
rm -f .config
|
|
Roland McGrath |
11487c5 |
cp $i .config
|
|
Roland McGrath |
11487c5 |
Arch=`head -1 .config | cut -b 3-`
|
|
Roland McGrath |
11487c5 |
make ARCH=$Arch nonint_oldconfig > /dev/null || exit 1
|
|
Roland McGrath |
11487c5 |
echo "# $Arch" > configs/$i
|
|
Roland McGrath |
11487c5 |
cat .config >> configs/$i
|
|
Roland McGrath |
11487c5 |
echo
|
|
Roland McGrath |
11487c5 |
done
|
|
Roland McGrath |
11487c5 |
|