diff options
author | Alessandro Gatti <a.gatti@frob.it> | 2025-03-25 21:53:45 +0100 |
---|---|---|
committer | Alessandro Gatti <a.gatti@frob.it> | 2025-05-14 06:25:59 +0200 |
commit | 116d0d494589e470b4003fcecd18162c9eed7e9b (patch) | |
tree | 137c46cc54ea291a0d95553902d126d7384640d0 /stmhal/hal/inc/stm32f4xx_hal_adc_ex.h | |
parent | 1d4bf8ac40236e22d0a67b103b4330d1ee6659d4 (diff) | |
download | micropython-116d0d494589e470b4003fcecd18162c9eed7e9b.tar.gz micropython-116d0d494589e470b4003fcecd18162c9eed7e9b.zip |
esp32/esp32_common.cmake: Allow adding defines and compiler flags.
This commit introduces two extra CMake variables, MICROPY_DEF_COMPONENT
and MICROPY_COMPILE_COMPONENT, that make it easier to integrate
MicroPython as a custom ESP-IDF component.
Whilst there is no official MicroPython component available for ESP-IDF,
integration can be achieved with some minor CMake scripting outside the
MicroPython tree - except for customisation of compilation defines and
build flags, which is what this commit tries to provide.
Compilation defines customisation is especially important for
MicroPython configuration, as it is not possible to inject a value for
MP_CONFIGFILE otherwise. This means that unless MicroPython itself is
forked first to edit ports/esp32/mpconfigport.h, it is not possible to
perform any meaningful configuration of the interpreter/runtime when
included as a component.
Signed-off-by: Alessandro Gatti <a.gatti@frob.it>
Diffstat (limited to 'stmhal/hal/inc/stm32f4xx_hal_adc_ex.h')
0 files changed, 0 insertions, 0 deletions