mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
make: add support for sdkconfig.defaults.IDF_TARGET
This commit is contained in:
parent
142e49f4cc
commit
64c41cfcad
@ -61,15 +61,14 @@ ifeq ("$(PYTHON)","")
|
||||
PYTHON=python
|
||||
endif
|
||||
|
||||
ifneq ("$(wildcard $(SDKCONFIG_DEFAULTS))","")
|
||||
SDKCONFIG_DEFAULTS_FILES := $(foreach f,$(SDKCONFIG_DEFAULTS),$(wildcard $(f)))
|
||||
# for each sdkconfig.defaults file, also add sdkconfig.defaults.IDF_TARGET, if it exists
|
||||
SDKCONFIG_DEFAULTS_FILES += $(foreach f,$(SDKCONFIG_DEFAULTS_FILES),$(wildcard $(f).$(IDF_TARGET)))
|
||||
|
||||
ifeq ($(OS),Windows_NT)
|
||||
DEFAULTS_ARG:=--defaults $(shell cygpath -m $(SDKCONFIG_DEFAULTS))
|
||||
else
|
||||
DEFAULTS_ARG:=--defaults $(SDKCONFIG_DEFAULTS)
|
||||
endif
|
||||
else
|
||||
DEFAULTS_ARG:=
|
||||
SDKCONFIG_DEFAULTS_FILES := $(shell cygpath -m $(SDKCONFIG_DEFAULTS_FILES))
|
||||
endif
|
||||
DEFAULTS_ARG := $(foreach f,$(SDKCONFIG_DEFAULTS_FILES),--defaults $(f))
|
||||
|
||||
# macro for running confgen.py
|
||||
define RunConfGen
|
||||
|
Loading…
Reference in New Issue
Block a user