Writing Makefile for project
Posted: Fri Sep 04, 2015 7:11 am
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?
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?