Contributing, DCO Sign-off & Team Governance
Contributions across UniOHOS and UniOHOS-Devices follow a lightweight, consistent engineering workflow designed to protect contributors and keep every repository clean.
1. Developer Certificate of Origin (DCO 1.1)
Every commit must include a DCO 1.1 Signed-off-by: trailer (git commit -s). Using your GitHub no-reply address is recommended if you prefer not to expose a personal email in public Git history (standard personal or work emails are also accepted by CI):
git config user.name "YourGitHubHandle"
git config user.email "<ID>+YourGitHubHandle@users.noreply.github.com"
git commit -s -m "feat(vdi): add panel mode timing parser"2. Where Your Change Belongs (Zero-Duplication Routing)
| Type of Contribution | Target Repository | License |
|---|---|---|
Cross-silicon runtime (early-bringup, sidecar-runtime, hybris-bridge, anco-engine, device-parts) | UniOHOS/core | Apache-2.0 |
Cross-silicon graphical recovery core (LVGL, Fastbootd, HDC Sideload, liblp) | UniOHOS/recovery | Apache-2.0 |
Device manifest schema, uniohos-builder CLI, generic fs-tools, hotbind harness | UniOHOS/builder | Apache-2.0 |
| Pure-Python GKI ABI/KMI/KCFI/BTF/FDT verification scripts | UniOHOS/gki-sdk | MIT |
Device manifest (devices/<vendor>/<codename>/device.yaml, capabilities.json) | UniOHOS/devices | Apache-2.0 |
Optional standalone multi-license plugins (plugins/<id>/) | UniOHOS/plugin | Per-plugin |
| Bilingual documentation portal & architecture guides | UniOHOS/docs | CC-BY-4.0 |
SoC-specific userland adapters (common/) & board profiles (profiles/<vendor>/<codename>/) | UniOHOS-Devices/<vendor>-<soc>-bsp | Apache-2.0 |
Pure-text .dts/.dtsi/.asl overlays, kernel patch stacks, out-of-tree .ko C sources | UniOHOS-Devices/<vendor>-<soc>-kernel | GPL-2.0-only |
3. Pre-PR Local Verification Checklist
Before opening a Pull Request:
- Run the Repository Hygiene Gate:bashVerifies zero forbidden binary extensions, zero NUL bytes, zero private keys, zero personal workstation paths (
python3 scripts/check_hygiene.py/home/<user>/), and valid DCO 1.1Signed-off-by:trailers. - Add Matching SPDX Headers: Place
SPDX-License-Identifier:matching the target repository license at the top of new source files. - Compile & Test C/C++ with Ubuntu 24.04 Hardening: CI runs on
ubuntu-latest(Ubuntu 24.04), which defaults to-D_FORTIFY_SOURCE=3. Verify host tests locally with-O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3plus ASan/UBSan/TSan where provided (make CC=clang verify,make test-sanitizers). - Keep Documentation Bilingual & Link-Safe: Public repositories use pure-English primary Markdown files paired with standalone
.zh-CN.md(ordocs/zh/inUniOHOS/docs) files.
4. Onboarding a New Silicon Team (UniOHOS-Devices)
Per TEAM-GOVERNANCE.md:
- Open a New Device / Silicon Intake issue in
UniOHOS/.github/issueswith Stage 0 or Stage 1 evidence. - Core maintainers create
<vendor>-<soc>-bsp(Apache-2.0) and<vendor>-<soc>-kernel(GPL-2.0-only) inUniOHOS-Devicesand grantMaintainaccess to@UniOHOS-Devices/team-<vendor>-<soc>. - Enable
UniOHOS/.github/.github/workflows/reusable-hygiene-gate.yml@mainandmainbranch protection before accepting PRs. - Register each supported board under
UniOHOS/devices.
5. Brand & Visual Identity Quick Reference
The official UniOHOS emblem (brand/BRAND.md) uses pure vector geometry (1024x1024 viewBox, zero raster pixels): Deep Obsidian squircle #090D16, Pure White upper O-ring #FFFFFF, and Cobalt Blue lower U-cradle arc #0A59F7. Keep at least 15% clearspace around the mark and never imply official vendor endorsement.