Files
lotherk 5fe3281496 docs: README for the tree, drop harness-specific .claude config
README.md collects what Makronix is, the repository layout, the one build
entry point and its gate, the installer/desktop/media design, offline
sources, platforms, the documentation map and the contribution rules from
AGENTS.md, GOAL.md and docs/BUILD-CONTRACT.md. It describes the tree as it
is on main: ext/src/* are submodules, distfiles/ is in the repository, and
the version is 0.99.11 (src/sys/conf/makronix-release) with 0.99.10
"Camouflage" as the last named release.

Remove .claude/ from the repository and ignore it: AGENTS.md is the
harness-independent convention. Root AGENTS.md and tools/AGENTS.md now
describe tools/claude-build-gate.sh as a build gate rather than a Claude
hook; docs/reference/AGENTS.md notes the removal of the archived directory.

build/ becomes build/* in .gitignore: git cannot re-include a file from an
excluded directory, so "build/ + !build/AGENTS.md" never worked and the
one tracked file the comment promises was never addable.

Verification: every relative link checked with git cat-file -e against main
(16 links, 0 dead, after build/AGENTS.md became addable); measured in a
throwaway repo that build/* adds build/AGENTS.md and still ignores
build/sub/x.o; make targets read from the root Makefile and
docs/BUILD-CONTRACT.md; 0.99.11 from src/sys/conf/makronix-release.
2026-11-22 14:12:28 +00:00

1.7 KiB

build/ -- what the build produces

Nothing here is source and nothing here is committed, except this file (.gitignore). Anything can be regenerated.

Layout (as seen on 2026-11-06)

  • obj/ -- the build's object tree: tooldir.* (cross toolchain), destdir.amd64 (the sysroot), releasedir/ (the release and images/*.iso), distrib/** (instkernel, ramdisks, kmods).
  • logs/ -- one log per run, named <target>-<date>.log; the last line of a build log is make <target> exit=N. Evidence cited in documents points here.
  • pkg/, pkgsrc-bootstrap/, pkgsrc-work/ -- pkgsrc's host tools and work directories (tools/pkgsrc-cross.mk.conf).
  • vm/, vmshare/, usrpkg.tar.gz -- the test VM (installed via tools/install-simple.sh, driven by tools/vmsh.sh).
  • distfiles/ -- the archives of the Makronix packages only (tools/makronix-distfiles.sh fetch); srctree/ -- the staging directory of the source set (make sourcesets); vmsession/ -- the test VM of tools/vmsh.sh.
  • The leftovers of earlier sessions (fde*, probe, pristine, trash, *.img, loose *.log, about 28 GB) were deleted on 2026-11-06 with the user's agreement. Anything new that no document refers to is a candidate again.

Rules

  • obj/releasedir/** is not touched by hand: no write, move, delete, replace (root AGENTS.md, "Forbidden"). The hook refuses a command that names the path and contains a write-like token or any > (also 2>&1); read without redirections, or through a script in tools/.
  • Do not run make inside this directory (make -C build is refused).
  • Every log you cite is kept; do not delete a log that a document names.