forked from adam8157/kernel-studio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install
executable file
·59 lines (45 loc) · 1.56 KB
/
install
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
#!/bin/bash
# source directories
LINUX=$1
BUSYBOX=$2
# setting up linux source tree
if [ ! -d $LINUX ]
then
read -p "Linux source doesn't exist, git clone it from kernel.org? [y/N] " REPLY
case $REPLY in
y | Y)
git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git $LINUX
;;
*)
echo "So, please prepare linux source(in a directory named $LINUX) by yourself."
exit 1
;;
esac
fi
make -C $LINUX defconfig
${LINUX}/scripts/config --file ${LINUX}/.config --enable CONFIG_EXPERIMENTAL
${LINUX}/scripts/config --file ${LINUX}/.config --enable CONFIG_DEBUG_INFO
${LINUX}/scripts/config --file ${LINUX}/.config --enable CONFIG_KGDB
${LINUX}/scripts/config --file ${LINUX}/.config --enable CONFIG_KGDB_SERIAL_CONSOLE
${LINUX}/scripts/config --file ${LINUX}/.config --disable CONFIG_DEBUG_RODATA
yes "" | make -C $LINUX oldconfig
# setting up busybox source tree
if [ ! -d $BUSYBOX ]
then
read -p "Busybox source doesn't exist, git clone it from busybox.net? [y/N] " REPLY
case $REPLY in
y | Y)
git clone git://git.busybox.net/busybox $BUSYBOX
;;
*)
echo "So, please prepare busybox source(in a directory named $BUSYBOX) by yourself."
exit 1
;;
esac
fi
make -C $BUSYBOX defconfig
${LINUX}/scripts/config --file ${BUSYBOX}/.config --enable CONFIG_STATIC
${LINUX}/scripts/config --file ${BUSYBOX}/.config --enable CONFIG_INSTALL_NO_USR
${LINUX}/scripts/config --file ${BUSYBOX}/.config --disable CONFIG_INETD
${LINUX}/scripts/config --file ${BUSYBOX}/.config --disable CONFIG_FEATURE_MOUNT_NFS
yes "" | make -C $BUSYBOX oldconfig