rusefi-1/misc/jenkins/compile_other_versions/compile_and_upload.bat

42 lines
878 B
Batchfile
Raw Normal View History

2019-06-07 16:50:46 -07:00
set COMPILE_FOLDER=%1
2019-06-08 07:57:41 -07:00
set bundle_name=%2
2019-06-09 18:08:19 -07:00
set ini_file_override=%3
set rusefi_console_settings=%4
2019-06-07 16:50:46 -07:00
2019-06-08 07:35:16 -07:00
set script_name=combile_and_upload.bat
echo Entering %script_name% with 1=%COMPILE_FOLDER% 2=%bundle_name% 3=%ini_file_override% 4=%rusefi_console_settings%
2019-06-07 16:50:46 -07:00
if %COMPILE_FOLDER%.==. (
echo COMPILE_FOLDER parameter expected
exit -1
)
2019-06-08 07:57:41 -07:00
if %bundle_name%.==. (
echo bundle_name parameter expected
2019-06-07 16:50:46 -07:00
exit -1
)
2019-06-08 07:57:41 -07:00
set COMPILE_SCRIPT=!compile-%bundle_name%.bat
2019-06-07 16:50:46 -07:00
cd firmware
call clean.bat
cd ..
2019-06-07 16:57:00 -07:00
cd firmware\config\boards
2019-06-07 16:54:15 -07:00
pwd
2019-06-07 16:50:46 -07:00
cd %COMPILE_FOLDER%
2019-06-07 16:54:15 -07:00
pwd
echo Invoking %COMPILE_SCRIPT%
2019-06-07 16:50:46 -07:00
call %COMPILE_SCRIPT%
2019-06-08 07:35:16 -07:00
if not exist build/rusefi.hex echo Just to confirm - FAILED to compile with %COMPILE_SCRIPT%
if not exist build/rusefi.hex exit -1
2019-06-07 16:50:46 -07:00
2019-06-08 07:35:16 -07:00
cd ..
rem We are back at root rusEfi folder
2019-06-07 16:50:46 -07:00
pwd
2019-06-08 07:57:41 -07:00
2019-11-20 16:46:46 -08:00
call misc\jenkins\compile_other_versions\prepare_bundle.bat
2019-06-08 07:57:41 -07:00
2019-06-07 16:50:46 -07:00
echo "exiting %script_name%"