-
Notifications
You must be signed in to change notification settings - Fork 56
/
build_omegamoon_base
executable file
·40 lines (30 loc) · 1.13 KB
/
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
38
39
40
#!/bin/bash
THREADS="6"
DEVICE="rk3066b_defconfig"
# Linaro gcc 4.8.2
TOOLCHAIN=./omegamoon/toolchain/linaro/bin/arm-linux-gnueabihf-
# gcc version 4.6.x-google 20120106 (prerelease)
#TOOLCHAIN=../omegamoon/toolchain/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/arm-linux-androideabi-
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