From b4ef98cbdcac8a6bec4caee05920afc37a745149 Mon Sep 17 00:00:00 2001 From: hathach Date: Sun, 5 Mar 2023 10:57:16 +0700 Subject: [PATCH] fix ci build on windows --- examples/make.mk | 4 ++-- tools/top.mk | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/make.mk b/examples/make.mk index dd7a5cf4e..5b364baf7 100644 --- a/examples/make.mk +++ b/examples/make.mk @@ -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 diff --git a/tools/top.mk b/tools/top.mk index 2800f9571..d2388201a 100644 --- a/tools/top.mk +++ b/tools/top.mk @@ -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 ../../..)