Repository navigation
Conversation
dtschema can print chosen.yaml without the optional trailing #. Normalize that empty fragment before comparing IDs so documented in-tree chosen properties are subtracted, while unknown properties and other schemas remain reported. Exercise both diagnostic layouts, the reported J715 warning against real bindings, and rejection boundaries in the existing dt-checks workflow. Signed-off-by: JT Turek <jt@dweeb.net>
|
Thanks @johnturek, this is the right fix. dtschema 2026.9 prints the chosen.yaml |
|
@johnturek is this ready? It's the only thing keeping #2745 (approved since 11-25) from landing. One request: the |
What: Accept
chosen.yamlschema IDs with or without the optional empty#fragment. This fixes the documented-property filter mismatch reported by @kazuhidet in #2745, without suppressing genuine warnings.Tested: J715 / Mac16,13 on macOS 27.3 at
2b6ec9e: five host-side tests pass, including the reported four-property J715 diagnostic against real in-tree bindings. CI-only change; no runtime change.Risk: Two-way door · no runtime changes on any Mac; affects Apple DT warning filtering in CI only.
Not yet: Full Linux
CHECK_DTBSrebuild across all Apple DTBs; CI workflow execution. No hardware-boot result is claimed.Details
dtschema can print
http://devicetree.org/schemas/chosen.yamlwithout the trailing#. The exact comparison currently passes that warning through unchanged, so documented in-tree properties are not subtracted.Normalize only the empty trailing fragment. Keep warnings from other schemas, nonempty fragments, undocumented properties, other nodes, and type/value errors unchanged. Run the new focused tests in the existing device-tree checks workflow.
The diagnosis and proposed normalization were reported in the November 26 comment on #2745.
Evidence
Base:
d2532e903450f6368f69ecbd723d967f8e1de591.Candidate:
2b6ec9e.Host: Mac16,13 / J715, macOS 27.3 (26C5047e), Python 3.14.
#; the actual J715 diagnostic and real bindings; unknown properties; different schemas; nonempty fragments; missing schema IDs; aliases; type errors.bash -n scripts/dtc/apple-dt-check.sh: pass.python -m py_compile scripts/dtc/apple-dt-check-test.py: pass.git diff --check: pass.FILE_PATH_CHANGESexcluded after confirming thatMAINTAINERSalready coversscripts/dtc/.The macOS fixtures validate warning filtering, not hardware support or the complete CI workflow.