pvvx / esp8266web

Small web server on ESP8266
The Unlicense
245 stars 92 forks source link

Share and re-use of esp8266web code #2

Open amirgon opened 9 years ago

amirgon commented 9 years ago

Hi pvvx, First I wanted to say you did an excellent work of reverse engineering the closed ESP SDK. Well done! I would like to re-use parts of your code on my projects, for example the lwip, adc etc. A good way would be using git submodules.

However, currently your repository is not friendly for sharing with other projects as submodules:

Another option for me is to just to copy your files to my project. But if I do that I will not be able to contribute back if I make any changes/additions, and it will become harder for me to get in sync when you make changes.

Ideally, I think the best thing is to have an "open-sdk" which is a project by itself, and "esp8266web" is one project that uses it. Myself I'm not interested in the web server code, for example.

This is just a suggestion. Even if you do nothing with it, I still think you did a great job so far!

Amir

katyo commented 8 years ago

Hi amirgon,

Almost all ESP SDK implemented so, as use it as submodules is a non-trivial thing. But it is very convenient in practice. The common problem is tricky and non-adaptable build rules, which can't be simple included into Makefile your apps.

In order to eliminate voodoo magic, which goes yet from Espressif's developers, I completely rewrote build rules in my own fork of SDK at katyo:ESP_SDK_Library. So, bad things, like nested invocations of make, are fully removed. Instead of that I implemented strict dependency-driven building rules.

You can see the usage example kayo:esp-lilium (be aware, this project isn't yet completed).