summaryrefslogtreecommitdiff
path: root/docs/esp8266/tutorial/powerctrl.rst
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2024-06-05 22:48:16 +1000
committerDamien George <damien@micropython.org>2024-06-28 11:23:55 +1000
commit43ebbec0c5c7a1b404ffdc738a8ab5f6fa0250cd (patch)
tree829c1a52b21ad1814d75fa92912a9894dcc0368c /docs/esp8266/tutorial/powerctrl.rst
parent3af1425be7a786f79fe02902ca2f6079bacde809 (diff)
esp32: Rework board variant support to require mpconfigvariant file.
This commit reworks board variants on the esp32 port. It's a simple change that moves the board variant configuration from an "if" statement within `mpconfigboard.cmake` into separate files for each variant, with the name of the variant encoded in the filename: `mpconfigvariant_VARIANT.cmake`. Optionally, the base variant can have its own options in `mpconfigvariant.cmake` (this is an optional file, but all other variants of the base must have a corresponding mpconfigvariant file). There are two benefits to this: - The build system now gives an error if the variant that you specified doesn't exist (because the mpconfigvariant file must exist with the variant name you specify). - No more error-prone if-logic needed in the .cmake files. The way to build a variant is unchanged, still via: $ make BOARD_VARIANT=VARIANT Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'docs/esp8266/tutorial/powerctrl.rst')
0 files changed, 0 insertions, 0 deletions