Explicitly exclude components (howto)
Posted: Fri Apr 06, 2018 5:00 pm
Hey!
I've noticed that there's no make variable to exclude components to cut down on full build times, so I've created one for myself.
On about line 150 of IDF_PATH/make/project.mk, add the following after "COMPONENTS := $(sort... endif" and before "export COMPONENTS" :
Now in the project Makefile, you can have something like:
I've only tested it with the msys32 subsystem under eclipse, but it's generic makefile language so hopefully it will work everywhere.
If interested, give it a try to see how it works for you.
I've noticed that there's no make variable to exclude components to cut down on full build times, so I've created one for myself.
On about line 150 of IDF_PATH/make/project.mk, add the following after "COMPONENTS := $(sort... endif" and before "export COMPONENTS" :
Code: Select all
ifdef EXCLUDE_COMPONENTS
ifdef EXCLUDE_COMPONENTS
COMPONENTS := $(filter-out $(EXCLUDE_COMPONENTS), $(COMPONENTS))
$(info Excluded components: $(EXCLUDE_COMPONENTS))
endif
$(info Component list: $(COMPONENTS))
Code: Select all
PROJECT_NAME := SomeSensorProject
EXCLUDE_COMPONENTS := openssl aws_iot bt coap nghttp
include $(IDF_PATH)/make/project.mk
If interested, give it a try to see how it works for you.