Chat freely about anything...

User avatar
By me21
#27797 Espressif IOT SDK User Manual says that we need to put all source files to 'app' subfolder of SDK tree. And there are gen_misc.bat and gen_misc.sh which supply the compilation options.

But how do I write Makefile which makes use of these compilation options?

I have looked for Makefiles in examples - they all seem to ignore the options that are passed by gen_misc.sh script (i.e. BOOT, APP, SPI_SPEED, SPI_MODE and SPI_SIZE_MAP).

I have tried to use Makefile in the root folder of SDK - it compiles my sources, but it doesn't define any GEN_BINS, GEN_LIBS, GEN_IMAGES which are required to generate the firmware files. Where should I define these variables and what value should they contain?
User avatar
By eriksl
#28600 I have never seen the advantage in using this monstrosity of a Makefile (and source layout). I threw it all away, made my own Makefile like I use to do, used my own (flat) layout and added just a few lines from the Espresiff makefile to make it work (e.g. where the libs are, which ones to included, compiler options).