fix ci build on windows

This commit is contained in:
hathach 2023-03-05 10:57:16 +07:00
parent a99ee1b1a2
commit b4ef98cbdc
No known key found for this signature in database
GPG Key ID: F5D50C6D51D17CBA
2 changed files with 3 additions and 3 deletions

View File

@ -74,16 +74,16 @@ else
SIZE = $(CROSS_COMPILE)size
endif
MKDIR = mkdir
ifeq ($(CMDEXE),1)
CP = copy
RM = del
PYTHON = python
MKDIR = cmd /e /c mkdir
else
SED = sed
CP = cp
RM = rm
MKDIR = mkdir
PYTHON = python3
endif

View File

@ -25,7 +25,7 @@ endif
THIS_MAKEFILE := $(lastword $(MAKEFILE_LIST))
# strip off /tools/top.mk to get for example ../../..
TOP := $(patsubst %/tools/top.mk,%,$(THIS_MAKEFILE))
TOP := $(subst /tools/top.mk,,$(THIS_MAKEFILE))
$(info top.mk: Initial TOP=$(TOP))
# Set TOP to an absolute path, for example /tinyUSB (from ../../..)