xie
2024-11-23 3fdfdea0721fe7a36f6aaa509075f01a194f6748
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
#!/bin/bash
 
if [ x"$1" == "xuboot" ] || [ x"$1" == "xu" ] || [ x"$1" == "x" ] ;then
  echo "Start build uboot"
   cd longan/brandy/brandy-2.0 && ./build.sh -p sun50iw10p1 && cd -
  if [ $? -eq 0 ]; then
    echo "Build uboot ok!"
  else
    echo "Build uboot failed!"
    exit 1
  fi
fi
 
if [ x"$1" == "xkernel" ] || [ x"$1" == "xk" ] || [ x"$1" == "x" ] ;then
  echo "Start build kernel"
   cd longan && ./build.sh autoconfig -o android -i a133 -b c3 && ./build.sh && cd -
  if [ $? -eq 0 ]; then
    echo "Build kernel ok!"
  else
    echo "Build kernel failed!"
    exit 1
  fi
fi
 
# android envsetup
cd android
. ./build/envsetup.sh
lunch ceres_c3-userdebug
extract-bsp
cd -
 
if [ x"$1" == "xandroid" ] || [ x"$1" == "xa" ] || [ x"$1" == "x" ] ;then    
  echo "Start build Android"
  cd android
   make installclean
   make BUILD_NUMBER=ido-a133 -j32
  cd -
fi
 
# pack image
echo "Start pack image"
cd android
pack
cd -