From 22631b47c9e9052ebc7bdc07fa77b474bccc1312 Mon Sep 17 00:00:00 2001 From: huangcm <1263938474@qq.com> Date: Mon, 25 Nov 2024 09:40:28 +0000 Subject: [PATCH] feat(app): add CalculateTest app --- build.sh | 69 ++++++++++++++++++---------------- 1 files changed, 36 insertions(+), 33 deletions(-) diff --git a/build.sh b/build.sh index fa2c03b..b703a2c 100755 --- a/build.sh +++ b/build.sh @@ -1,43 +1,46 @@ #!/bin/bash -if [ x"$1" == "xu" ] ;then - cd longan/brandy/brandy-2.0 - ./build.sh -p sun50iw10p1 - cd - +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" == "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 - +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 -if [ x"$1" == "xa" ] ;then - cd android - . ./build/envsetup.sh - lunch ceres_c3-userdebug - extract-bsp +# 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 && pack -# make -j10 && pack -v - cd - + make BUILD_NUMBER=ido-a133 -j32 + cd - fi -if [ x"$1" == "xp" ] ;then - cd android - . ./build/envsetup.sh - lunch ceres_c3-userdebug - extract-bsp && pack - cd - -fi +# pack image +echo "Start pack image" +cd android +pack +cd - + -- Gitblit v1.6.2