Skip to content

docs(fqbn): record follow-ups 4c-4h and the build driver - #2252

Merged
zackees merged 1 commit into
mainfrom
agent/1298-fqbn-doc-driver
Dec 4, 2026
Merged

zackees merged 1 commit into
mainfrom
agent/1298-fqbn-doc-driver

Conversation

@zackees

@zackees zackees commented Dec 4, 2026

Copy link
Copy Markdown
Member

What

The FQBN decision record stopped at follow-up 4a/4b/4g: it still told a reader
that a .ino "is refused rather than compiled as C++", that recipe.ar.pattern
/ recipe.c.combine.pattern and the libraries/ scan "are the next cells", and
that fbuild build --fqbn "can only land once a resolved FQBN can be mapped
onto an orchestrator". All of that is false on main after #2237/#2242/#2243/
#2246/#2249/#2250/#2251, and docs/reference/cli.md closed the same section
with "Library discovery, recipe.hooks.* and fbuild build --fqbn remain the
open cells".

This PR makes the two documents match the shipped code — it is the design-note
half of #1298's second acceptance criterion, and no code changes.

Changes

docs/design/fqbn-resolution.md

  • New sections recording what landed: 4c archiving and linking (archive
    deleted first because ar rcs appends; object_files one quoted argument per
    object; output must be <name>.elf), 4d sketch preprocessing (reuses
    source_scanner, generated tab into build.path/sketch/), 4e a vendor
    core's link (numeric prelink hooks; variants/<board>/* is part of core.a),
    4f the firmware images (name order so mbed's .zip sees the .hex; empty
    recipe skipped; success = the image exists), 4h library discovery
    (ownership rules, root precedence, 1.5 src/-rooted vs 1.0 root+utility/,
    transitive, unresolved = entry-file includes) and 5 the driver (stage
    order, plan_build data vs build spawner, one build root via
    plan_unit_in, hook stages run vs refused by key, stop-at-first-failure).
  • Corrects the three statements later cells made false (4a hooks, 4b
    "deliberately not done") and rewrites "Open questions"/"Follow-ups" to state
    what is delivered and what is left: a naming/routing ruling (fbuild build --fqbn + board_build.fqbn) and the core-named-vendor-core orchestrator
    ruling.
  • Moves the 4g uploader section after 4f so the numbered follow-ups read in
    order.

docs/reference/cli.md

  • The fbuild fqbn row in the command table gains --sketch, --library-root
    and --build.
  • New fqbn --sketch, --library-root and --build subsection: discovery
    rules, the stage list, the one-build-root rule, --build running by default,
    --json, and the hook-by-key refusal.
  • Replaces the stale "remain the open cells" sentence.

Evidence

Every number quoted in the new sections is from a run recorded on the PR that
delivered the cell (#2237, #2242, #2243, #2246, #2249, #2250, #2251) — e.g. the
AVR Blink driver run: 25 core units → core.a 353,796 B → ELF 14,208 B →
.eep 13 B + .hex 2,611 B, exit 0; Seeeduino:mbed:xiaonRF52840Plus with the
real 2.9.3 package: 42 core units → core.a 27.6 MB → ELF 1,732,744 B →
.bin/.hex/.zip 85,441 B, exit 0.

Statements were checked against the code on origin/main (0db2944a), not
against the run notes: fqbn_link.rs (archive removed first, numeric prelink
order), fqbn_objcopy.rs (name order, empty recipe skipped, image must exist),
fqbn_libraries.rs (ownership/precedence/1.5-vs-1.0/transitive rules),
fqbn_compile.rs::core_sources (variant top-level sources),
fqbn_build.rs (stage live, hook stages run vs refused by key, plan_unit_in),
fqbn_build_cmd.rs (--build runs by default, needs --sketch).

Docs only: no Rust, no ci/*.py, no test modules touched.

#1298 stays open — the only remainder is the surface ruling.

@zackees
zackees added this pull request to the merge queue Dec 4, 2026
Merged via the queue into main with commit c34febb Dec 4, 2026
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant