Repository navigation
docs(fqbn): record follow-ups 4c-4h and the build driver - #2252
Merged
Merged
Conversation
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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++", thatrecipe.ar.pattern/
recipe.c.combine.patternand thelibraries/scan "are the next cells", andthat
fbuild build --fqbn"can only land once a resolved FQBN can be mappedonto an orchestrator". All of that is false on
mainafter #2237/#2242/#2243/#2246/#2249/#2250/#2251, and
docs/reference/cli.mdclosed the same sectionwith "Library discovery,
recipe.hooks.*andfbuild build --fqbnremain theopen 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.mddeleted first because
ar rcsappends;object_filesone quoted argument perobject; output must be
<name>.elf), 4d sketch preprocessing (reusessource_scanner, generated tab intobuild.path/sketch/), 4e a vendorcore's link (numeric prelink hooks;
variants/<board>/*is part ofcore.a),4f the firmware images (name order so mbed's
.zipsees the.hex; emptyrecipe 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 (stageorder,
plan_builddata vsbuildspawner, one build root viaplan_unit_in, hook stages run vs refused by key, stop-at-first-failure)."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 orchestratorruling.
order.
docs/reference/cli.mdfbuild fqbnrow in the command table gains--sketch,--library-rootand
--build.fqbn --sketch,--library-rootand--buildsubsection: discoveryrules, the stage list, the one-build-root rule,
--buildrunning by default,--json, and the hook-by-key refusal.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.a353,796 B → ELF 14,208 B →.eep13 B +.hex2,611 B, exit 0;Seeeduino:mbed:xiaonRF52840Pluswith thereal 2.9.3 package: 42 core units →
core.a27.6 MB → ELF 1,732,744 B →.bin/.hex/.zip85,441 B, exit 0.Statements were checked against the code on
origin/main(0db2944a), notagainst the run notes:
fqbn_link.rs(archive removed first, numeric prelinkorder),
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(--buildruns 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.