mirror of
https://github.com/OneOfEleven/uv-k5-firmware-custom.git
synced 2025-06-20 06:58:39 +03:00
Disable scan timeout compile option, updated win_make.bat to help path problems
This commit is contained in:
20
win_make.bat
20
win_make.bat
@ -1,10 +1,14 @@
|
||||
|
||||
:: Cmpile directly in windows without the need of a linux virtual machine:
|
||||
@echo off
|
||||
|
||||
:: Compile directly in windows without the need of a linux virtual machine:
|
||||
::
|
||||
:: 1. Download and install "gcc-arm-none-eabi-10.3-2021.10-win32.exe" from https://developer.arm.com/downloads/-/gnu-rm
|
||||
:: 2. Download and install "gnu_make-3.81.exe" from https://gnuwin32.sourceforge.net/packages/make.htm
|
||||
::
|
||||
:: 3. You may (or not) need to manualy add gcc path to you OS environment PATH, ie ..
|
||||
:: C:\Program Files (x86)\GNU Arm Embedded Toolchain\10 2021.10\bin
|
||||
::
|
||||
:: 4. You may (or not) need to reboot your PC after installing the above
|
||||
::
|
||||
:: Then you can run this bat from the directory you saved this source code too.
|
||||
@ -15,14 +19,24 @@
|
||||
:: delete any left over files from any previous compile
|
||||
del /S /Q *.o >nul 2>nul
|
||||
del /S /Q *.d >nul 2>nul
|
||||
del /Q firmware >nul 2>nul
|
||||
del /Q *.bin >nul 2>nul
|
||||
|
||||
:: do the compile !
|
||||
"C:\Program Files (x86)\GnuWin32\bin\make"
|
||||
:: You may need to edit/change these three paths to suit your setup
|
||||
::
|
||||
@set PATH="C:\Program Files (x86)\GNU Arm Embedded Toolchain\10 2021.10\bin";%PATH%
|
||||
@set PATH="C:\Program Files (x86)\GNU Arm Embedded Toolchain\10 2021.10\arm-none-eabi\bin";%PATH%
|
||||
@set PATH="C:\Program Files (x86)\GnuWin32\bin\";%PATH%
|
||||
|
||||
:: do the compile
|
||||
::"C:\Program Files (x86)\GnuWin32\bin\make"
|
||||
make
|
||||
|
||||
:: delete the unused created when compiling files
|
||||
::
|
||||
del /S /Q *.o >nul 2>nul
|
||||
del /S /Q *.d >nul 2>nul
|
||||
del /Q firmware >nul 2>nul
|
||||
|
||||
:: If you have python installed, you can create a 'packed' .bin from the compiled firmware.bin file.
|
||||
:: The Quansheng windows upload-to-radio program requires a 'packed' .bin file.
|
||||
|
Reference in New Issue
Block a user