summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorhathach <[email protected]>2023-03-05 10:57:16 +0700
committerhathach <[email protected]>2023-03-05 10:57:16 +0700
commitb4ef98cbdcac8a6bec4caee05920afc37a745149 (patch)
tree1fceaad7db2cba7d8745f12aee969ca1d486cc07 /tools
parenta99ee1b1a238b3edc6f2511543ffed2a3a1b657e (diff)
fix ci build on windows
Diffstat (limited to 'tools')
-rw-r--r--tools/top.mk2
1 files changed, 1 insertions, 1 deletions
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 ../../..)