File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -67,13 +67,17 @@ all : check_tools bootloaders
6767
6868# Check if tools are installed
6969check_tools :
70+ ifeq ($(MSYSTEM ) ,UCRT64)
71+ @$(SHELL) -c 'command -v $(CC) >/dev/null 2>&1 || { echo "Error: please install tools first with target arm_sdk_install."; exit 1; }'
72+ else
7073ifeq ($(OS ) ,Windows_NT)
7174 @if not exist "$(CC).exe" ( \
7275 echo Error: please install tools first with target arm_sdk_install. & exit /B 1 \
7376 )
7477else
7578 @$(SHELL) -c 'command -v $(CC) >/dev/null 2>&1 || { echo "Error: please install tools first with target arm_sdk_install."; exit 1; }'
7679endif
80+ endif
7781
7882clean :
7983 @echo Removing $(OBJ ) directory
Original file line number Diff line number Diff line change 44#
55# ##############################################################
66
7+ ifeq ($(MSYSTEM ) ,UCRT64)
8+ OSDIR: =windows
9+ ARM_SDK_PREFIX: =tools/windows/xpack-arm-none-eabi-gcc-10.3.1-2.3/bin/arm-none-eabi-
10+ CP: =cp
11+ DSEP: =/
12+ NUL: =/dev/null
13+ MKDIR: =mkdir
14+ RM: =rm
15+ CUT: =cut
16+ FGREP: =fgrep
17+ else
718
819ifeq ($(OS ) ,Windows_NT)
920OSDIR: =windows
@@ -45,6 +56,7 @@ CUT:=cut
4556FGREP: =fgrep
4657endif
4758endif
59+ endif
4860
4961# workaround for lack of a lowercase function in GNU make
5062# look away before this sends you blind ....
You can’t perform that action at this time.
0 commit comments