micropython/docs/reference
Alessandro Gatti 430837996b py/modsys: Add architecture flags to MicroPython metadata.
This commit adds the currently supported architecture flags value as the
upper part of "sys.implementation._mpy".

This had the side effect of perturbing quite a bit of testing
infrastructure and invalidating documentation related to MPY files.  To
make the test suite run successfully and keep the documentation in sync
the following changes have been made:

* The target info feature check file now isolates eventual architecture
  flags and adds them as a separate field
* The test runner now picks up the new architecture flags field, reports
  it to STDOUT if needed and stores it for future uses
* Relevant test files for MPY files import code had to be updated to
  mask out the architecture flags bits in order to perform correctly
* MPY file format documentation was updated to show how to mask off and
  properly display the architecture flags information.

This works out of the box if the flag bits can fit in a smallint value
once merged with the MPY file header value.

Signed-off-by: Alessandro Gatti <a.gatti@frob.it>
2025-10-24 19:13:15 +02: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 py/modsys: Add architecture flags to MicroPython metadata. 2025-10-24 19:13:15 +02: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