Page 1 of 1

Note for esp-idf prelease users: component makefiles are now named component.mk

Posted: Thu Sep 08, 2016 11:55 pm
by ESP_Angus
A heads-up for anyone creating components for our prerelease esp-idf:

In our master branch, component makefiles are now named component.mk not Makefile. So any components you may have created will need their individual Makefiles renamed to component.mk. Each project will now only contain one file named Makefile (the main project's Makefile.)

Inside each component.mk file, the line

Code: Select all

include $(IDF_PATH)/make/component.mk
needs changing to be

Code: Select all

$(IDF_PATH)/make/component_common.mk
The esp-idf-template repo has been updated already. The commit is here:
https://github.com/espressif/esp-idf-te ... 795beadd97

We don't anticipate making these kind of breaking changes very often. This one was necessary due to the way Eclipse interprets any Makefile as being runnable. The component Makefiles were not runnable by themselves, only the main project Makefile is runnable, so this helps prevent Eclipse from getting confused.