Files
makronix/mobile/kernel/AGENTS.md
T
2026-11-15 10:19:15 +00:00

34 lines
1.4 KiB
Markdown

# mobile/kernel/ -- kernel pin and Makronix patch series
## What it is for
Records which Linux kernel the phones are built from and carries Makronix's own
changes to it as an ordered patch series.
## What is in it
- `PIN` -- the kernel pin (`KERNEL_COMMIT` / `KERNEL_PATCHDIR`, read by
`mobile/tools/fetch-kernel.sh`); source is `../refs/linux/7.0.14` (shared,
read-only submodule), as described in `mobile/AGENTS.md`.
- `patches/` -- the patch series applied in filename order (0001 onward).
- `patches-7.4/` -- historical patches, not applied (see `mobile/AGENTS.md` and
`mobile/docs/NEXT.md`).
## What may be changed
- `PIN` when the kernel pin moves, updated together with the shared submodule and
the measurement that justifies it (`mobile/tools/fetch-kernel.sh` checks for
drift).
- `patches/` -- add or update patches (exported from a build tree, e.g. with
`git format-patch`) to carry Makronix's kernel changes.
## What must not be touched
- The imported kernel tree `../refs/linux/7.0.14` is read-only; never edit it.
Own changes live only as patches in `mobile/kernel/patches/`.
- `patches-7.4/` is history, not the applied series.
- Note: `mobile/patches/` (a separate, empty directory under `mobile/`) is not the
same as `mobile/kernel/patches/` and is unused per `mobile/AGENTS.md`.
<!-- License: CNCL 1.0 (Could Not Care Less), see LICENSE at the top of the tree. -->