-
Notifications
You must be signed in to change notification settings - Fork 1
/
mkkernels.sh
executable file
·55 lines (40 loc) · 1.13 KB
/
mkkernels.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
#!/bin/sh
# This script will make kernels, and then package them for release.
PRODUCT1=KangBang-BFS-Kernel
PRODUCT2=KangBang-CFS-Kernel
# PRODUCT3=<insert product name>
T=$PWD
echo "Gon' make some kernels!"
# Clean up out files from last build if they exist
echo "Cleaning up"
rm -rf $T/out
mkdir -p $T/out
# Product 1 setup
echo "Now building $PRODUCT1 and packaging"
./build-scripts/$PRODUCT1.sh
if [ -f $T/out/$PRODUCT1/kernel/zImage ];
then
echo "$PRODUCT1 found"
else
echo "$PRODUCT1 did not compile successfully, please fix your shit"
fi
# Product 2 setup
echo "Now building $PRODUCT2 and packaging"
./build-scripts/$PRODUCT2.sh
if [ -f $T/out/$PRODUCT2/kernel/zImage ];
then
echo "$PRODUCT2 found"
else
echo "$PRODUCT2 did not compile successfully, please fix your shit"
fi
# Product 3 setup
# echo "Now building $PRODUCT3 and packaging"
# ./build-scripts/$PRODUCT3.sh
# if [ -f $T/out/$PRODUCT3/kernel/zImage ];
# then
# echo "$PRODUCT3 found"
# else
# echo "$PRODUCT3 did not compile successfully, please fix your shit"
# fi
echo "All kernels are done..."
exit 0