forked from omegamoon/Rockchip-GPL-Kernel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_omegamoon_base
executable file
·37 lines (28 loc) · 1000 Bytes
/
build_omegamoon_base
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
#!/bin/bash
THREADS="6"
DEVICE="rk3066b_defconfig"
# Linaro gcc 4.8.2
TOOLCHAIN=./omegamoon/toolchain/linaro/bin/arm-linux-gnueabihf-
if [ "$1" != "" ]; then
THREADS="$1"
fi
if [ "$2" != "" ]; then
DEVICE="$2"
fi
#echo -e "\n========================================="
#echo -e " Forced rebuild of Mali driver..."
#echo -e "=========================================\n"
#rm drivers/gpu/mali/ump/.*.cmd
#rm drivers/gpu/mali/ump/*.o
#rm drivers/gpu/mali/mali/.*.cmd
#rm drivers/gpu/mali/mali/*.o
echo -e "\n========================================="
echo -e " Configuring kernel for ${DEVICE}"
echo -e "=========================================\n"
ARCH=arm CROSS_COMPILE=$TOOLCHAIN make $DEVICE
echo -e "\n========================================="
echo -e " Building kernel for ${DEVICE} with ${THREADS} thread(s)"
echo -e "=========================================\n"
ARCH=arm CROSS_COMPILE=$TOOLCHAIN make -j$THREADS
# kernel.img
./omegamoon/rkcrc -k ./arch/arm/boot/zImage ./kernel.img