Skip to content

Latest commit

 

History

History
32 lines (27 loc) · 1.73 KB

AGENTS.md

File metadata and controls

32 lines (27 loc) · 1.73 KB

Agent instructions

Read orchard's AGENTS.md first

Every agent working in any OrchardLinux repository reads OrchardLinux/orchard's AGENTS.md before it starts, every session, whatever the task: https://github.com/OrchardLinux/orchard/blob/main/AGENTS.md (raw: https://raw.githubusercontent.com/OrchardLinux/orchard/main/AGENTS.md). Fetch it even without a local orchard checkout. Its rules apply here too, above all: every build goes through orchard build, never a producer or a build script run by hand. Where this file says more, both apply.

This is Orchard's kernel: upstream Linux with Hoolock's A7-A11 work and Orchard's changes on top (branch main for the arm64 boards, armv7 for the 32-bit ones). It is the source of the kernel Orchard builds. Kernel work happens here: branch from main or armv7, commit, and open the pull request in OrchardLinux/linux. Never add kernel patch files to the orchard repository.

  • Commits in upstream style: one topic each, the subsystem's subject prefix (Input: apple_z2: ..., arm64: dts: apple: ...), Assisted-by: LLM when an LLM helped. Driver changes and device trees go in separate commits.
  • Hardware differences belong in match data and the device tree, selected by compatible; no machine checks in shared code.
  • Build a branch with orchard: orchard build ... --kernel-tree DIR.
  • What a board needs beside its kernel (devices/<board>/, firmware recipe, docs) is a pull request in orchard, which takes the new kernel in the same pull request (orchard's kernel/README.md). The kernel pull request merges first.
  • Never rewrite main or armv7.

LLM-assisted work is welcome here, but it stays in Orchard: no patches, pull requests, issues or comments to Asahi's or Hoolock's trees.