SET BUILD_ROOT_DIR=%~dp0
build_dir=`dirname $0`
set TARGET_FAMILY=8x10
set BUILD_ID=DAAAANAZ
@echo off
cls
title Build 8X10 modem
:menu
cls
color 0A
echo.
echo ==============================
echo 请选择要进行的操作,然后按回车
echo ==============================
echo. %build_dir%
echo 1. boot_images
echo.
echo 2.trustzone_images
echo.
echo 3.rpm_proc
echo.
echo 4.build_image
echo.
echo 5.common
echo.
echo Q.quit
echo.
echo.
:cho
set choice=
set /p choice= 请选择:
IF NOT "%choice%"=="" SET choice=%choice:~0,1%
if /i "%choice%"=="1" goto boot_images
if /i "%choice%"=="2" goto trustzone_images
if /i "%choice%"=="3" goto rpm_proc
if /i "%choice%"=="4" goto build_image
if /i "%choice%"=="5" goto common
if /i "%choice%"=="Q" goto endd
echo 选择无效,请重新输入
echo.
goto cho
echo "building 8x10"
echo %0
set target_root = .
@echo off
:build all
echo building all the modem img.
goto boot_images
goto trustzone_images
goto rpm_proc
goto build_image
goto common
echo build all done !
REM cd %target_root%/modem_proc/build/ms
REM build.cmd 8x10.gen BUILD_ID=BAAAANAZ BUILD_VER=0001059
REM goto :eof
:boot_images
echo ****************************************************************************
cd %BUILD_ROOT_DIR%\boot_images\build\ms
build.cmd TARGET_FAMILY=8x10 BUILD_ID=DAAAANAZ
cd %BUILD_ROOT_DIR%
echo ****************************************************************************
echo ****************************************************************************
:trustzone_images
cd %BUILD_ROOT_DIR%\trustzone_images\build\ms
build.cmd CHIPSET=msm8x10 tz
cd %BUILD_ROOT_DIR%
:rpm_proc
echo ****************************************************************************
cd %target_root%\rpm_proc\build
build_8x10.bat
cd %BUILD_ROOT_DIR%
echo ****************************************************************************
:build_image
cd %target_root%\build_image\build\ms
build.cmd TARGET_FAMILY =8x10 sdi BUILD_ID=DAAAANAZ BUILD_VER=1 BUILD_MIN=1
cd %BUILD_ROOT_DIR%
:common
echo ****************************************************************************
cd %target_root%/common/build.
python update_common_info.py
echo "building 8x10 done !"
echo ****************************************************************************
:endd
exit
pause