huangcm
2024-08-24 fc4c8ccc838b61e008a4a83be4b26b05dc3603d0
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
#!/bin/bash
 
if [ x"$1" == "xu" ] ;then
   cd longan/brandy/brandy-2.0
   ./build.sh -p sun50iw10p1
   cd -
fi
 
if [ x"$1" == "xk" ] ;then
   cd longan && ./build.sh && cd -
            if [ $? -eq 0 ]; then
                echo "Build kernel ok!"
            else
                echo "Build kernel failed!"
                exit 1
            fi
   
   cd android
   . ./build/envsetup.sh
   lunch ceres_c3-userdebug
   extract-bsp && pack
   cd -
fi
 
if [ x"$1" == "xa" ] ;then    
   cd android
   . ./build/envsetup.sh
   lunch ceres_c3-userdebug
   extract-bsp
   make installclean
   make BUILD_NUMBER=ido-a133 -j32 && pack
#    make -j10 && pack -v
   cd -
fi
 
if [ x"$1" == "xp" ] ;then
   cd android
   . ./build/envsetup.sh
   lunch ceres_c3-userdebug
   extract-bsp && pack
   cd -
fi