diff --git a/AGENTS.md b/AGENTS.md index 348ed5a10f..f3481118a8 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -91,8 +91,10 @@ smoke tests. Nothing is built in it. Rules for a build: -- `make release` before `make iso`. `build-stamp.sh` removes derived artefacts - when sources change; `make iso` checks and stops without removing anything. +- `make release` is the whole release: sets, kernels, the signed source set, + the ISO and the USB image, in one lock (since 2026-11-18). `make iso` and + `make usb` alone only repackage what the last release built: they check the + stamp (`build-stamp.sh -c`) and stop without removing anything. - Long builds: start the one named target in the background with its output in `build/logs/-.log` and end the turn. The status is the last line, `make exit=N`, not the wrapper's. No transient units. diff --git a/Makefile b/Makefile index 81edc3facd..1d757e38df 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ # # NetBSD's own mechanisms, nothing invented: # make build the distribution (no medium, no release) -# make release ARCH=... build through to a finished release +# make release ARCH=... the whole release: sets, source set, ISO, USB image # make install install over a running Makronix (installworld) # # ARCH is the name a person types (amd64, sparc64, evbarm); MACHINE is @@ -61,8 +61,16 @@ stamp: build: @tools/build-lock.sh 'tools/build-stamp.sh && $(BUILD_SH) distribution' +# A release is everything: the sets and kernels (build.sh release), the signed +# source set, the installation CD/DVD images and the USB image, in this order +# and in one lock (the lock is re-entrant; iso and usb check the build stamp +# with -c and package what this run built). Konrad, 2026-11-18: "make release +# heisst ein RELEASE, ein RELEASE enthaelt natuerlich ALLES". release: - @tools/build-lock.sh 'tools/build-stamp.sh && $(BUILD_SH) release' + @tools/build-lock.sh 'tools/build-stamp.sh && $(BUILD_SH) release && \ + $(MAKE_CMD) sourcesets ARCH=$(ARCH) && \ + $(MAKE_CMD) iso ARCH=$(ARCH) && \ + $(MAKE_CMD) usb ARCH=$(ARCH)' # The installation CD that carries the sets. `release' is not it: for a # medium with CDRELEASE=true (distrib/common/Makefile.bootcd:341-352) the @@ -134,7 +142,7 @@ userland: # measured 2026-11-07: release 8, iso 2, test 5). Not the DVD, not encryption, # not UEFI: tools/install-cgd.sh and `make isosrc' for those. cdtest: - @tools/build-lock.sh '$(MAKE_CMD) release ARCH=$(ARCH) && $(MAKE_CMD) iso && tools/install-simple.sh' + @tools/build-lock.sh '$(MAKE_CMD) release ARCH=$(ARCH) && tools/install-simple.sh' # installworld over a running system. Refused anywhere but Makronix/NetBSD: # a cross host has no business writing its own /usr from another system's diff --git a/docs/BUILD-CONTRACT.md b/docs/BUILD-CONTRACT.md index d1df395cfe..a828b505a7 100644 --- a/docs/BUILD-CONTRACT.md +++ b/docs/BUILD-CONTRACT.md @@ -23,10 +23,11 @@ das Quell-Set (`tools/srctree-stage.sh`, `makesrctars -m`), dann die Medien (`iso`, `usb`). `make test` und `make compress` bleiben eigene Befehle; `make isosrc` schreibt die eigene Source-DVD (`tools/cd-source.sh`). -Stand 2026-11-16: die Zusammensetzung des `release`-Ziels wird gerade -umgesetzt (tasksd t0051, beim Bau-Ablauf t0246); bis dahin baut -`make release` die Distribution und das Release, und `make iso` / `make usb` -bauen die Medien danach. `make install` installiert heute die Basis; das +Seit 2026-11-18 baut `make release` das ganze Release in einem Lauf: die +Sets und Kernel (`build.sh release`), das signierte Quell-Set +(`make sourcesets`), die ISO-Medien (`make iso`) und das USB-Image +(`make usb`). `make iso` / `make usb` allein packen nur neu, was der letzte +Release gebaut hat. `make install` installiert heute die Basis; das makronix-Set und die Pakete kommen mit t0056 (Binaerpakete) dazu. Ein Baum, ein Build: der Root-Makefile nimmt `tools/build-lock.sh`; ein