-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmake-config.sh
executable file
·64 lines (54 loc) · 1.45 KB
/
make-config.sh
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/bin/bash
#cp /boot/config-`uname -r` ./.config
case "$1" in
aw17r4)
echo "$1: Generating config for Dell Alienware 17R4"
echo "Cleaning old config"
make mrproper
make clean
cp ../confs/.config-aw17r4_mostly_generic ./.config # config aw17r4
# cp ../confs/.config-aw17r4_stripped_modules ./.config # config with stripped modules
;;
eeepc)
echo "$1: Generating config for Asus EEEPC"
echo "Cleaning old config"
make mrproper
make clean
cp ../confs/.config_eeepc-strippedmodules ./.config
;;
winpad12)
echo "$1: Generating config for Odys Winpad 12"
echo "Cleaning old config"
make mrproper
make clean
cp ../confs/.config-winpad12-strippedmodules ./.config
;;
probook650g3)
echo "$1: Generating config for HP ProBook 650 G3"
echo "Cleaning old config"
make mrproper
make clean
cp ../confs/.config_probook650g3-strippedmodules ./.config
;;
*)
echo "$1: Unknown Config. Aborting!"
echo "Usage: make-config.sh <target>"
echo "Possible targets: \"aw17r4\", \"eeepc\", \"winpad12\", \"probook650g3\""
exit -1
;;
esac
#make localmodconfig #Just include currently loaded modules
if [ "$2" == "upgrade" ]; then
echo "Upgrading config from previous kernelversion..."
make olddefconfig
else
echo "Using existing config without versionupgrade..."
make oldconfig
fi
if [ "$2" != "auto" ]; then
echo "Loading menuconfig in case you want to change something..."
make menuconfig
else
echo "$2 is given. omitting menuconfig..."
fi
make prepare