From ed807c0ae78109f0d4c29ebab7f3a7737a51a4e2 Mon Sep 17 00:00:00 2001 From: Kenn Sebesta Date: Sat, 12 Mar 2022 12:53:40 -0500 Subject: [PATCH] [ChibiOS][Windows] Use Windows-specific mkdir command This resolves a last problem for building on Windows. --- .../os/common/ports/ARMCMx/compilers/GCC/rules.mk | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ChibiOS_3.0.5/os/common/ports/ARMCMx/compilers/GCC/rules.mk b/ChibiOS_3.0.5/os/common/ports/ARMCMx/compilers/GCC/rules.mk index c73571f7..c2eeb3eb 100644 --- a/ChibiOS_3.0.5/os/common/ports/ARMCMx/compilers/GCC/rules.mk +++ b/ChibiOS_3.0.5/os/common/ports/ARMCMx/compilers/GCC/rules.mk @@ -312,6 +312,13 @@ clean: # # Include the dependency files, should be the last of the makefile # --include $(shell mkdir .dep 2>/dev/null) $(wildcard .dep/*) +ifeq ($(OS),Windows_NT) + $(shell if not exist ".dep" mkdir .dep ) +else + $(shell mkdir .dep 2>/dev/null) +endif + +-include $(wildcard .dep/*) + # *** EOF ***