make release builds the whole release: sets, source set, ISO, USB image
Konrad, 2026-11-18: 'make release heisst ein RELEASE, ein RELEASE enthaelt natuerlich ALLES'. release now runs build.sh release, then sourcesets, iso and usb inside its own (re-entrant) lock; iso and usb keep checking the stamp with -c, so nothing built in the same run is discarded. cdtest no longer calls iso a second time. AGENTS.md and docs/BUILD-CONTRACT.md say so.
This commit is contained in:
1 parent
4db19eff54
commit
b207c2c8ad
3 files changed
+20
-9
No files matched your search
@@ -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/<target>-<date>.log` and end the turn. The status is the last
|
||||
line, `make <target> exit=N`, not the wrapper's. No transient units.
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user