Copyright © https://mongoose-os.com

Mongoose OS Forum

frame
ATTENTION! This forum has moved to:

https://community.mongoose-os.com

Do not post any new messages.

EXTRA_COMPONENT_DIRS

I want to add a new C component that has some sophisticated makefile rules.

Can we have Makefile.build allow exporting EXTRA_COMPONENT_DIRS?

The standard ESP-IDF project.mk does this:

COMPONENT_DIRS := $(PROJECT_PATH)/components $(EXTRA_COMPONENT_DIRS) $(IDF_PATH)/components $(PROJECT_PATH)/main

Can you change Makefile.build to this:

COMPONENT_DIRS = $(COMMON_PATH) \
                 $(IDF_PATH)/components \
                 $(MGOS_ESP_PATH) \
                 $(MGOS_PATH)/third_party \
                 /opt \
                 $(EXTRA_COMPONENT_DIRS)

That way we can use custom libraries with more makefile options than what mos.yml supports.

Sign In or Register to comment.