Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,12 @@ jobs:
run: |
shellcheck --version | sed -n 2p
git ls-files -z -- '.github/scripts/*.sh' 'tools/testing/overpressure/*.sh' | xargs -0 -r shellcheck
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: overpressure/overpressure
path: .overpressure
- name: AGENTS.md, with CLAUDE.md a link to it (overpressure's check-docs)
run: python3 .overpressure/scripts/check-docs.py --repo . --agents
- name: The workflows (actionlint)
env:
VERSION: 1.7.12
Expand Down
62 changes: 62 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# AGENTS.md

**overpressure/linux** is Valve's Steam Frame kernel (`linux-valve` 7.2) with the
[overpressure](https://github.com/overpressure/overpressure) project's changes for other standalone VR headsets, one
branch per layer: `valve/7.2` (Valve's own history, untouched) -> `common/7.2` (fixes any headset can meet, and the
CI in `.github/`) -> `sm8250/7.2` (the Snapdragon XR2) -> `phoenix/7.2` (the PICO 4, the default branch) and
`hollywood/7.2` (the Meta Quest 2). A headset's release is an annotated tag `<headset>/7.2-N`, which the headset's
repository pins. This repository's own README is [.github/README.md](.github/README.md); `README` at the root is the
kernel's.

The project's rules for issues, documents, code and changes:
[conventions](https://github.com/overpressure/overpressure/blob/main/docs/develop/conventions.md).

## Setup and commands

The tree is large: clone one branch, without blobs, and check out only what you need
(`git clone --filter=blob:none --single-branch --branch <layer>/7.2 https://github.com/overpressure/linux`).
A kernel is built with overpressure's tooling in its build container, by the headset's `kernel.json`, from a
checkout of overpressure with the headset in `devices/<codename>/` and this tree in `out/linux`, as
[the Build workflow](.github/workflows/build.yml) does:

```sh
uv run python -m overpressure container run -- \
bash overpressure/build/build-kernel.sh devices/phoenix out/linux /var/tmp/kernel out/kernel
shellcheck .github/scripts/*.sh # the CI's scripts (CI also runs actionlint on the workflows)
python OVERPRESSURE/scripts/check-docs.py --repo . --agents # AGENTS.md's links and CLAUDE.md; OVERPRESSURE: a checkout of it
```

A headset's own kernel tests are `tools/testing/overpressure/<headset>/run.sh` on its branch. The PICO 4's changes
and how they are tested on the headset: phoenix's
[kernel.md](https://github.com/overpressure/phoenix/blob/main/docs/internals/kernel.md#changes-to-valves-tree).

## Layout

- `.github/layers`: each branch and the branch it takes its changes from.
- `.github/workflows/`: `valve.yml` (Mondays: `valve/7.2` forward to Valve's newest commit), `layers.yml` (opens
the merge pull requests up the layers), `build.yml` (builds each headset's kernel, lints, releases tags; its `ci`
is the required check). `.github/scripts/`: their shell scripts.
- Everything else is the kernel ([branches](.github/README.md#branches), [workflows](.github/README.md#workflows)).

## Hard rules

- **Never rebase or force-push** a layer branch, and never move or delete a tag. A change lands on the lowest layer
it belongs to and moves up by pull request, merged with a merge commit; a conflict is resolved in the pull
request that meets it. `valve/7.2` only moves forward, by the Valve workflow.
- **Kernel code follows the kernel's own process:** GPL-2.0-only with SPDX identifiers, the kernel's coding style
and commit subjects (`subsystem: driver - summary`), and its rules for AI assistants
(`Documentation/process/coding-assistants.rst`: an agent never adds a `Signed-off-by`). CI and documents take
conventional commit titles (`ci:`, `docs:`).
- **Valve's `.gitignore` ignores dotfiles:** add `.github/` files with `git add -f`. On Windows a checkout shows
the kernel's case-colliding files as modified: stage only your files by name, never `commit -a`.
- **A kernel reaches a headset only through a tag** that the headset's repository pins after its release checklist
on the hardware; hardware tests need the recoverable path the headset's `AGENTS.md` defines.

## Changes

A branch from the lowest layer the change belongs to and a pull request into it; merged with a merge commit once
`ci` passes: `common/7.2` after a review by `core`, which alone merges there; a SoC's or headset's layer by its
team (`gh pr merge --merge --admin`)
([GOVERNANCE.md](https://github.com/overpressure/.github/blob/main/GOVERNANCE.md#reviews)). The Layers workflow
then opens the pull requests that carry it up; merge each once its `ci` passes. Releasing a headset's kernel:
[tags and releases](.github/README.md#tags-and-releases).
1 change: 1 addition & 0 deletions CLAUDE.md
Loading