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?
Writing Makefile for project
Re: Writing Makefile for project
Postby dkinzer » Fri Sep 04, 2015 10:36 pm
Personally, I find the directory structure and build procedure provided unnecessarily complicated and difficult to understand. I adopted a much more straightforward procedure using just a makefile and a single-level directory structure for the source and the generated object files in a subdirectory. It could be expanded to utilize additional subdirectories along the lines of the "driver" subdirectory but, so far, I've avoided that complication.azarubkin wrote:Espressif IOT SDK User Manual says that we need to put all source files to 'app' subfolder of SDK tree
Don Kinzer
Beaverton, OR, USA
Beaverton, OR, USA
Re: Writing Makefile for project
Postby eriksl » Sat Sep 05, 2015 2:31 am
Exactly!
I don't see AT ALL why you should stick to that monstrosity.
I just made up a Makefile myself, as I always do, and copied the relevant parts, which are only a few lines in the end.
I don't see AT ALL why you should stick to that monstrosity.
I just made up a Makefile myself, as I always do, and copied the relevant parts, which are only a few lines in the end.
Who is online
Users browsing this forum: No registered users and 42 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.