English | 简体中文
Device Recipe Validator, BYOF Synthesis Planner, Filesystem Tooling (fs-tools), and Hotbind Test Harness
Early Development & Compliance: UniOHOS is under active development and interfaces may change. Public repositories contain source code, recipes, and documentation only (no proprietary firmware or prebuilt commercial images); see
LEGAL.mdfor full compliance and non-affiliation terms.
- Declarative
device.yamlValidation (validate-device): Validates device recipes fromUniOHOS/devicesagainstschemas/device.schema.json, checkingzero_remote_blobs == true,zero_neverallow == true, and multi-form-factor fields (phone, tablet, laptop, SBC; multi-devicebsp_profile, optionaldevice_overlay_repo,dtbo_target). - Approach A Pure Open-Source Rootfs Specification (
open-base-info): Prints theApache-2.0OpenHarmony-baseduniohos-open-base-<arch>.erofsspecification (arm64/x86_64). Prebuilt rootfs releases and automated build recipes are planned in upcoming milestones. - Approach B Local BYOF Synthesis Planner (
byof-plan): Generates a reproducible 5-step--dry-runlocal synthesis plan combining user-owned local device partitions with open-source adaptation layers (zero vendor blobs hosted remotely). Automated local extraction and end-to-end assembly scripts are under development. - Storage & Hotbind Tooling (
fs-tools/&harness/): Single source for generic64KB PTE_CONTTier-0 EROFS packing rules (erofs_v2_64k_packer.py), user-spaceHMFSUAPIioctlheaders, and the single-subsystemMS_BINDhotbind_test_harness.sh(--dry-runby default). Device-specificfstaband mount scripts live inUniOHOS-Devices/<vendor>-<soc>-bsp/profiles/<vendor>/<codename>/fs/.
pip install -e .
# Validate the reference device recipe (Xiaomi 15S Pro / dijun)
uniohos-builder validate-device examples/dijun-reference.yaml
# Inspect Approach A pure open-source rootfs metadata
uniohos-builder open-base-info --arch arm64
# Dry-run Approach B local BYOF synthesis plan (100% offline, zero remote blobs)
uniohos-builder byof-plan --device examples/dijun-reference.yaml --dry-run
# Run unit tests & hygiene gate (also runnable without install via python3 -m uniohos_builder)
python3 -m unittest discover -s tests -v
python3 scripts/check_hygiene.py- Licensed under the Apache License, Version 2.0 (selected utility headers/sources under
fs-tools/carry compatibleMITor dualApache-2.0 OR (GPL-2.0-only WITH Linux-syscall-note)SPDX headers). - Compliance & Contributing: Source and configuration only (zero proprietary binaries); commits require DCO 1.1 sign-off (
git commit -s). SeeLEGAL.mdandCONTRIBUTING.md. - Non-Affiliation: Independent open-source community, not affiliated with any silicon or device vendor; brand names are used solely for hardware compatibility identification.