feat: establish OTA-ready fs640 factory baseline
This commit is contained in:
+18
-1
@@ -1,9 +1,12 @@
|
||||
@echo off
|
||||
set CURDIR=%~dp0
|
||||
for /f %%i in ('powershell -NoProfile -Command "Get-Date -Format yyyyMMddHHmmss"') do set appbuildtime=%%i
|
||||
for /f %%i in ('powershell -NoProfile -Command "Get-Date -Format yyyyMMddHHmmss"') do set appbuildtime=%%i
|
||||
set appbuildrev=NULL
|
||||
set appbuildmodel=EG800AKCN_11LG
|
||||
set appbuildver=beta1
|
||||
set otalayoutid=eg800akcn_11lg-fs640-app2c2000
|
||||
set otabuildprofile=ota_ready_fs640
|
||||
set pythonexe=ql-cross-tool\win32\owtoolchain\Python\python.exe
|
||||
|
||||
if /i not "%1" == "" (
|
||||
set appbuildver=%1
|
||||
@@ -18,14 +21,28 @@ echo #define CUSTOM_APP_BUILD_TIME "%appbuildtime%" >> ql-applicati
|
||||
echo #define CUSTOM_APP_BUILD_REV "%appbuildrev%" >> ql-application\threadx\interface\custom_app\lib\hal\build_macro.h
|
||||
echo #define CUSTOM_APP_BUILD_MODEL "%appbuildmodel%" >> ql-application\threadx\interface\custom_app\lib\hal\build_macro.h
|
||||
echo #define CUSTOM_APP_BUILD_VER "%appbuildver%" >> ql-application\threadx\interface\custom_app\lib\hal\build_macro.h
|
||||
echo #define CUSTOM_APP_OTA_LAYOUT_ID "%otalayoutid%" >> ql-application\threadx\interface\custom_app\lib\hal\build_macro.h
|
||||
echo #define CUSTOM_APP_OTA_BUILD_PROFILE "%otabuildprofile%" >> ql-application\threadx\interface\custom_app\lib\hal\build_macro.h
|
||||
echo #endif >> ql-application\threadx\interface\custom_app\lib\hal\build_macro.h
|
||||
|
||||
"%pythonexe%" tools\verify_ota_ready_baseline.py
|
||||
if errorlevel 1 (
|
||||
echo "OTA-ready baseline source verification failed"
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
call build.bat project_name -p EG800AKCN_11LG -b NO_EXTFLASH -x XIP -c %appbuildmodel%
|
||||
call build.bat clean
|
||||
call build.bat app
|
||||
call build.bat kernel
|
||||
call build.bat firmware
|
||||
|
||||
"%pythonexe%" tools\verify_ota_ready_baseline.py --app-bin ql-application\threadx\build\app.bin
|
||||
if errorlevel 1 (
|
||||
echo "OTA-ready baseline artifact verification failed"
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
if exist "target\%appbuildmodel%.zip" (
|
||||
mkdir target\%appbuildmodel%\fota\
|
||||
mkdir target\%appbuildmodel%\fota\a
|
||||
|
||||
Reference in New Issue
Block a user