Files
banban/ql-bootloader/boot33/build_bootloader_QUECTEL_OCPU_1603.bat

83 lines
2.5 KiB
Batchfile
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
::Note
::MUST excute build_all.bat in DS-5 env.
::Turn off the echo from this line
@echo off
if "%1%"=="clean" (
if exist release rd /s /q release
goto SUCCESS
)
::固定为disable
set DMCHAGE=disable
::4m 2m一般为disable,除非客户有logo 要求 可以打开 1:enable 0:disable
set LOGO_SUPPORT=enable
::是否使能secboot 功能 1:enable 0:disable
set SECBOOT_V2_SUPPORT=disable
::是否为open版本,OCPU
set QUECTEL_PROJ=OCPU
::1603为cranem,singlesim为单卡,spinorsupport为外挂flash
set PL_TYPE=CRANEM_SINGLESIM_SPINOR_SUPPORT
::是否使能fota功能 1:enable 0:disable
set DM_FOTA=enable
::updater是否存放在本地还是服务器
::在空间紧张情况下,可以将updater放在服务器上,然后修改FOTA_NO_UPDATER为enable
set FOTA_NO_UPDATER=enable
set compile_tools_dir=..\..\ql-cross-tool\win32\owtoolchain
if "%QUECTEL_COMPILE_TOOLS_V1%"=="" (
set QUECTEL_COMPILE_TOOLS_V1=%compile_tools_dir%
)
set COMPILE_TOOLS_PATH=%QUECTEL_COMPILE_TOOLS_V1%;%QUECTEL_COMPILE_TOOLS_V1%\ARM_Compiler_5\bin;%QUECTEL_COMPILE_TOOLS_V1%\Perl\site\bin;%QUECTEL_COMPILE_TOOLS_V1%\Perl\bin;%QUECTEL_COMPILE_TOOLS_V1%\gnumake;%PATH%;
if "%COMPILE_ENV_SET_FLAG%"=="" echo --------------set compile tools path------------------- && set PATH=%COMPILE_TOOLS_PATH% && set COMPILE_ENV_SET_FLAG=done
set ARMLMD_LICENSE_FILE=%QUECTEL_COMPILE_TOOLS_V1%\license.dat
::create release directory
if not exist release md release
del /s /q /f release\*
::open comment(goto START and goto SUCCESS) to control build specilize boot33*.bin
::goto START
gnumake clean
gnumake feedback
gnumake
if exist *.bin copy /Y *.bin release\
if exist *.axf copy /Y *.axf release\
if exist *.map copy /Y *.map release\
::check file exist in release?
if not exist release\*.bin goto ERROR
if not exist release\*.axf goto ERROR
if not exist release\*.map goto ERROR
python scatter_craneL_check.py release
if %errorlevel% equ 0 (
goto SUCCESS
) else (
goto ERROR
)
:ERROR
::gnumake clean
echo ****************************************************************
echo *********************** ERROR ********************************
echo ****************************************************************
goto END
:SUCCESS
gnumake clean
echo ****************************************************************
echo *********************** SUCCESS ******************************
echo ****************************************************************
:END