blob: d9e8fa7c34b98f10cc7880e207dcd4a8aa067586 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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
|