SuperHouse / esp-open-rtos

Open source FreeRTOS-based ESP8266 software framework
BSD 3-Clause "New" or "Revised" License
1.53k stars 491 forks source link

Allow overriding bootloader flash arguments #565

Closed andrewclink closed 6 years ago

andrewclink commented 6 years ago

This just pulls out the rboot arguments into a separate variable to allow overriding RBOOT_ARGS in local.mk or an application's makefile.

I have several different flash arrangements and rewriting the bootloader with different SPI schemes (DIO, QIO, 4m, 8m, etc) breaks things. Instead of changing FLASH_SIZE, FLASH_MODE, and FLASH_SPEED each time a different chip is flashed, overriding RBOOT_ARGS to be blank allows an application to write a custom bootloader (maybe without rboot's config at 0x1000) or none at all.