Skip to content

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):

bash
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 ContributionTarget RepositoryLicense
Cross-silicon runtime (early-bringup, sidecar-runtime, hybris-bridge, anco-engine, device-parts)UniOHOS/coreApache-2.0
Cross-silicon graphical recovery core (LVGL, Fastbootd, HDC Sideload, liblp)UniOHOS/recoveryApache-2.0
Device manifest schema, uniohos-builder CLI, generic fs-tools, hotbind harnessUniOHOS/builderApache-2.0
Pure-Python GKI ABI/KMI/KCFI/BTF/FDT verification scriptsUniOHOS/gki-sdkMIT
Device manifest (devices/<vendor>/<codename>/device.yaml, capabilities.json)UniOHOS/devicesApache-2.0
Optional standalone multi-license plugins (plugins/<id>/)UniOHOS/pluginPer-plugin
Bilingual documentation portal & architecture guidesUniOHOS/docsCC-BY-4.0
SoC-specific userland adapters (common/) & board profiles (profiles/<vendor>/<codename>/)UniOHOS-Devices/<vendor>-<soc>-bspApache-2.0
Pure-text .dts/.dtsi/.asl overlays, kernel patch stacks, out-of-tree .ko C sourcesUniOHOS-Devices/<vendor>-<soc>-kernelGPL-2.0-only

3. Pre-PR Local Verification Checklist ​

Before opening a Pull Request:

  1. Run the Repository Hygiene Gate:
    bash
    python3 scripts/check_hygiene.py
    Verifies zero forbidden binary extensions, zero NUL bytes, zero private keys, zero personal workstation paths (/home/<user>/), and valid DCO 1.1 Signed-off-by: trailers.
  2. Add Matching SPDX Headers: Place SPDX-License-Identifier: matching the target repository license at the top of new source files.
  3. 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=3 plus ASan/UBSan/TSan where provided (make CC=clang verify, make test-sanitizers).
  4. Keep Documentation Bilingual & Link-Safe: Public repositories use pure-English primary Markdown files paired with standalone .zh-CN.md (or docs/zh/ in UniOHOS/docs) files.

4. Onboarding a New Silicon Team (UniOHOS-Devices) ​

Per TEAM-GOVERNANCE.md:

  1. Open a New Device / Silicon Intake issue in UniOHOS/.github/issues with Stage 0 or Stage 1 evidence.
  2. Core maintainers create <vendor>-<soc>-bsp (Apache-2.0) and <vendor>-<soc>-kernel (GPL-2.0-only) in UniOHOS-Devices and grant Maintain access to @UniOHOS-Devices/team-<vendor>-<soc>.
  3. Enable UniOHOS/.github/.github/workflows/reusable-hygiene-gate.yml@main and main branch protection before accepting PRs.
  4. 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.

Independent Open-Source Community (CC-BY-4.0). Not affiliated with Huawei, HiSilicon, OpenAtom Foundation, Xiaomi, Qualcomm, MediaTek, or Arm.