refs: OpenBSD, Linux 7.0.0 and NetBSD trunk as shallow submodules

refs/openbsd/src  github.com/openbsd/src      master  6689907bd
refs/linux/7.0.0  gitlab.nura.eco/.../linux   pin     8e126dbc4 (mobile/kernel/PIN, VERSION 7.0.0)
refs/netbsd/src   github.com/NetBSD/src       trunk   bb3360239

All shallow (shallow = true), read-only reference trees.  mobile/ builds
from refs/linux/7.0.0; src/ is Makronix's own fork, not a reference.
This commit is contained in:
lotherk committed 2026-11-09 23:29:42 +00:00
1 parent 0a9f83bd32
commit f21ce15c7c
4 files changed
+46

No files matched your search

+10
View File
@@ -1,3 +1,13 @@
[submodule "refs/openbsd/src"]
path = refs/openbsd/src
url = https://github.com/openbsd/src.git
shallow = true
[submodule "refs/linux/7.0.0"]
path = refs/linux/7.0.0
url = https://gitlab.nura.eco/soc/qualcomm-sm8150/linux.git
shallow = true
[submodule "refs/netbsd/src"]
path = refs/netbsd/src
url = https://github.com/NetBSD/src.git
branch = trunk
shallow = true
+34
View File
@@ -0,0 +1,34 @@
# refs/ -- upstream sources to read and port from
## What is in it
- `openbsd/src/` -- the OpenBSD source tree (official GitHub mirror), shallow,
one commit. For reading and porting drivers and kernel code.
- `netbsd/src/` -- the NetBSD source tree, trunk, shallow. Upstream, to
compare against our `src/` fork; never a build input.
- `linux/7.0.0/` -- the one shared Linux tree; `mobile/kernel/PIN` names its
commit (`KERNEL_REF`), and `mobile/tools/fetch-kernel.sh` clones it locally
and applies `mobile/kernel/patches/` on top. Shallow, detached at the pin.
For reading and porting drivers and filesystems (ext4, jbd2).
Both are git submodules, pinned by the parent repository's gitlink. The
`.gitmodules` entries carry `shallow = true`.
## Rules
- These trees are **read-only sources**. The desktop build never reads them;
`mobile/` clones the Linux tree into `mobile/build/` (hardlinks, no network)
and applies its patches there, so the source of truth stays here.
- **Do not edit them.** An imported change is a patch under `patches/src/`
(desktop) or `mobile/kernel/patches/` (phone); the reference tree stays at
the upstream commit. `git -C refs/... status` must stay clean.
- **Do not commit inside the submodules.** A pin is moved by updating the
gitlink in the parent repository, together with the `PIN`/`IMPORT` record
and the measurement that justifies it.
- Licences stay as upstream: OpenBSD ISC/BSD, Linux GPL-2.0. Every import
taken from here is recorded in `docs/LICENSING.md` and `docs/IMPORTS.md`
(see the plan `.hermes/plans/2026-11-09_225400-ext4-nativ-im-netbsd-kernel.md`,
sections 10 and 11).
- The Linux tree is the **mobile** pin. It is not a second kernel for the
desktop; it exists so a driver or format can be read in the version the
phone actually runs.
+1
Submodule refs/linux/7.0.0 added at 8e126dbc40.
+1
Submodule refs/netbsd/src added at bb3360239e.