mirror of https://github.com/rusefi/bldc.git
[ChibiOS][Windows] Modify `cat` and `grep` sections to work on Windows
This commit is contained in:
parent
bf3f6409e4
commit
89a3fdb3b9
|
@ -168,13 +168,25 @@ ifneq ($(USE_VERBOSE_COMPILE),yes)
|
|||
@echo $(CC) -c $(CFLAGS) -I. $(IINCDIR) main.c -o main.o
|
||||
@echo
|
||||
endif
|
||||
ifeq ($(OS),Windows_NT)
|
||||
@mkdir "$(BUILDDIR)"
|
||||
else
|
||||
@mkdir -p $(BUILDDIR)
|
||||
endif
|
||||
|
||||
$(OBJDIR):
|
||||
ifeq ($(OS),Windows_NT)
|
||||
@mkdir "$(OBJDIR)"
|
||||
else
|
||||
@mkdir -p $(OBJDIR)
|
||||
endif
|
||||
|
||||
$(LSTDIR):
|
||||
ifeq ($(OS),Windows_NT)
|
||||
@mkdir "$(LSTDIR)"
|
||||
else
|
||||
@mkdir -p $(LSTDIR)
|
||||
endif
|
||||
|
||||
$(ACPPOBJS) : $(OBJDIR)/%.o : %.cpp Makefile
|
||||
ifeq ($(USE_VERBOSE_COMPILE),yes)
|
||||
|
|
|
@ -1,7 +1,13 @@
|
|||
# List of all the ChibiOS/HAL files, there is no need to remove the files
|
||||
# from this list, you can disable parts of the HAL by editing halconf.h.
|
||||
ifeq ($(USE_SMART_BUILD),yes)
|
||||
HALCONF := $(strip $(shell cat halconf.h | egrep -e "define"))
|
||||
|
||||
ifeq ($(OS),Windows_NT)
|
||||
HALCONF := $(strip $(shell pwsh -noprofile -command cat halconf.h | findstr -i define))
|
||||
else
|
||||
HALCONF := $(strip $(shell cat halconf.h | egrep -e "define"))
|
||||
endif
|
||||
|
||||
|
||||
HALSRC := $(CHIBIOS)/os/hal/src/hal.c \
|
||||
$(CHIBIOS)/os/hal/src/st.c \
|
||||
|
|
|
@ -1,6 +1,11 @@
|
|||
# List of all the STM32F2xx/STM32F4xx platform files.
|
||||
ifeq ($(USE_SMART_BUILD),yes)
|
||||
HALCONF := $(strip $(shell cat halconf.h | egrep -e "define"))
|
||||
|
||||
ifeq ($(OS),Windows_NT)
|
||||
HALCONF := $(strip $(shell pwsh -noprofile -command cat halconf.h | findstr -i define))
|
||||
else
|
||||
HALCONF := $(strip $(shell cat halconf.h | egrep -e "define"))
|
||||
endif
|
||||
|
||||
PLATFORMSRC := $(CHIBIOS)/os/hal/ports/common/ARMCMx/nvic.c \
|
||||
$(CHIBIOS)/os/hal/ports/STM32/STM32F4xx/stm32_dma.c \
|
||||
|
|
|
@ -1,7 +1,14 @@
|
|||
# List of all the ChibiOS/RT kernel files, there is no need to remove the files
|
||||
# from this list, you can disable parts of the kernel by editing chconf.h.
|
||||
ifeq ($(USE_SMART_BUILD),yes)
|
||||
CHCONF := $(strip $(shell cat chconf.h | egrep -e "define"))
|
||||
|
||||
ifeq ($(OS),Windows_NT)
|
||||
CHCONF := $(strip $(shell pwsh -noprofile -command cat chconf.h | findstr -i define))
|
||||
else
|
||||
CHCONF := $(strip $(shell cat chconf.h | egrep -e "define")),
|
||||
endif
|
||||
|
||||
#$(info $(CHCONF))
|
||||
|
||||
KERNSRC := $(CHIBIOS)/os/rt/src/chsys.c \
|
||||
$(CHIBIOS)/os/rt/src/chdebug.c \
|
||||
|
|
Loading…
Reference in New Issue