nodemcu-firmware/components
Johny Mattsson 51912d5505
Reworked linker magic to work with IDF 3.3 (#2805)
With the IDF asserting full control over the linker scripts and insisting on
the application description being the first entry in the .flash.rodata
section, or previous method of doing link-time arrays stopped working.
Why? Because the build patched in a SHA256 digest straight into our arrays.

With the limited language of the gcc linker scripts I could find no other
way of getting it in cleanly.

The IDF "linker fragments" support can not be made to work for our needs:
  - no support for setting alignment before including objects
  - no support for declaring symbols
  - no support for adding our terminating zeros
  - insists on grouping objects by lib rather than by declared grouping,
    which means we could at most have a single link-time-array using
    the IDF mechanism
  - also does not like underscores in section names, but that's just an
    annoyance

So, the least bad option that I could come up with was to use a project-wide
makefile snippet to add a target in-between the IDF's generation of the
esp32.project.ld file, and the linking of our NodeMCU.elf. In this target
we read in the esp32.project.ld linker script, check whether we have our
arrays in there, and if not rewrites the linker script.

Oh, and the esp32.project.ld file only came into existence on the IDF 3.3
branch, so I had to change up the IDF to the latest release/3.3 as well.
I would've preferred a stable tag, but the v3.3-beta3 had a really nasty
regression for us (can't add partition entry), so that was a no-go.
2019-06-22 12:05:34 +10:00
..
base_nodemcu Reworked linker magic to work with IDF 3.3 (#2805) 2019-06-22 12:05:34 +10:00
driver_can Updated ESP-IDF to latest. 2017-05-13 22:30:13 +02:00
driver_console ESP32: uart 1/2 supports (#1982) 2017-06-13 18:33:32 +02:00
driver_i2c add i2c module 2017-02-02 21:40:36 +01:00
fatfs add support for sdmmc cards in sd-spi mode (#2644) 2019-02-10 10:11:13 +01:00
lua fix number2integer conversion for floating-point builds (#2605) 2019-01-15 17:06:11 +01:00
modules fix compile warnings for ipaddr_aton 2019-06-21 18:01:20 +02:00
platform force common intr alloc flags for all platform components that use rmt 2019-05-31 23:34:15 +02:00
qrcodegen Adding qrcodegen module for generating QR Codes (#2543) 2018-11-15 22:17:43 +01:00
rtos_dbg Updated to latest IDF. 2016-11-16 17:59:06 +11:00
sjson ESP32: Add SJSON module (#2562) 2018-11-22 20:58:27 +01:00
spiffs pack-port bits and pieces in spiffs.c: 2018-11-04 08:49:17 +01:00
task Updated to latest IDF. 2016-11-16 17:59:06 +11:00
u8g2 update to u8g2 2.25.10 2019-04-28 22:26:37 +02:00
ucg Add ucg module. 2018-10-07 16:31:28 +02:00