summaryrefslogtreecommitdiffstats
path: root/buildkernel
blob: 7e4b8048fa6d6b2be162d75200f85cfb880423c5 (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
27
28
29
30
31
32
33
34
35
#!/bin/bash
set -x

#export KCFLAGS="-march=k8 -O2 -pipe"

ARCH=x86
BUILD="/media/Sentinel/zen/zen-stable/"
echo "Copy your config file to $BUILD as .config"
read
make prepare
echo "Running menuconfig"
echo "Skip menuconfig Y/n"
read yesno
[[ $yesno == "n" ]] && make menuconfig
#echo "Running general config"
#read
#make config
read
kernver="$(make kernelrelease)"
echo "Kernel version $kernver"
read
echo "Building bzImage!"
read
make -j3 bzImage modules || exit 1
#echo "Building modules!"
#read
#make -j3 modules

echo "Steps after this affects ur system"
read
echo "Sure?"
read

sudo ./installkernel "$kernver"
set +x