AGENTS.md of tools, vmbuild, .claude, www, ext, docs, refs: short, checked against the tree, VM scripts marked legacy; the old texts in docs/reference
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
113e5f41ff
commit
f9767ef1a7
10 files changed
+666
-303
No files matched your search
+19
-12
@@ -1,18 +1,25 @@
|
||||
# .claude/ -- Claude Code configuration for this tree
|
||||
|
||||
## What it is for
|
||||
|
||||
What an AI session may do in this tree.
|
||||
|
||||
## What is in it
|
||||
|
||||
- `settings.json` -- permission allow/deny lists and the PreToolUse hook
|
||||
(`tools/claude-build-gate.sh`) that enforces the forbidden commands of the
|
||||
`tools/claude-build-gate.sh`, which enforces the forbidden commands of the
|
||||
root `AGENTS.md`.
|
||||
- `settings.local.json` -- not tracked; local permissions of one machine.
|
||||
|
||||
Rules: this file decides what an AI session may do here. Change it only when
|
||||
the user asks, and say what you changed. Do not weaken the hook to get a
|
||||
command through; if a legitimate read is refused, put it in a script under
|
||||
`tools/` instead (root `AGENTS.md`, "Forbidden"). The allow-list entry for
|
||||
`python3 tools/fde-manual.py` was removed on 2026-11-06 together with the
|
||||
script (the user asked to delete the leftovers).
|
||||
## What may be changed
|
||||
|
||||
2026-11-08: Konrad lifted the sudo ban. `Bash(sudo:*)` is gone from the deny list
|
||||
of `settings.json` and sits in the allow list of `~/.claude/settings.json`. What
|
||||
stays as a rule, not as a hook: `rpcbind` is never restarted or stopped (his CDE
|
||||
desktop depends on it), and sudo is for installing host packages and the like,
|
||||
not for touching the build output.
|
||||
Only the user changes `settings.json`; an AI session does not. If a change is
|
||||
needed, say what and why.
|
||||
|
||||
## What must not be touched
|
||||
|
||||
- Do not weaken the hook to get a command through. If a legitimate read is
|
||||
refused, put it in a script under `tools/` instead.
|
||||
- `rpcbind` is never restarted or stopped (the user's CDE desktop depends on
|
||||
it). `sudo` is allowed (user's `~/.claude/settings.json`) for installing
|
||||
host packages and the like, not for touching the build output.
|
||||
+29
-25
@@ -1,33 +1,37 @@
|
||||
# docs/ -- binding rules and saved reading
|
||||
# docs/ -- binding rules, plans and saved reading
|
||||
|
||||
## What it is for
|
||||
|
||||
The one binding contract, the dated plans, and the documentation read before
|
||||
changes. Status, handoffs and "state of the world" documents do not live
|
||||
here: they go stale within a day and mislead. What is durable goes into the
|
||||
`AGENTS.md` of the directory it concerns, with a log line as evidence.
|
||||
|
||||
## What is in it
|
||||
|
||||
- `BUILD-CONTRACT.md` -- binding (German). The one way to build, the three
|
||||
- `BUILD-CONTRACT.md` -- binding (German): the one way to build, the three
|
||||
sections every task card needs (measurable done, evidence, sources), the
|
||||
reviewer's duty to rerun, "docs before code", no status prose.
|
||||
- `reference/` -- what upstream documentation says, saved with source and
|
||||
date (see its `AGENTS.md`).
|
||||
reviewer's duty to rerun, "docs before code".
|
||||
- `UPDATING.md` -- how a Makronix system is updated.
|
||||
- `OFFLINE-BUILD.md` -- the source sets (`make sourcesets`, `make isosrc`).
|
||||
- `BUILD-VM.md` -- the kept VM made from the DVD with sources
|
||||
(`tools/devvm.sh`), a test and playground machine, not the way to build.
|
||||
- `PLATFORMS.md` -- platforms and their tests in QEMU.
|
||||
- `NEXT.md`, `MCDE-PROGRAMS.md` -- dated work plans; whoever finishes an item
|
||||
strikes it, an empty file is removed. `NEXT.md` is partly outdated (its own
|
||||
banner says which parts).
|
||||
- `reference/` -- saved upstream documentation (`reference/AGENTS.md`).
|
||||
- `logo/` -- the logo (`logo/AGENTS.md`).
|
||||
|
||||
## Rules
|
||||
## What may be changed
|
||||
|
||||
- `BUILD-CONTRACT.md` is a contract, not a log. Change it only when the user
|
||||
asks. Known stale parts, to be rewritten with the user:
|
||||
- section 6 defines "done" by the encrypted-root chain through
|
||||
`boot-com.iso`; the goal is now in `GOAL.md` (a sysinst that encrypts);
|
||||
- sections 1 and 6 name `make release` followed by the ISO; the measured
|
||||
order for a medium is `make release ARCH=amd64`, `make iso`
|
||||
(root `AGENTS.md`, "Building").
|
||||
- Status, handoffs and "state of the world" documents do not live here. They
|
||||
go stale within a day and then mislead; one such file (a handoff dated
|
||||
2026-11-05) held three wrong claims and was deleted on 2026-11-06. What is
|
||||
durable goes into the `AGENTS.md` of the directory it concerns, with a log
|
||||
line as evidence.
|
||||
Plans and the guides above, as work proceeds. `BUILD-CONTRACT.md` only when
|
||||
the user asks. Known stale parts of it, to be rewritten with the user:
|
||||
section 6 defines "done" by the encrypted-root chain through `boot-com.iso`
|
||||
(the goal is now in `GOAL.md`); sections 1 and 6 name `make release` then the
|
||||
ISO, while the measured order is `make release ARCH=amd64`, `make iso`; and it
|
||||
predates cross-and-native building.
|
||||
|
||||
- `UPDATING.md` -- how a Makronix system is updated: packages, base, the gap for an encrypted system (the kernel on the boot partition). What is set up and what is not measured.
|
||||
- `BUILD-VM.md` -- the kept build VM (made from the DVD with sources, `tools/devvm.sh`), how to stop it, what was measured about it.
|
||||
- `OFFLINE-BUILD.md` -- the source sets (`make sourcesets`, `make isosrc`), what
|
||||
`msrc` carries, where it lands, which distfiles, what is proven.
|
||||
## What must not be touched
|
||||
|
||||
- `NEXT.md` -- a dated work plan for the next session (written 2026-11-09 for a hand-over). It is
|
||||
an exception to the rule above because it carries a date and a delete-when-done rule: whoever
|
||||
finishes an item strikes it, and an empty file is removed.
|
||||
No status or handoff files. `BUILD-CONTRACT.md` is a contract, not a log.
|
||||
+27
-37
@@ -1,46 +1,36 @@
|
||||
# docs/logo -- the Makronix logo
|
||||
|
||||
- `makronix.svg` -- the logo (2026-11-08, Konrad: "oldschool 90s"): a bevelled
|
||||
Motif tile in CDE blue-violet with a chrome M, a perspective grid, an orange
|
||||
swoosh and a sparkle; the word MAKRONIX in chrome italic; "BASED ON NETBSD · 0.99.9".
|
||||
- `makronix.png` -- the same, 1140x420, rendered by Firefox headless.
|
||||
## What it is for
|
||||
|
||||
The letters are text in the SVG, set in Arial Black (fallbacks Helvetica Neue,
|
||||
Impact): a machine without those fonts draws another bold sans. Turn the text
|
||||
into outlines before the logo goes on a medium or a web page.
|
||||
The reference logo and its derived forms. Release logos are themed from it
|
||||
(`tools/theme-logo.sh`; a release is named after a CDE palette, `GOAL.md`).
|
||||
|
||||
Render: `firefox --headless --no-remote --profile <empty dir> --screenshot out.png
|
||||
--window-size=1140,420 file://.../makronix.svg` (ImageMagick's own SVG renderer
|
||||
ignores `fill="none"` and is not used; chromium crashed here).
|
||||
## What is in it
|
||||
|
||||
May be changed: the colours, the layout. The word stays "Makronix", and the
|
||||
logo does not carry the NetBSD flag: "based on NetBSD" is text.
|
||||
- `makronix.svg`, `makronix.png` (1140x420) -- the wide logo: bevelled Motif
|
||||
tile in CDE blue-violet, chrome M, the word MAKRONIX, "BASED ON NETBSD".
|
||||
- `makronix-square.svg` and PNGs `-340`, `-239`, `-128`, `-64`, `-1080` -- the
|
||||
tile alone. `-1080` is the phone's boot logo (`KERNEL_LOGO` in
|
||||
`mobile/devices/hotdogb/device.conf`).
|
||||
- `Makronix.pm` -- the 239x239 square as XPM, for `dtlogin`. Not wired in yet:
|
||||
dtlogin takes its logo from `Dtlogin*logoFilename`; the file must go into
|
||||
the `makronix` set and the resource be set.
|
||||
- `makronix.txt`, `makronix-small.txt` -- ASCII forms, output of
|
||||
`tools/logo-ascii.sh` (`-s` for the small one).
|
||||
- `camouflage/` -- the logo of 0.99.9 "Camouflage" (wide, square, 239 PNG,
|
||||
`Makronix.pm`), made by `tools/theme-logo.sh PALETTE.dp NAME OUTDIR`.
|
||||
|
||||
## The other forms (2026-11-08)
|
||||
## What may be changed
|
||||
|
||||
- `makronix-square.svg` -- the tile alone, 340x340, no drop shadow: where the
|
||||
logo must be a square. PNGs of it: `makronix-square-340.png` (as rendered),
|
||||
`-239.png`, `-128.png`, `-64.png` (Lanczos from the 340), and
|
||||
`-1080.png`, rendered from the SVG at 1080x1080 by Firefox headless (an
|
||||
HTML page with the SVG as an <img> of 1080x1080, `--window-size=1080,1080`)
|
||||
-- the boot logo of the phone (`mobile/devices/hotdogb/device.conf`
|
||||
KERNEL_LOGO; the kernel build quantises it to 224 colours).
|
||||
- `Makronix.pm` -- the 239x239 square as XPM, 182 colours, made for CDE's
|
||||
`dtlogin`: the same size as the `Dtlogo.pm` that CDE installs in
|
||||
`/usr/pkg/dt/appconfig/icons/C/`. NOT wired in yet: dtlogin takes its logo
|
||||
from the resource `Dtlogin*logoFilename` of its Xresources; the file has to go
|
||||
into the `makronix` set and the resource has to be set. Not tested.
|
||||
- `makronix.txt` -- the logo in 7-bit ASCII, 64 columns, 7 lines; `makronix-small.txt`
|
||||
-- one line. Both are the output of `tools/logo-ascii.sh` (`-s` for the small
|
||||
one); not carried by any medium yet.
|
||||
Colours and layout. Derived files are regenerated with their tool, not edited.
|
||||
PNGs are rendered with `firefox --headless --no-remote --profile <empty dir>
|
||||
--screenshot out.png --window-size=W,H file://.../x.svg` (ImageMagick ignores
|
||||
`fill="none"`; chromium crashed). The 1080 PNG is the SVG as an `<img>` in an
|
||||
HTML page at `--window-size=1080,1080`.
|
||||
|
||||
## Release themes (2026-11-08)
|
||||
## What must not be touched
|
||||
|
||||
A release is named after a CDE palette and looks like it (GOAL.md). The files
|
||||
above are the reference in the house blue-violet and the template of the
|
||||
theming: `tools/theme-logo.sh PALETTE.dp NAME OUTDIR` swaps the tile, bevel,
|
||||
grid, chrome, outline and swoosh colours for ones derived from the palette
|
||||
(slot 5 the window colour, slot 3 the accent). `camouflage/` is the logo of
|
||||
0.99.9 "Camouflage": the wide logo, the square one as SVG, a 239x239 PNG and
|
||||
`Makronix.pm` (XPM for dtlogin). "BASED ON NETBSD" carries no version number: the
|
||||
number is the Makronix version, and it is not on the logo.
|
||||
- The word stays "Makronix"; the logo carries no NetBSD flag ("based on
|
||||
NetBSD" is text) and no NetBSD version number.
|
||||
- The letters are text in the SVG (Arial Black, fallbacks Helvetica Neue,
|
||||
Impact): turn them into outlines before the logo goes on a medium or page.
|
||||
+30
-36
@@ -1,43 +1,37 @@
|
||||
# docs/reference/ -- documentation read before changing something
|
||||
|
||||
The rule from the root `AGENTS.md`: read the documentation first, save what
|
||||
you read here, with source and date, and quote the sentence that settled the
|
||||
question. One topic per file, `<topic>.txt`.
|
||||
## What it is for
|
||||
|
||||
## Files
|
||||
The rule of the root `AGENTS.md`: read the documentation first, save what you
|
||||
read here with source and date, quote the sentence that settled the question.
|
||||
One topic per file, `<topic>.txt`.
|
||||
|
||||
- `boot-cfg-timeout.txt` -- how the `boot.cfg` timeout reaches a medium
|
||||
(source: tree, import `e523df740`, read 2026-11-04). Basis of patch 0007.
|
||||
- `install-image-boot.txt` -- what the amd64 install image writes into itself
|
||||
at boot (tree, read 2026-11-04).
|
||||
- `installcd-console-and-cgd-boot.txt` -- `installboot(8)` console option and
|
||||
the cgd boot path (tree, read 2026-11-05). Basis of patch 0008.
|
||||
- `cgdroot-guide.txt` -- the NetBSD wiki page on encrypted root, text
|
||||
extracted (wiki.netbsd.org/security/cgdroot, fetched 2026-11-05).
|
||||
- `make-release-build.md` -- `src/BUILDING` on `release` (read 2026-11-05).
|
||||
- `qbootctl.txt` -- where a Qualcomm ABL phone keeps its A/B slot state in
|
||||
the GPT, from linux-msm/qbootctl (GitHub, commit 39a6e6d, fetched
|
||||
2026-11-07). Basis of `mobile/soc/sm8150/rootfs/usr/bin/qcom-ab-slot`.
|
||||
- `cgdroot-tree.txt` -- the encrypted-root machinery the NetBSD tree already
|
||||
carries (cgdroot.rc, the miniroot module, what is on the CD), tree and ISO
|
||||
read 2026-11-06; its last section lists what is still unread.
|
||||
- `cgdroot-design.txt` -- boot.cfg `load`, the `NAME=cgd.conf` mount, the
|
||||
gpt/cgdconfig calls, and the design of the encrypted install in sysinst
|
||||
(tree, read 2026-11-06); its last section lists what the test must decide.
|
||||
- `cde-colours.txt` -- slot 5 of Default.dp is the window colour, measured on a
|
||||
running CDE (2026-11-06); the other slots are not mapped.
|
||||
- `sysinst-survey.txt` -- what sysinst already does about colours, whole-disk
|
||||
install and cgd, with file:line (tree, read 2026-11-06; a first pass with
|
||||
grep, the "Not yet read" list at its end is what is still open).
|
||||
## What is in it
|
||||
|
||||
## Caveats
|
||||
Records by area; each file's first lines name source and date.
|
||||
|
||||
- Install media and encrypted root: `boot-cfg-timeout`, `install-image-boot`,
|
||||
`installcd-console-and-cgd-boot`, `cgdroot-guide`, `cgdroot-tree`,
|
||||
`cgdroot-design`, `sysinst-survey`, `make-release-build.md`, `syspkgs`.
|
||||
- MCDE and its system services: `cde-colours`, `cde-colorsets`, `frontpanel`,
|
||||
`motif-png`, `desktop-entry`, `shortcuts`, `photoshop-ui.csv`, `battery`,
|
||||
`borg`, `disks`, `dns-sd`, `netconfig`, `npf-default.conf`, `permissions`,
|
||||
`sharing`, `wifi`.
|
||||
- Phone: `qbootctl`.
|
||||
- Removed text kept whole: `agents-history-2026-11-13.txt` (root
|
||||
`AGENTS.md`), `tools-agents-history-2026-11-13.txt` (the AGENTS.md files of
|
||||
`tools/`, `.claude/`, `www/`, `ext/`, `docs/`, `refs/` before they were
|
||||
shortened).
|
||||
|
||||
## What may be changed
|
||||
|
||||
Add a file for every area before you change it; do not paraphrase from
|
||||
memory. Correct a file by a dated note, not by silent rewriting.
|
||||
|
||||
## What must not be touched
|
||||
|
||||
- Quoted upstream sentences are not edited.
|
||||
- These are records of what was read, not of what is true now. A conclusion
|
||||
that went into a patch no longer in `patches/src/` (the cgdroot ones) is
|
||||
history; the quoted sentences from upstream remain valid.
|
||||
- The cgdroot guide says sysinst does not support an encrypted root. That is
|
||||
a statement about the wiki on its date, to be checked against
|
||||
`src/usr.sbin/sysinst` before the sysinst fork designs around it
|
||||
(`GOAL.md`, "Offen").
|
||||
- Add a file for every area before you change it; do not paraphrase from
|
||||
memory.
|
||||
that went into a change since dropped (the cgdroot work) is history. The
|
||||
cgdroot guide says sysinst does not support an encrypted root: that is the
|
||||
wiki on its date, to be checked against `src/usr.sbin/sysinst`.
|
||||
@@ -0,0 +1,416 @@
|
||||
AGENTS.md files as they were on 2026-11-13, before they were simplified.
|
||||
Sources (this repository, working tree at 15260ce07): tools/AGENTS.md, tools/vmbuild/AGENTS.md, .claude/AGENTS.md, www/AGENTS.md, ext/AGENTS.md, docs/AGENTS.md, docs/reference/AGENTS.md, docs/logo/AGENTS.md, refs/AGENTS.md.
|
||||
The old texts are kept whole and verbatim; the rules are in the new files.
|
||||
|
||||
################ tools/AGENTS.md
|
||||
|
||||
# tools/ -- scripts around the build
|
||||
|
||||
All tools are POSIX `sh` (see the root `AGENTS.md`). Check a script with
|
||||
`dash -n` before it is used. You may rewrite anything here freely. The Python
|
||||
that is left is `vmctl.py` and `vmmon.py`, used by `vmbuild/`; they go when
|
||||
`vmbuild/` is moved to `vmsh.sh`.
|
||||
|
||||
## Build (keep, fix where noted)
|
||||
|
||||
- `build-stamp.sh` -- called by `make build|release|iso`. Hashes the
|
||||
repository HEAD, the names of modified/untracked files, and
|
||||
`tools/pkgsrc-cross.mk.conf`. With `-c` (used by `make iso`) it only checks
|
||||
and exits 1 with a message when the key changed. Without it, if the key
|
||||
changed it deletes the derived artefacts (releasedir, instkernel, ramdisks,
|
||||
kmods). Consequence: after a source change, `make release` is needed, not
|
||||
just `make build` (root `AGENTS.md`, "Building").
|
||||
- `makronix-set.sh` -- generates the `makronix` set list and METALOG records
|
||||
from the installed `/usr/pkg` tree.
|
||||
- `pkgsrc-cross.mk.conf` -- the pkgsrc cross configuration (mk fragment),
|
||||
`X11_TYPE=modular` since 2026-11-09.
|
||||
- `claude-build-gate.sh` -- PreToolUse hook for Claude Code, wired in
|
||||
`.claude/settings.json`. Refuses the forbidden commands listed in the root
|
||||
`AGENTS.md`. Its pattern match is textual (`claude-build-gate.sh:33-37`):
|
||||
a command that names `releasedir` and also contains `rm `, `mv `, `cp `,
|
||||
`touch `, `chmod `, `sed -i` or `>` is refused, so a read-only command with
|
||||
`2>&1` is refused too. Defect: it parses the hook's JSON with an inline
|
||||
`python3 -c` (lines 11-14), against the `sh` rule; to be rewritten.
|
||||
|
||||
## MCDE on the build host
|
||||
|
||||
- `mcde-host.sh` (`make mcde-host`, `MCDE_DIRS=install`) -- MCDE for this
|
||||
host's own desktop in /usr/mdt, configuration /etc/mdt: the tree copied
|
||||
to `build/mcde-host` with the path step of the pkgsrc recipe
|
||||
(`/usr/dt`, `/etc/dt`, `/usr/bin/X11` replaced, as its pre-configure
|
||||
does -- without it dtsearchpath points the session at /usr/dt and dtwm
|
||||
finds no front panel), configure, make; with install `make install` into
|
||||
`build/mcde-host-stage` and that over / with sudo rsync. Replaces the
|
||||
hand-run build of 2026-11-11 (`build/logs/mcde-host-install2-2026-11-11.log`).
|
||||
`mcde-linux.sh` (`make mcde-linux`) stays the development build into
|
||||
`build/mcde-root` for screenshots on Xvfb.
|
||||
|
||||
`overlay.sh` and `apply-patches.sh` are deleted: `src/` is tracked, so there is
|
||||
nothing to sync or patch in.
|
||||
|
||||
## VM drivers
|
||||
|
||||
- `vm-boot-iso.sh` -- boot an install CD once under QEMU (BIOS or UEFI), keep
|
||||
the serial console in a log, stop after N seconds. Read-only attach. It
|
||||
types nothing.
|
||||
- `vmsh.sh` (`-c` cpus, `-p` ssh port on localhost) -- a QEMU machine on a serial console, driven from `sh`: `start`
|
||||
(CD with `-I`, a raw install image as a USB stick with `-U`, a qcow2 disk, BIOS
|
||||
or UEFI, KVM when `/dev/kvm` is writable), `send` (printf format, so `\r`
|
||||
works), `wait REGEX [s]` (only output after the last `send`), `since`, `show`,
|
||||
`stop`. The console is a pair of named pipes. State in `build/vmsession/`.
|
||||
sysinst's menus need the letter, a pause, then RETURN. `VMSH_AHCI=yes`
|
||||
selects AHCI instead of PIIX IDE for the BIOS (QEMU 11 lost IDE interrupts
|
||||
under heavy writes). BIOS tested; the `uefi` path has not been run.
|
||||
- `vm-screendump.sh` -- boot a CD or disk once, with a VGA card, and save the
|
||||
screen as a PPM after N seconds; for "the serial console is silent".
|
||||
- `install-cgd.sh` -- like `install-simple.sh` but encrypts: answers the
|
||||
encryption question, types the passphrase at the install and at boot, checks
|
||||
`login:`, the set, CDE, root on cgd0a, and that no root file name is readable
|
||||
in the raw disk image. `-f bios|uefi`.
|
||||
- `install-simple.sh` -- the end-to-end test of the simple installation mode:
|
||||
installs from the CD (or, with `-U`, from the USB stick image of `make usb`,
|
||||
raw or `.gz`, attached as a USB stick) onto an empty disk with the keys a
|
||||
person would press, prints every prompt it had to answer, reboots the disk on
|
||||
its own and checks `login:`, the `makronix` set, CDE and the GPT. Logs in
|
||||
`build/logs/`.
|
||||
- `cd2.sh` -- build the second install CD (`make iso` calls it): `makronix.tar.xz`, its checksums and `cgdroot.kmod`, label MAKRONIX_CD2.
|
||||
- `cd-com0.sh` -- make a copy of an install CD whose loader talks on `com0`
|
||||
(adds `consdev=com0` to `/boot.cfg` with xorriso); everything else, including
|
||||
the boot images, stays as built. For the test VM, where the UEFI loader takes
|
||||
a serial port only after a key on it and no key from qemu's serial pipe
|
||||
reached it.
|
||||
- `cd3.sh` -- (no packages on the media while `packages.binary*.list` name none: paused 2026-11-10, X from pkgsrc does not fit the project's binaries) the install CDs after the second (`make iso` calls it): the binary packages, first-fit onto as many CDs as they need (CD 3, CD 4, ...; `CDPKG_LIMIT` to try a smaller CD), and `cd3.sh stage` for the DVD (`build/cd3`, taken in by patch 0008 through `CDBUILDEXTRA`).
|
||||
- `userland.sh` -- the userland of the `makronix` set in one command: cross-builds `packages.list` here, builds `packages.vm.list` (MCDE, git, X) natively in the build VM; MCDE's archive (`mcde-dist.sh`) and the `ext/` recipes (`ext-sync.sh`) are made and copied into the VM first, packs and unpacks them into the sysroot, writes the set list (`make userland`). Stops at the first failing step. Checks that the VM has the same pkgsrc commit (`PINS`).
|
||||
- `pkg-binaries.sh` -- fetch the NetBSD project's binary packages (firefox, thunderbird, qemu and what they need) for a platform, the lists are `packages.binary*.list` (`docs/BUILD-VM.md`). Since 2026-11-10 those binaries do not fit (they need X in the base); `userland.sh binaries` (`make binaries`) builds the same lists in the build VM instead, `vm-pkgbuild.sh repo` packs the closure with its `pkg_summary.gz`. The lists name PKGPATHs now; readers take the last part as the name.
|
||||
- `vm-pkgbuild.sh`, `vm-pkgcollect.sh` -- build pkgsrc packages natively in the build VM (guest side) and bring them into the sysroot and the `makronix` set (host side). `vm-pkgbuild.sh` removes an installed package the new one `CONFLICTS` with, and builds the forks of `ext/` (`REBUILD` from `userland.sh`) from a clean work directory every time, replacing the installed version (their archive changes without a new version); `vm-pkgcollect.sh` removes from the sysroot what the previous pack had and this one has not (its list: `build/vmsession/usrpkg.tar.gz.files`).
|
||||
- `devvm.sh` -- start, stop (cleanly), ssh and scp for the kept build VM (`docs/BUILD-VM.md`). Hazard: the VM's clock stops while qemu is paused (on 2026-11-10 the host disk ran full and the VM stood "paused (io-error)"); it then lags, the archives unpacked in it are "in the future", and automake regenerates configure in a loop (`build/logs/x-userland-2026-11-11-mcde6.log`: "Makefile.am has modification time 7036 s in the future"). Set it from the host: `DEVUSER=root tools/devvm.sh ssh "date -u $(date -u +%Y%m%d%H%M.%S)"`. The key `build/vm/id_vm` was made anew on 2026-11-10 (the old one was deleted with the disk); it is in root's and tester's authorized_keys.
|
||||
- `vmctl.py`, `vmmon.py` -- drive the NetBSD build host VM over its serial
|
||||
console and the qemu monitor. Used by `vmbuild/`. Replace with `sh`:
|
||||
`vmsh.sh` above is the same mechanism (named pipe on the serial line);
|
||||
`vmbuild/` has to be moved over to it.
|
||||
- `vm-boot.cfg` -- `boot.cfg` for the build host's live image, console on
|
||||
`com0`. Not part of the distribution.
|
||||
|
||||
## Deleted on 2026-11-06
|
||||
|
||||
The Python drivers of the manual cgdroot procedure (`fde-manual.py`,
|
||||
`fde-test.py`, `fde-console.py`, `fde-key.py`), `install-test.py`,
|
||||
`boottimeout-probe.py` and the `fde-*.seq` key sequences: the goal is a sysinst
|
||||
that encrypts by itself (`GOAL.md`), and `install-simple.sh` / `install-cgd.sh`
|
||||
drive that in `sh`. They stay in git history.
|
||||
|
||||
## Subdirectory
|
||||
|
||||
- `vmbuild/` -- see its `AGENTS.md`.
|
||||
|
||||
## The source set (msrc)
|
||||
|
||||
`docs/OFFLINE-BUILD.md` explains what the set is. The tools:
|
||||
|
||||
- `makronix-distfiles.sh` -- `list`, `fetch`, `check`, `stage DIR`: the
|
||||
distfiles of the Makronix packages only (`packages.list` -> closure ->
|
||||
`distfiles.lst`), kept in `build/distfiles`.
|
||||
- `makronix-pins.sh` -- `write`, `check`: `PINS`, the upstream base in
|
||||
`src/BASE` and the pkgsrc commit.
|
||||
- `msrc-stage.sh DIR` -- assembles the content of the set (the tree, pkgsrc
|
||||
with its `.git`, the distfiles, the link `src`); `src` itself comes from
|
||||
NetBSD's source sets. `make sourcesets` runs the three and then
|
||||
`build.sh sourcesets`.
|
||||
|
||||
## Images raw, packed on request (2026-11-08)
|
||||
|
||||
`images.sh unpack|pack|sums` keeps the install images of the release directory raw
|
||||
(`make usb` unpacks after the build; `make compress` packs them) and renews their
|
||||
lines in `MD5` and `SHA512`.`test.sh`/`install-simple.sh -U` take a raw image as it is. `mediacheck.sh`,
|
||||
`test.sh` (`make test`): see their headers. Writing a stick is not in the tree:
|
||||
check `lsblk` first (a name that is not a block device makes `dd` write a plain
|
||||
file into /dev), and read the stick back twice before it goes to a machine; a
|
||||
flaky USB port gave different sums on every read (2026-11-08).
|
||||
|
||||
################ tools/vmbuild/AGENTS.md
|
||||
|
||||
# tools/vmbuild/ -- the NetBSD build host
|
||||
|
||||
## What this is for
|
||||
|
||||
`wm/cde` cannot be cross-built from a Linux host: pkgsrc refuses
|
||||
`USE_TOOLS+=awk:run` when `OPSYS != NATIVE_OPSYS` (`mk/tools/replace.mk:142`,
|
||||
root `AGENTS.md`, "Where a Linux build host stops"). So CDE is built inside a
|
||||
NetBSD amd64 VM that this tree produces itself (`build.sh ... live-image`),
|
||||
driven over its serial console. Nothing in pkgsrc and no recipe changes.
|
||||
|
||||
`README` here is the step-by-step record of how the host image is built and
|
||||
booted; read it before running anything.
|
||||
|
||||
## What is in it
|
||||
|
||||
- `stage1-fetch.sh` .. `stage6-pack.sh` -- run inside the VM, in order: (1)
|
||||
take pkgsrc and `mk.conf` from the host's http server (10.0.2.2), (2) the X
|
||||
sets from this tree's release directory, (3) bootstrap pkgsrc into
|
||||
`/usr/pkg`, (4) the rest of `mk.conf` and the build directories, (5) build
|
||||
and install `wm/cde`, (6) pack CDE's runtime closure out of `/usr/pkg`
|
||||
(walked over the `@pkgdep` lines in `+CONTENTS`).
|
||||
- `vm-mk.conf`, `mk-cde.conf` -- `mk.conf` fragments for the build host.
|
||||
`mk-cde.conf` is scoped to `wm/cde` (C dialect `gnu11`, GCC 14 diagnostics).
|
||||
|
||||
## Rules
|
||||
|
||||
- Do not patch pkgsrc to get a package through; a package that cannot build
|
||||
here is a finding for the report (root `AGENTS.md`).
|
||||
- The stage scripts talk to the VM through `tools/vmctl.py`, which is to be
|
||||
replaced by `sh`. Keep the stage interfaces stable when you do.
|
||||
- `stage6-pack.sh` writes the closure to `/var/tmp/usrpkg.tar.gz` inside the
|
||||
VM (line 63). A copy sits at `build/usrpkg.tar.gz`; how it gets out of the
|
||||
VM is not documented here and has not been checked. Results belong in
|
||||
`build/`, never in the tree.
|
||||
- None of this was re-run in the session of 2026-11-06; the log names in
|
||||
`README` point into `build/logs/` and were not checked.
|
||||
|
||||
################ .claude/AGENTS.md
|
||||
|
||||
# .claude/ -- Claude Code configuration for this tree
|
||||
|
||||
- `settings.json` -- permission allow/deny lists and the PreToolUse hook
|
||||
(`tools/claude-build-gate.sh`) that enforces the forbidden commands of the
|
||||
root `AGENTS.md`.
|
||||
|
||||
Rules: this file decides what an AI session may do here. Change it only when
|
||||
the user asks, and say what you changed. Do not weaken the hook to get a
|
||||
command through; if a legitimate read is refused, put it in a script under
|
||||
`tools/` instead (root `AGENTS.md`, "Forbidden"). The allow-list entry for
|
||||
`python3 tools/fde-manual.py` was removed on 2026-11-06 together with the
|
||||
script (the user asked to delete the leftovers).
|
||||
|
||||
2026-11-08: Konrad lifted the sudo ban. `Bash(sudo:*)` is gone from the deny list
|
||||
of `settings.json` and sits in the allow list of `~/.claude/settings.json`. What
|
||||
stays as a rule, not as a hook: `rpcbind` is never restarted or stopped (his CDE
|
||||
desktop depends on it), and sudo is for installing host packages and the like,
|
||||
not for touching the build output.
|
||||
|
||||
################ www/AGENTS.md
|
||||
|
||||
# www/ -- the website, makronix.hiddenbox.org
|
||||
|
||||
## What it is for
|
||||
|
||||
The public pages about Makronix. Static HTML 4.01 Strict and one CSS 2.1
|
||||
style sheet; no scripts, no generator, no server-side code. Not deployed yet
|
||||
(Konrad, 2026-11-09: "erstmal nur lokal").
|
||||
|
||||
## What is in it
|
||||
|
||||
- `index.html` (home), `download.html` (media, writing a stick),
|
||||
`install.html`, `desktop.html` (MCDE), `source.html` (building it yourself).
|
||||
- `style.css` -- the release palette (Camouflage) as Motif windows and bevels.
|
||||
- `img/` -- the logo (`docs/logo/camouflage`) and screenshots taken with
|
||||
`tools/mcde-shot.sh` (`build/mcde-shots/`).
|
||||
|
||||
## Rules
|
||||
|
||||
- Every statement on a page is something the tree has measured (a log, a
|
||||
test, a file); what is planned says so ("being built"). Media sizes come
|
||||
from the release directory of the build the page describes.
|
||||
- No page names a product that inspired a part of Makronix.
|
||||
- Check a changed page with `xmllint --html --noout`; keep HTML 4.01 Strict.
|
||||
- Deploying is a decision of Konrad's; nothing here uploads anything.
|
||||
|
||||
################ ext/AGENTS.md
|
||||
|
||||
# ext/ -- third-party sources that Makronix ships and changes
|
||||
|
||||
## What it is for
|
||||
|
||||
`ext/src/<name>/` is an upstream source tree that Makronix owns as a fork,
|
||||
`ext/src/<name>/pkgsrc/` its pkgsrc recipe, `ext/src/<name>/IMPORT` the record of
|
||||
where it came from (root `AGENTS.md`, "What belongs where"). A second package
|
||||
built from the same tree has its recipe in `ext/src/<name>/pkgsrc-<part>/` and
|
||||
becomes `<category>/<name>-<part>` (`tools/ext-sync.sh`): MCDE's Motif,
|
||||
`ext/src/mcde/pkgsrc-motif`, is `x11/mcde-motif`.
|
||||
|
||||
## What is in it
|
||||
|
||||
- `src/mcde/` -- MCDE, the Makronix fork of CDE 2.5.3 (`src/mcde/AGENTS.md`).
|
||||
|
||||
## Rules
|
||||
|
||||
- The first commit of a tree is the upstream archive and recipe, unchanged, so that
|
||||
every change after it is a visible diff. Import with `git add -f`: upstream
|
||||
`.gitignore` files hide files that are in the archive (CDE: 612 of 17826).
|
||||
- An update to a newer upstream is a merge of that upstream onto the fork, with
|
||||
`IMPORT` renewed -- never a silent overwrite.
|
||||
- Nothing here is built by `build.sh`; it is built by pkgsrc from the recipe.
|
||||
- Makronix/Linux (since 2026-11-11, `mobile/docs/NETBSD-USERLAND.md`): what
|
||||
neither `src/` nor pkgsrc has -- glibc, kmod, udev, the Qualcomm daemons
|
||||
-- is built LFS-style from upstream. Such a tree has `ext/src/<name>/mx/`
|
||||
instead of `pkgsrc/`: our recipe, a NetBSD-style Makefile that the
|
||||
Makronix/Linux build runs (no pkgsrc). `IMPORT` says `recipe mx/` and
|
||||
names the LFS chapter it follows, if any. The import rules above hold
|
||||
the same: the archive unchanged first, its signature checked and named.
|
||||
|
||||
################ docs/AGENTS.md
|
||||
|
||||
# docs/ -- binding rules and saved reading
|
||||
|
||||
## What is in it
|
||||
|
||||
- `BUILD-CONTRACT.md` -- binding (German). The one way to build, the three
|
||||
sections every task card needs (measurable done, evidence, sources), the
|
||||
reviewer's duty to rerun, "docs before code", no status prose.
|
||||
- `reference/` -- what upstream documentation says, saved with source and
|
||||
date (see its `AGENTS.md`).
|
||||
|
||||
## Rules
|
||||
|
||||
- `BUILD-CONTRACT.md` is a contract, not a log. Change it only when the user
|
||||
asks. Known stale parts, to be rewritten with the user:
|
||||
- section 6 defines "done" by the encrypted-root chain through
|
||||
`boot-com.iso`; the goal is now in `GOAL.md` (a sysinst that encrypts);
|
||||
- sections 1 and 6 name `make release` followed by the ISO; the measured
|
||||
order for a medium is `make release ARCH=amd64`, `make iso`
|
||||
(root `AGENTS.md`, "Building").
|
||||
- Status, handoffs and "state of the world" documents do not live here. They
|
||||
go stale within a day and then mislead; one such file (a handoff dated
|
||||
2026-11-05) held three wrong claims and was deleted on 2026-11-06. What is
|
||||
durable goes into the `AGENTS.md` of the directory it concerns, with a log
|
||||
line as evidence.
|
||||
|
||||
- `UPDATING.md` -- how a Makronix system is updated: packages, base, the gap for an encrypted system (the kernel on the boot partition). What is set up and what is not measured.
|
||||
- `BUILD-VM.md` -- the kept build VM (made from the DVD with sources, `tools/devvm.sh`), how to stop it, what was measured about it.
|
||||
- `OFFLINE-BUILD.md` -- the source sets (`make sourcesets`, `make isosrc`), what
|
||||
`msrc` carries, where it lands, which distfiles, what is proven.
|
||||
|
||||
- `NEXT.md` -- a dated work plan for the next session (written 2026-11-09 for a hand-over). It is
|
||||
an exception to the rule above because it carries a date and a delete-when-done rule: whoever
|
||||
finishes an item strikes it, and an empty file is removed.
|
||||
|
||||
################ docs/reference/AGENTS.md
|
||||
|
||||
# docs/reference/ -- documentation read before changing something
|
||||
|
||||
The rule from the root `AGENTS.md`: read the documentation first, save what
|
||||
you read here, with source and date, and quote the sentence that settled the
|
||||
question. One topic per file, `<topic>.txt`.
|
||||
|
||||
## Files
|
||||
|
||||
- `boot-cfg-timeout.txt` -- how the `boot.cfg` timeout reaches a medium
|
||||
(source: tree, import `e523df740`, read 2026-11-04). Basis of patch 0007.
|
||||
- `install-image-boot.txt` -- what the amd64 install image writes into itself
|
||||
at boot (tree, read 2026-11-04).
|
||||
- `installcd-console-and-cgd-boot.txt` -- `installboot(8)` console option and
|
||||
the cgd boot path (tree, read 2026-11-05). Basis of patch 0008.
|
||||
- `cgdroot-guide.txt` -- the NetBSD wiki page on encrypted root, text
|
||||
extracted (wiki.netbsd.org/security/cgdroot, fetched 2026-11-05).
|
||||
- `make-release-build.md` -- `src/BUILDING` on `release` (read 2026-11-05).
|
||||
- `qbootctl.txt` -- where a Qualcomm ABL phone keeps its A/B slot state in
|
||||
the GPT, from linux-msm/qbootctl (GitHub, commit 39a6e6d, fetched
|
||||
2026-11-07). Basis of `mobile/soc/sm8150/rootfs/usr/bin/qcom-ab-slot`.
|
||||
- `cgdroot-tree.txt` -- the encrypted-root machinery the NetBSD tree already
|
||||
carries (cgdroot.rc, the miniroot module, what is on the CD), tree and ISO
|
||||
read 2026-11-06; its last section lists what is still unread.
|
||||
- `cgdroot-design.txt` -- boot.cfg `load`, the `NAME=cgd.conf` mount, the
|
||||
gpt/cgdconfig calls, and the design of the encrypted install in sysinst
|
||||
(tree, read 2026-11-06); its last section lists what the test must decide.
|
||||
- `cde-colours.txt` -- slot 5 of Default.dp is the window colour, measured on a
|
||||
running CDE (2026-11-06); the other slots are not mapped.
|
||||
- `sysinst-survey.txt` -- what sysinst already does about colours, whole-disk
|
||||
install and cgd, with file:line (tree, read 2026-11-06; a first pass with
|
||||
grep, the "Not yet read" list at its end is what is still open).
|
||||
|
||||
## Caveats
|
||||
|
||||
- These are records of what was read, not of what is true now. A conclusion
|
||||
that went into a patch no longer in `patches/src/` (the cgdroot ones) is
|
||||
history; the quoted sentences from upstream remain valid.
|
||||
- The cgdroot guide says sysinst does not support an encrypted root. That is
|
||||
a statement about the wiki on its date, to be checked against
|
||||
`src/usr.sbin/sysinst` before the sysinst fork designs around it
|
||||
(`GOAL.md`, "Offen").
|
||||
- Add a file for every area before you change it; do not paraphrase from
|
||||
memory.
|
||||
|
||||
################ docs/logo/AGENTS.md
|
||||
|
||||
# docs/logo -- the Makronix logo
|
||||
|
||||
- `makronix.svg` -- the logo (2026-11-08, Konrad: "oldschool 90s"): a bevelled
|
||||
Motif tile in CDE blue-violet with a chrome M, a perspective grid, an orange
|
||||
swoosh and a sparkle; the word MAKRONIX in chrome italic; "BASED ON NETBSD · 0.99.9".
|
||||
- `makronix.png` -- the same, 1140x420, rendered by Firefox headless.
|
||||
|
||||
The letters are text in the SVG, set in Arial Black (fallbacks Helvetica Neue,
|
||||
Impact): a machine without those fonts draws another bold sans. Turn the text
|
||||
into outlines before the logo goes on a medium or a web page.
|
||||
|
||||
Render: `firefox --headless --no-remote --profile <empty dir> --screenshot out.png
|
||||
--window-size=1140,420 file://.../makronix.svg` (ImageMagick's own SVG renderer
|
||||
ignores `fill="none"` and is not used; chromium crashed here).
|
||||
|
||||
May be changed: the colours, the layout. The word stays "Makronix", and the
|
||||
logo does not carry the NetBSD flag: "based on NetBSD" is text.
|
||||
|
||||
## The other forms (2026-11-08)
|
||||
|
||||
- `makronix-square.svg` -- the tile alone, 340x340, no drop shadow: where the
|
||||
logo must be a square. PNGs of it: `makronix-square-340.png` (as rendered),
|
||||
`-239.png`, `-128.png`, `-64.png` (Lanczos from the 340), and
|
||||
`-1080.png`, rendered from the SVG at 1080x1080 by Firefox headless (an
|
||||
HTML page with the SVG as an <img> of 1080x1080, `--window-size=1080,1080`)
|
||||
-- the boot logo of the phone (`mobile/devices/hotdogb/device.conf`
|
||||
KERNEL_LOGO; the kernel build quantises it to 224 colours).
|
||||
- `Makronix.pm` -- the 239x239 square as XPM, 182 colours, made for CDE's
|
||||
`dtlogin`: the same size as the `Dtlogo.pm` that CDE installs in
|
||||
`/usr/pkg/dt/appconfig/icons/C/`. NOT wired in yet: dtlogin takes its logo
|
||||
from the resource `Dtlogin*logoFilename` of its Xresources; the file has to go
|
||||
into the `makronix` set and the resource has to be set. Not tested.
|
||||
- `makronix.txt` -- the logo in 7-bit ASCII, 64 columns, 7 lines; `makronix-small.txt`
|
||||
-- one line. Both are the output of `tools/logo-ascii.sh` (`-s` for the small
|
||||
one); not carried by any medium yet.
|
||||
|
||||
## Release themes (2026-11-08)
|
||||
|
||||
A release is named after a CDE palette and looks like it (GOAL.md). The files
|
||||
above are the reference in the house blue-violet and the template of the
|
||||
theming: `tools/theme-logo.sh PALETTE.dp NAME OUTDIR` swaps the tile, bevel,
|
||||
grid, chrome, outline and swoosh colours for ones derived from the palette
|
||||
(slot 5 the window colour, slot 3 the accent). `camouflage/` is the logo of
|
||||
0.99.9 "Camouflage": the wide logo, the square one as SVG, a 239x239 PNG and
|
||||
`Makronix.pm` (XPM for dtlogin). "BASED ON NETBSD" carries no version number: the
|
||||
number is the Makronix version, and it is not on the logo.
|
||||
|
||||
################ refs/AGENTS.md
|
||||
|
||||
# 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.
|
||||
+23
-21
@@ -2,29 +2,31 @@
|
||||
|
||||
## What it is for
|
||||
|
||||
`ext/src/<name>/` is an upstream source tree that Makronix owns as a fork,
|
||||
`ext/src/<name>/pkgsrc/` its pkgsrc recipe, `ext/src/<name>/IMPORT` the record of
|
||||
where it came from (root `AGENTS.md`, "What belongs where"). A second package
|
||||
built from the same tree has its recipe in `ext/src/<name>/pkgsrc-<part>/` and
|
||||
becomes `<category>/<name>-<part>` (`tools/ext-sync.sh`): MCDE's Motif,
|
||||
`ext/src/mcde/pkgsrc-motif`, is `x11/mcde-motif`.
|
||||
`ext/src/<name>/` is an upstream tree Makronix owns as a fork. Its pkgsrc
|
||||
recipe is `ext/src/<name>/pkgsrc/`; `IMPORT` records pkgsrc path, version,
|
||||
archive, hash, signature and licence. A second package from the same tree has
|
||||
its recipe in `pkgsrc-<part>/` and becomes `<category>/<name>-<part>`
|
||||
(`tools/ext-sync.sh`): `ext/src/mcde/pkgsrc-motif` is `x11/mcde-motif`.
|
||||
|
||||
## What is in it
|
||||
|
||||
- `src/mcde/` -- MCDE, the Makronix fork of CDE 2.5.3 (`src/mcde/AGENTS.md`).
|
||||
- `src/mcde/` -- MCDE, the fork of CDE 2.5.3 (`src/mcde/AGENTS.md`).
|
||||
- `src/afpfs-ng/` -- AFP client, with recipe `pkgsrc/`.
|
||||
- `src/glibc/` -- glibc 2.44 for Makronix/Linux; no `pkgsrc/`: its recipe is
|
||||
`mx/`, a NetBSD-style Makefile run by the Makronix/Linux build (LFS-style,
|
||||
from upstream; `mobile/docs/NETBSD-USERLAND.md`).
|
||||
|
||||
## Rules
|
||||
## What may be changed
|
||||
|
||||
- The first commit of a tree is the upstream archive and recipe, unchanged, so that
|
||||
every change after it is a visible diff. Import with `git add -f`: upstream
|
||||
`.gitignore` files hide files that are in the archive (CDE: 612 of 17826).
|
||||
- An update to a newer upstream is a merge of that upstream onto the fork, with
|
||||
`IMPORT` renewed -- never a silent overwrite.
|
||||
- Nothing here is built by `build.sh`; it is built by pkgsrc from the recipe.
|
||||
- Makronix/Linux (since 2026-11-11, `mobile/docs/NETBSD-USERLAND.md`): what
|
||||
neither `src/` nor pkgsrc has -- glibc, kmod, udev, the Qualcomm daemons
|
||||
-- is built LFS-style from upstream. Such a tree has `ext/src/<name>/mx/`
|
||||
instead of `pkgsrc/`: our recipe, a NetBSD-style Makefile that the
|
||||
Makronix/Linux build runs (no pkgsrc). `IMPORT` says `recipe mx/` and
|
||||
names the LFS chapter it follows, if any. The import rules above hold
|
||||
the same: the archive unchanged first, its signature checked and named.
|
||||
- The forks, as ordinary commits. After changing one, `tools/ext-dist.sh` (or
|
||||
`tools/mcde-dist.sh`) renews the distfile and the recipe's `distinfo`.
|
||||
- An update to a newer upstream is a merge onto the fork with `IMPORT`
|
||||
renewed, never a silent overwrite.
|
||||
|
||||
## What must not be touched
|
||||
|
||||
- The first commit of a tree is the upstream archive and recipe, unchanged
|
||||
(signature checked and named in `IMPORT`), so every later change is a
|
||||
visible diff. Import with `git add -f`: upstream `.gitignore` files hide
|
||||
files that are in the archive.
|
||||
- Nothing here is built by `build.sh`; pkgsrc builds it from the recipe.
|
||||
+23
-27
@@ -1,34 +1,30 @@
|
||||
# refs/ -- upstream sources to read and port from
|
||||
|
||||
## What it is for
|
||||
|
||||
Read-only reference trees. Never a build input.
|
||||
|
||||
## 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).
|
||||
Git submodules (`.gitmodules`, all `shallow = true`):
|
||||
|
||||
Both are git submodules, pinned by the parent repository's gitlink. The
|
||||
`.gitmodules` entries carry `shallow = true`.
|
||||
- `netbsd/src/` -- NetBSD trunk, to compare against our `src/` fork.
|
||||
- `openbsd/src/` -- OpenBSD, for reading and porting drivers.
|
||||
- `linux/7.0.14/` -- kernel.org stable v7.0.14: the tree `mobile/` builds from
|
||||
(`mobile/kernel/PIN`); `mobile/tools/fetch-kernel.sh` clones it locally and
|
||||
applies `mobile/kernel/patches/`.
|
||||
- `linux/7.0.0/`, `linux/7.4-rc1/` -- the qualcomm-sm8150 fork, kept as the
|
||||
reference the extracted patches came from; not built.
|
||||
|
||||
## Rules
|
||||
## What may be changed
|
||||
|
||||
- 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.
|
||||
Only the pin: move the gitlink in the parent repository together with the
|
||||
`PIN` record and the measurement that justifies it.
|
||||
|
||||
## What must not be touched
|
||||
|
||||
- Do not edit or commit inside the submodules; `git -C refs/... status` stays
|
||||
clean. An imported change is a patch under `mobile/kernel/patches/` (phone)
|
||||
or a commit in `src/` (desktop).
|
||||
- Licences stay as upstream (OpenBSD ISC/BSD, Linux GPL-2.0).
|
||||
- The Linux tree is the phone's pin, not a second kernel for the desktop.
|
||||
+59
-105
@@ -1,122 +1,76 @@
|
||||
# tools/ -- scripts around the build
|
||||
|
||||
All tools are POSIX `sh` (see the root `AGENTS.md`). Check a script with
|
||||
`dash -n` before it is used. You may rewrite anything here freely. The Python
|
||||
that is left is `vmctl.py` and `vmmon.py`, used by `vmbuild/`; they go when
|
||||
`vmbuild/` is moved to `vmsh.sh`.
|
||||
## What it is for
|
||||
|
||||
## Build (keep, fix where noted)
|
||||
The scripts the root `Makefile` targets call, and the helpers for tests,
|
||||
media, the source sets and MCDE. Building is cross and native, never in a VM;
|
||||
a VM is only for testing installs and upgrades (root `AGENTS.md`).
|
||||
|
||||
- `build-stamp.sh` -- called by `make build|release|iso`. Hashes the
|
||||
repository HEAD, the names of modified/untracked files, and
|
||||
`tools/pkgsrc-cross.mk.conf`. With `-c` (used by `make iso`) it only checks
|
||||
and exits 1 with a message when the key changed. Without it, if the key
|
||||
changed it deletes the derived artefacts (releasedir, instkernel, ramdisks,
|
||||
kmods). Consequence: after a source change, `make release` is needed, not
|
||||
just `make build` (root `AGENTS.md`, "Building").
|
||||
- `makronix-set.sh` -- generates the `makronix` set list and METALOG records
|
||||
from the installed `/usr/pkg` tree.
|
||||
- `pkgsrc-cross.mk.conf` -- the pkgsrc cross configuration (mk fragment),
|
||||
`X11_TYPE=modular` since 2026-11-09.
|
||||
- `claude-build-gate.sh` -- PreToolUse hook for Claude Code, wired in
|
||||
`.claude/settings.json`. Refuses the forbidden commands listed in the root
|
||||
`AGENTS.md`. Its pattern match is textual (`claude-build-gate.sh:33-37`):
|
||||
a command that names `releasedir` and also contains `rm `, `mv `, `cp `,
|
||||
`touch `, `chmod `, `sed -i` or `>` is refused, so a read-only command with
|
||||
`2>&1` is refused too. Defect: it parses the hook's JSON with an inline
|
||||
`python3 -c` (lines 11-14), against the `sh` rule; to be rewritten.
|
||||
## What is in it
|
||||
|
||||
## MCDE on the build host
|
||||
All scripts are POSIX `sh`; each one's header says usage and purpose, read it
|
||||
before running it.
|
||||
|
||||
- `mcde-host.sh` (`make mcde-host`, `MCDE_DIRS=install`) -- MCDE for this
|
||||
host's own desktop in /usr/mdt, configuration /etc/mdt: the tree copied
|
||||
to `build/mcde-host` with the path step of the pkgsrc recipe
|
||||
(`/usr/dt`, `/etc/dt`, `/usr/bin/X11` replaced, as its pre-configure
|
||||
does -- without it dtsearchpath points the session at /usr/dt and dtwm
|
||||
finds no front panel), configure, make; with install `make install` into
|
||||
`build/mcde-host-stage` and that over / with sudo rsync. Replaces the
|
||||
hand-run build of 2026-11-11 (`build/logs/mcde-host-install2-2026-11-11.log`).
|
||||
`mcde-linux.sh` (`make mcde-linux`) stays the development build into
|
||||
`build/mcde-root` for screenshots on Xvfb.
|
||||
Build and release (called by `make`):
|
||||
|
||||
`overlay.sh` and `apply-patches.sh` are deleted: `src/` is tracked, so there is
|
||||
nothing to sync or patch in.
|
||||
- `build-stamp.sh` -- content key of the sources; `make iso` runs it with `-c`
|
||||
(check only), `make build|release` without (removes the derived artefacts
|
||||
when the key changed, so after a source change `make release` is needed).
|
||||
- `pkgsrc-cross.mk.conf` -- the pkgsrc cross configuration (root `AGENTS.md`).
|
||||
- `makronix-set.sh` -- the `makronix` set list and METALOG records from the
|
||||
installed `/usr/pkg`.
|
||||
- `userland.sh` -- `make userland` / `make binaries`; the package lists are
|
||||
`packages*.list` in the root.
|
||||
- `ext-dist.sh`, `mcde-dist.sh`, `ext-sync.sh` -- the distfile and `distinfo` of
|
||||
a fork in `ext/`, and its recipe copied into pkgsrc.
|
||||
- `pkg-binaries.sh` -- fetch the NetBSD project's binary packages.
|
||||
- `images.sh` -- `unpack|pack|sums` of the install images (`make usb`,
|
||||
`make compress`); images stay raw unless packing is asked for.
|
||||
- `cd2.sh`, `cd3.sh`, `cd-com0.sh` -- the second and further install CDs
|
||||
(`make iso`), and a CD copy whose loader talks on `com0`.
|
||||
- `makronix-distfiles.sh`, `makronix-pins.sh`, `msrc-stage.sh` -- the source
|
||||
set (`make sourcesets`, `docs/OFFLINE-BUILD.md`).
|
||||
|
||||
## VM drivers
|
||||
Tests (they run VMs; `docs/PLATFORMS.md`):
|
||||
|
||||
- `vm-boot-iso.sh` -- boot an install CD once under QEMU (BIOS or UEFI), keep
|
||||
the serial console in a log, stop after N seconds. Read-only attach. It
|
||||
types nothing.
|
||||
- `vmsh.sh` (`-c` cpus, `-p` ssh port on localhost) -- a QEMU machine on a serial console, driven from `sh`: `start`
|
||||
(CD with `-I`, a raw install image as a USB stick with `-U`, a qcow2 disk, BIOS
|
||||
or UEFI, KVM when `/dev/kvm` is writable), `send` (printf format, so `\r`
|
||||
works), `wait REGEX [s]` (only output after the last `send`), `since`, `show`,
|
||||
`stop`. The console is a pair of named pipes. State in `build/vmsession/`.
|
||||
sysinst's menus need the letter, a pause, then RETURN. `VMSH_AHCI=yes`
|
||||
selects AHCI instead of PIIX IDE for the BIOS (QEMU 11 lost IDE interrupts
|
||||
under heavy writes). BIOS tested; the `uefi` path has not been run.
|
||||
- `vm-screendump.sh` -- boot a CD or disk once, with a VGA card, and save the
|
||||
screen as a PPM after N seconds; for "the serial console is silent".
|
||||
- `install-cgd.sh` -- like `install-simple.sh` but encrypts: answers the
|
||||
encryption question, types the passphrase at the install and at boot, checks
|
||||
`login:`, the set, CDE, root on cgd0a, and that no root file name is readable
|
||||
in the raw disk image. `-f bios|uefi`.
|
||||
- `install-simple.sh` -- the end-to-end test of the simple installation mode:
|
||||
installs from the CD (or, with `-U`, from the USB stick image of `make usb`,
|
||||
raw or `.gz`, attached as a USB stick) onto an empty disk with the keys a
|
||||
person would press, prints every prompt it had to answer, reboots the disk on
|
||||
its own and checks `login:`, the `makronix` set, CDE and the GPT. Logs in
|
||||
`build/logs/`.
|
||||
- `cd2.sh` -- build the second install CD (`make iso` calls it): `makronix.tar.xz`, its checksums and `cgdroot.kmod`, label MAKRONIX_CD2.
|
||||
- `cd-com0.sh` -- make a copy of an install CD whose loader talks on `com0`
|
||||
(adds `consdev=com0` to `/boot.cfg` with xorriso); everything else, including
|
||||
the boot images, stays as built. For the test VM, where the UEFI loader takes
|
||||
a serial port only after a key on it and no key from qemu's serial pipe
|
||||
reached it.
|
||||
- `cd3.sh` -- (no packages on the media while `packages.binary*.list` name none: paused 2026-11-10, X from pkgsrc does not fit the project's binaries) the install CDs after the second (`make iso` calls it): the binary packages, first-fit onto as many CDs as they need (CD 3, CD 4, ...; `CDPKG_LIMIT` to try a smaller CD), and `cd3.sh stage` for the DVD (`build/cd3`, taken in by patch 0008 through `CDBUILDEXTRA`).
|
||||
- `userland.sh` -- the userland of the `makronix` set in one command: cross-builds `packages.list` here, builds `packages.vm.list` (MCDE, git, X) natively in the build VM; MCDE's archive (`mcde-dist.sh`) and the `ext/` recipes (`ext-sync.sh`) are made and copied into the VM first, packs and unpacks them into the sysroot, writes the set list (`make userland`). Stops at the first failing step. Checks that the VM has the same pkgsrc commit (`PINS`).
|
||||
- `pkg-binaries.sh` -- fetch the NetBSD project's binary packages (firefox, thunderbird, qemu and what they need) for a platform, the lists are `packages.binary*.list` (`docs/BUILD-VM.md`). Since 2026-11-10 those binaries do not fit (they need X in the base); `userland.sh binaries` (`make binaries`) builds the same lists in the build VM instead, `vm-pkgbuild.sh repo` packs the closure with its `pkg_summary.gz`. The lists name PKGPATHs now; readers take the last part as the name.
|
||||
- `vm-pkgbuild.sh`, `vm-pkgcollect.sh` -- build pkgsrc packages natively in the build VM (guest side) and bring them into the sysroot and the `makronix` set (host side). `vm-pkgbuild.sh` removes an installed package the new one `CONFLICTS` with, and builds the forks of `ext/` (`REBUILD` from `userland.sh`) from a clean work directory every time, replacing the installed version (their archive changes without a new version); `vm-pkgcollect.sh` removes from the sysroot what the previous pack had and this one has not (its list: `build/vmsession/usrpkg.tar.gz.files`).
|
||||
- `devvm.sh` -- start, stop (cleanly), ssh and scp for the kept build VM (`docs/BUILD-VM.md`). Hazard: the VM's clock stops while qemu is paused (on 2026-11-10 the host disk ran full and the VM stood "paused (io-error)"); it then lags, the archives unpacked in it are "in the future", and automake regenerates configure in a loop (`build/logs/x-userland-2026-11-11-mcde6.log`: "Makefile.am has modification time 7036 s in the future"). Set it from the host: `DEVUSER=root tools/devvm.sh ssh "date -u $(date -u +%Y%m%d%H%M.%S)"`. The key `build/vm/id_vm` was made anew on 2026-11-10 (the old one was deleted with the disk); it is in root's and tester's authorized_keys.
|
||||
- `vmctl.py`, `vmmon.py` -- drive the NetBSD build host VM over its serial
|
||||
console and the qemu monitor. Used by `vmbuild/`. Replace with `sh`:
|
||||
`vmsh.sh` above is the same mechanism (named pipe on the serial line);
|
||||
`vmbuild/` has to be moved over to it.
|
||||
- `vm-boot.cfg` -- `boot.cfg` for the build host's live image, console on
|
||||
`com0`. Not part of the distribution.
|
||||
- `vmsh.sh` -- a QEMU machine on a serial console driven from `sh`; state in
|
||||
`build/vmsession/`. The VM driver to use.
|
||||
- `vm-boot-iso.sh`, `vm-screendump.sh` -- boot an image once, log the serial
|
||||
console or save the screen.
|
||||
- `install-simple.sh`, `install-cgd.sh` -- end-to-end installation tests.
|
||||
- `test.sh` (`make test`), `mediacheck.sh` -- the tests of a release.
|
||||
- `devvm.sh`, `host-nfs-setup.sh` -- the kept VM of `docs/BUILD-VM.md`.
|
||||
|
||||
## Deleted on 2026-11-06
|
||||
MCDE and the logo:
|
||||
|
||||
The Python drivers of the manual cgdroot procedure (`fde-manual.py`,
|
||||
`fde-test.py`, `fde-console.py`, `fde-key.py`), `install-test.py`,
|
||||
`boottimeout-probe.py` and the `fde-*.seq` key sequences: the goal is a sysinst
|
||||
that encrypts by itself (`GOAL.md`), and `install-simple.sh` / `install-cgd.sh`
|
||||
drive that in `sh`. They stay in git history.
|
||||
- `mcde-host.sh` (`make mcde-host`), `mcde-linux.sh` (`make mcde-linux`),
|
||||
`mcde-shot.sh` -- MCDE on this host, and screenshots.
|
||||
- `logo-ascii.sh`, `theme-logo.sh` -- the logo as ASCII, and in a palette's
|
||||
colours (`docs/logo/AGENTS.md`).
|
||||
|
||||
## Subdirectory
|
||||
`claude-build-gate.sh` -- PreToolUse hook that enforces the forbidden commands
|
||||
(root `AGENTS.md`, `.claude/AGENTS.md`). Its match is textual: a command that
|
||||
names `releasedir` and contains `rm `, `mv `, `cp `, `touch `, `chmod `,
|
||||
`sed -i` or `>` is refused, so a read-only command with `2>&1` is refused too.
|
||||
Known defect: it parses the hook's JSON with an inline `python3 -c` (line 11),
|
||||
against the `sh` rule; to be rewritten.
|
||||
|
||||
- `vmbuild/` -- see its `AGENTS.md`.
|
||||
Legacy, being removed with the VM build (`vmbuild/AGENTS.md`): `vmbuild/`,
|
||||
`packages.vm.list`, `vm-pkgbuild.sh`, `vm-pkgcollect.sh`, `vm-boot.cfg`, and
|
||||
the Python drivers `vmctl.py`, `vmmon.py`. Do not extend them and do not
|
||||
describe them as the way to build.
|
||||
|
||||
## The source set (msrc)
|
||||
## What may be changed
|
||||
|
||||
`docs/OFFLINE-BUILD.md` explains what the set is. The tools:
|
||||
Anything here, freely, as long as it stays POSIX `sh` (check with `dash -n`)
|
||||
and its header and this list stay true. A script that gains or loses a job
|
||||
changes here in the same commit.
|
||||
|
||||
- `makronix-distfiles.sh` -- `list`, `fetch`, `check`, `stage DIR`: the
|
||||
distfiles of the Makronix packages only (`packages.list` -> closure ->
|
||||
`distfiles.lst`), kept in `build/distfiles`.
|
||||
- `makronix-pins.sh` -- `write`, `check`: `PINS`, the upstream base in
|
||||
`src/BASE` and the pkgsrc commit.
|
||||
- `msrc-stage.sh DIR` -- assembles the content of the set (the tree, pkgsrc
|
||||
with its `.git`, the distfiles, the link `src`); `src` itself comes from
|
||||
NetBSD's source sets. `make sourcesets` runs the three and then
|
||||
`build.sh sourcesets`.
|
||||
## What must not be touched
|
||||
|
||||
## Images raw, packed on request (2026-11-08)
|
||||
|
||||
`images.sh unpack|pack|sums` keeps the install images of the release directory raw
|
||||
(`make usb` unpacks after the build; `make compress` packs them) and renews their
|
||||
lines in `MD5` and `SHA512`.`test.sh`/`install-simple.sh -U` take a raw image as it is. `mediacheck.sh`,
|
||||
`test.sh` (`make test`): see their headers. Writing a stick is not in the tree:
|
||||
check `lsblk` first (a name that is not a block device makes `dd` write a plain
|
||||
file into /dev), and read the stick back twice before it goes to a machine; a
|
||||
flaky USB port gave different sums on every read (2026-11-08).
|
||||
- No script builds by a path the root `Makefile` does not name, and none
|
||||
writes under the release directory by hand.
|
||||
- No Python, no unattended loops or timers (root `AGENTS.md`, "Forbidden").
|
||||
- Writing an install stick is not in the tree: check `lsblk` first (a name
|
||||
that is not a block device makes `dd` write a plain file into /dev) and
|
||||
read the stick back twice before it goes to a machine.
|
||||
+24
-28
@@ -1,36 +1,32 @@
|
||||
# tools/vmbuild/ -- the NetBSD build host
|
||||
# tools/vmbuild/ -- LEGACY: building in a NetBSD VM
|
||||
|
||||
## What this is for
|
||||
## What it is for
|
||||
|
||||
`wm/cde` cannot be cross-built from a Linux host: pkgsrc refuses
|
||||
`USE_TOOLS+=awk:run` when `OPSYS != NATIVE_OPSYS` (`mk/tools/replace.mk:142`,
|
||||
root `AGENTS.md`, "Where a Linux build host stops"). So CDE is built inside a
|
||||
NetBSD amd64 VM that this tree produces itself (`build.sh ... live-image`),
|
||||
driven over its serial console. Nothing in pkgsrc and no recipe changes.
|
||||
|
||||
`README` here is the step-by-step record of how the host image is built and
|
||||
booted; read it before running anything.
|
||||
The earlier way to build `wm/cde`: inside a NetBSD amd64 VM driven over its
|
||||
serial console. **Since 2026-11-13 this is not the way to build.** Building
|
||||
is cross and native, never in a VM; a VM is only for testing installs and
|
||||
upgrades (root `AGENTS.md`). This directory, `tools/packages.vm.list`,
|
||||
`tools/vm-pkgbuild.sh`, `tools/vm-pkgcollect.sh`, `tools/vm-boot.cfg` and the
|
||||
Python drivers `tools/vmctl.py`, `tools/vmmon.py` are being removed. Do not
|
||||
extend them, do not describe a VM build as the way to build.
|
||||
|
||||
## What is in it
|
||||
|
||||
- `stage1-fetch.sh` .. `stage6-pack.sh` -- run inside the VM, in order: (1)
|
||||
take pkgsrc and `mk.conf` from the host's http server (10.0.2.2), (2) the X
|
||||
sets from this tree's release directory, (3) bootstrap pkgsrc into
|
||||
`/usr/pkg`, (4) the rest of `mk.conf` and the build directories, (5) build
|
||||
and install `wm/cde`, (6) pack CDE's runtime closure out of `/usr/pkg`
|
||||
(walked over the `@pkgdep` lines in `+CONTENTS`).
|
||||
- `vm-mk.conf`, `mk-cde.conf` -- `mk.conf` fragments for the build host.
|
||||
`mk-cde.conf` is scoped to `wm/cde` (C dialect `gnu11`, GCC 14 diagnostics).
|
||||
- `README` -- the step-by-step record of the old procedure.
|
||||
- `stage1-fetch.sh`, `stage3-bootstrap.sh`, `stage4-mkconf.sh`,
|
||||
`stage5-cde.sh`, `stage6-pack.sh` -- stages run inside the VM (there is no
|
||||
`stage2`).
|
||||
- `vm-mk.conf`, `mk-cde.conf` -- `mk.conf` fragments of the build host.
|
||||
|
||||
## Rules
|
||||
## What may be changed
|
||||
|
||||
Nothing new. Only removal, together with its users (`tools/userland.sh`,
|
||||
`Makefile`, root `AGENTS.md`) in the same commit.
|
||||
|
||||
## What must not be touched
|
||||
|
||||
- Do not patch pkgsrc to get a package through; a package that cannot build
|
||||
here is a finding for the report (root `AGENTS.md`).
|
||||
- The stage scripts talk to the VM through `tools/vmctl.py`, which is to be
|
||||
replaced by `sh`. Keep the stage interfaces stable when you do.
|
||||
- `stage6-pack.sh` writes the closure to `/var/tmp/usrpkg.tar.gz` inside the
|
||||
VM (line 63). A copy sits at `build/usrpkg.tar.gz`; how it gets out of the
|
||||
VM is not documented here and has not been checked. Results belong in
|
||||
`build/`, never in the tree.
|
||||
- None of this was re-run in the session of 2026-11-06; the log names in
|
||||
`README` point into `build/logs/` and were not checked.
|
||||
is a finding for the report.
|
||||
- Results belong in `build/`, never in the tree.
|
||||
- Nothing here has been re-run since 2026-11-06; the log names in `README`
|
||||
were not checked.
|
||||
+16
-12
@@ -2,23 +2,27 @@
|
||||
|
||||
## What it is for
|
||||
|
||||
The public pages about Makronix. Static HTML 4.01 Strict and one CSS 2.1
|
||||
style sheet; no scripts, no generator, no server-side code. Not deployed yet
|
||||
(Konrad, 2026-11-09: "erstmal nur lokal").
|
||||
The public pages about Makronix: static HTML 4.01 Strict and one CSS 2.1 style
|
||||
sheet; no scripts, no generator, no server-side code. Not deployed; deploying
|
||||
is the owner's decision and nothing here uploads anything.
|
||||
|
||||
## What is in it
|
||||
|
||||
- `index.html` (home), `download.html` (media, writing a stick),
|
||||
`install.html`, `desktop.html` (MCDE), `source.html` (building it yourself).
|
||||
- `index.html`, `download.html`, `install.html`, `desktop.html`, `source.html`.
|
||||
- `style.css` -- the release palette (Camouflage) as Motif windows and bevels.
|
||||
- `img/` -- the logo (`docs/logo/camouflage`) and screenshots taken with
|
||||
`tools/mcde-shot.sh` (`build/mcde-shots/`).
|
||||
`tools/mcde-shot.sh`.
|
||||
|
||||
## Rules
|
||||
## What may be changed
|
||||
|
||||
- Every statement on a page is something the tree has measured (a log, a
|
||||
test, a file); what is planned says so ("being built"). Media sizes come
|
||||
from the release directory of the build the page describes.
|
||||
- No page names a product that inspired a part of Makronix.
|
||||
Pages and style, under these rules:
|
||||
|
||||
- Every statement is something the tree has measured (a log, a test, a file);
|
||||
what is planned says so ("being built"). Media sizes come from the release
|
||||
directory of the build the page describes.
|
||||
- Check a changed page with `xmllint --html --noout`; keep HTML 4.01 Strict.
|
||||
- Deploying is a decision of Konrad's; nothing here uploads anything.
|
||||
|
||||
## What must not be touched
|
||||
|
||||
- No page names a product that inspired a part of Makronix.
|
||||
- No scripts, no external resources, no deployment step.
|
||||
Reference in new issue
Block a user