micropython/docs/reference
Alessandro Gatti b87d73f2e9 tools/mpy_ld.py: Write architecture flags to output natmod if needed.
This commit lets "tools/mpy_ld.py" store architecture flags in generated
MPY files if explicitly requested, like "mpy-cross" does.

To achieve this, a new command-line option ("--arch-flags") was added to
receive the architecture flags value, accepting the same arguments'
format as "mpy-cross", and performing the same input validation.

The rest of the MPY toolchain was also modified to let the user pass the
arch flags to standard native module makefiles.  Given that there's
already a well-established "ARCH" argument, "ARCH_FLAGS" was chosen to
pass the optional flags to "mpy_ld.py".

Finally, documentation was updated to mention the new variable.

Signed-off-by: Alessandro Gatti <a.gatti@frob.it>
2026-01-11 09:22:13 +01:00
..
asm_thumb2_arith.rst docs: Add reference for Thumb2 inline assembler. 2015-06-25 00:21:35 +01:00
asm_thumb2_compare.rst all: Fix spelling mistakes based on codespell check. 2023-04-27 18:03:06 +10:00
asm_thumb2_directives.rst docs: More consistent capitalization and use of articles in headings. 2020-01-06 22:17:29 +11:00
asm_thumb2_float.rst docs: More consistent capitalization and use of articles in headings. 2020-01-06 22:17:29 +11:00
asm_thumb2_hints_tips.rst docs: Remove trailing spaces and convert tabs to spaces. 2021-12-15 11:49:22 +11:00
asm_thumb2_index.rst all: Replace legacy name with MicroPython and MPy as applicable. 2025-10-04 00:19:40 +10:00
asm_thumb2_label_branch.rst docs: Spelling mistakes 2016-08-02 11:17:46 +03:00
asm_thumb2_ldr.rst docs: Add reference for Thumb2 inline assembler. 2015-06-25 00:21:35 +01:00
asm_thumb2_logical_bit.rst docs: More consistent capitalization and use of articles in headings. 2020-01-06 22:17:29 +11:00
asm_thumb2_misc.rst docs: Several minor changes: network, pyb, ADCAll and inline asm. 2016-01-13 21:53:26 +00:00
asm_thumb2_mov.rst py/inlinethumb: Remove 30-bit restriction on movwt instruction. 2016-01-07 16:34:11 +00:00
asm_thumb2_stack.rst docs: Add reference for Thumb2 inline assembler. 2015-06-25 00:21:35 +01:00
asm_thumb2_str.rst docs: Add reference for Thumb2 inline assembler. 2015-06-25 00:21:35 +01:00
constrained.rst all: Fix "reuse" and "overridden" spelling mistakes. 2024-01-05 15:08:33 +11:00
filesystem.rst docs: Use vfs module instead of os. 2024-02-07 13:25:10 +11:00
glossary.rst docs/library/machine: Add docs for Counter and Encoder. 2025-08-02 00:00:03 +10:00
index.rst docs: Add a "Reset and Boot Sequence" reference page. 2024-11-19 10:57:26 +11:00
isr_rules.rst all: Upgrade codespell to v2.4.1. 2025-02-25 16:11:33 +11:00
manifest.rst docs,ports: Fix some comments and error messages with doubled-up words. 2024-11-30 13:08:33 +11:00
micropython2_migration.rst docs/reference/micropython2_migration.rst: Add info about os and vfs. 2024-02-07 13:25:09 +11:00
mpremote.rst docs/reference/mpremote: Document location of config file. 2025-08-02 00:23:21 +10:00
mpyfiles.rst tools/mpy_ld.py: Write architecture flags to output natmod if needed. 2026-01-11 09:22:13 +01:00
packages.rst tools/mpremote: Add support for relative urls in package.json files. 2025-02-24 13:29:40 +11:00
pyboard.py.rst docs/reference: Fix pyboard.py filesystem cp example with three files. 2024-09-17 11:20:17 +10:00
repl.rst docs: Fix double 'the' in documentation. 2025-02-25 17:07:16 +11:00
reset_boot.rst docs/esp32: Add a factory reset page. 2024-11-19 10:57:53 +11:00
speed_python.rst docs/reference/speed_python: Document schedule/GIL limitation of native. 2025-07-23 11:37:16 +10:00