micropython/tools
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
..
autobuild tools/autobuild: Make firmware destination directory configurable. 2025-12-04 00:33:04 +11:00
make_pinout_diagram rp2/boards/WEACTSTUDIO_RP2350B_CORE: Add board.pinout. 2025-12-01 16:05:49 +11:00
mpremote tools/mpremote: Fix exception when using pts. 2025-10-24 17:31:51 +11:00
.gitattributes micropython-upip: Mark as binary file and re-commit. 2015-06-06 23:09:23 +03:00
ar_util.py tools/mpy_ld.py: Allow linking static libraries. 2025-03-17 13:03:27 +11:00
boardgen.py tools/boardgen.py: Ensure board pin locals_dict has consistent order. 2025-06-10 11:09:14 +10:00
cc1 tools/cc1: Fix ruff lint check with list length. 2025-11-05 12:46:29 +11:00
ci.sh tools/ci.sh: Update Unix/x86 target to Ubuntu 24.04 LTS. 2026-01-07 12:04:41 +01:00
codeformat.py tools/codeformat.py: Print filename + linenumber when dedenting fails. 2025-08-11 13:35:34 +10:00
codestats.sh all: Prune trailing whitespace. 2024-03-07 16:25:17 +11:00
dfu.py tools/dfu.py: Make tool work with python3 when parsing DFU files. 2021-11-01 15:46:59 +11:00
file2h.py tools: Remove unneeded future imports. 2025-09-15 14:54:09 +10:00
gen-changelog.sh tools/gen-changelog.sh: Exclude "-preview" tags from generated log. 2024-01-05 15:06:14 +11:00
gen-cpydiff.py docs: Label table columns as "CPython output" and "MicroPython output". 2025-10-03 23:29:11 +10:00
hci_trace_to_pcap.py extmod/modbluetooth: Make all HCI transports trace in the same format. 2023-04-26 11:37:20 +10:00
insert-usb-ids.py tools: Remove unneeded future imports. 2025-09-15 14:54:09 +10:00
makemanifest.py tools: Remove unneeded future imports. 2025-09-15 14:54:09 +10:00
manifestfile.py tools: Remove unneeded future imports. 2025-09-15 14:54:09 +10:00
metrics.py tools/metrics.py: Tersely show the commits in the size report. 2025-10-23 16:15:26 +11:00
mpy_bin2res.py tools/mpy_bin2res: Tools to convert binary resources to Python module. 2017-07-27 14:41:27 +03:00
mpy_cross_all.py all: Remove MICROPY_OPT_CACHE_MAP_LOOKUP_IN_BYTECODE. 2021-09-16 16:04:03 +10:00
mpy_ld.py tools/mpy_ld.py: Write architecture flags to output natmod if needed. 2026-01-11 09:22:13 +01:00
mpy-tool.py tools/mpy-tool.py: Add Compiler Explorer JSON output. 2025-11-24 12:40:39 +11:00
pyboard.py tools/pyboard.py: Add timeout argument to Pyboard.exec_/exec. 2025-07-23 12:42:44 +10:00
pydfu.py tools: Remove unneeded future imports. 2025-09-15 14:54:09 +10:00
uf2conv.py all: Fix strings with backslash by using raw string literals. 2023-05-02 11:55:02 +10:00
uf2families.json tools/uf2conv.py: Update to latest version. 2022-02-02 23:43:58 +11:00
uncrustify.cfg all: Fix spelling mistakes based on codespell check. 2023-04-27 18:03:06 +10:00
verifygitlog.py tools/verifygitlog.py: Allow long co-author and sign-off names. 2025-05-15 13:03:11 +10:00