mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-12 19:10:32 +03:00
When trying to build firmware with current directory in PATH environment it scans for make command and generates "Permission denied" error in case if current directory in PATH precedes /usr/bin/ directory.In my case it was caused by incorrect pyenv init script. Rename make folder to avoid errors like this.
14 lines
298 B
Makefile
14 lines
298 B
Makefile
OPENOCD ?= openocd
|
|
OPENOCD_IF ?= interface/stlink-v2.cfg
|
|
|
|
ifeq ($(TARGET_MCU),STM32F4)
|
|
OPENOCD_CFG := target/stm32f4x.cfg
|
|
|
|
else ifeq ($(TARGET_MCU),STM32F7)
|
|
OPENOCD_CFG := target/stm32f7x.cfg
|
|
else
|
|
endif
|
|
|
|
ifneq ($(OPENOCD_CFG),)
|
|
OPENOCD_COMMAND = $(OPENOCD) -f $(OPENOCD_IF) -f $(OPENOCD_CFG)
|
|
endif
|