Skip to content
UniOHOSPublic

About

UniOHOS declarative device schema, recipe validator, BYOF local build planner (v0.1.0 dry-run), and fs-tools

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

English | 简体中文

UniOHOS/builder

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.md for full compliance and non-affiliation terms.


Core Capabilities

  1. Declarative device.yaml Validation (validate-device): Validates device recipes from UniOHOS/devices against schemas/device.schema.json, checking zero_remote_blobs == true, zero_neverallow == true, and multi-form-factor fields (phone, tablet, laptop, SBC; multi-device bsp_profile, optional device_overlay_repo, dtbo_target).
  2. Approach A Pure Open-Source Rootfs Specification (open-base-info): Prints the Apache-2.0 OpenHarmony-based uniohos-open-base-<arch>.erofs specification (arm64 / x86_64). Prebuilt rootfs releases and automated build recipes are planned in upcoming milestones.
  3. Approach B Local BYOF Synthesis Planner (byof-plan): Generates a reproducible 5-step --dry-run local 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.
  4. Storage & Hotbind Tooling (fs-tools/ & harness/): Single source for generic 64KB PTE_CONT Tier-0 EROFS packing rules (erofs_v2_64k_packer.py), user-space HMFS UAPI ioctl headers, and the single-subsystem MS_BIND hotbind_test_harness.sh (--dry-run by default). Device-specific fstab and mount scripts live in UniOHOS-Devices/<vendor>-<soc>-bsp/profiles/<vendor>/<codename>/fs/.

Quick Start

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

License & Compliance

  • Licensed under the Apache License, Version 2.0 (selected utility headers/sources under fs-tools/ carry compatible MIT or dual Apache-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). See LEGAL.md and CONTRIBUTING.md.
  • Non-Affiliation: Independent open-source community, not affiliated with any silicon or device vendor; brand names are used solely for hardware compatibility identification.

About

UniOHOS declarative device schema, recipe validator, BYOF local build planner (v0.1.0 dry-run), and fs-tools

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages