9 Commits
Author SHA1 Message Date
lotherk d300fc1329 release: a stale package work directory is rebuilt, not installed
Two bugs made the native release ship code from the day before:

- tools/pkgchroot.sh ran 'install' in a work directory pkgsrc had already
  built.  pkg_add printed 'already recorded as installed' and the step
  counted as done, so MCDE and splinter in the 2026-11-23e run were the
  binaries of 2026-11-22 21:39 while their distfiles were written 08:38
  (build/logs/release-2026-11-23e.log:30,44).  sandbox_stale() now drops a
  work directory that is older than its recipe, and the old registration
  goes with it -- the cross path in tools/userland.sh did that already.

- ensure_bootstrap returned at once for every mode but cross, so a fresh
  tree without build/pkg stopped in tools/makronix-set.sh (pkg_info) and in
  the reinstall logic (pkg_delete).  It now bootstraps in all three modes.

The target system needs none of it: /usr/bin/make and /usr/sbin/pkg_add are
in base-util-bin and base-pkgutil-bin.

Test: sandbox_stale() against a work directory dated 2026-11-22 21:39 and
the recipe of 2026-11-23 -- stale: removed; fresh: kept.  dash -n on both
scripts.  The release itself is not run yet.

ext/src/mcde 288d1383: dtphoto, one CMD_SHOWOPTIONS case
ext/src/splinter f7c374b: embed.c, <signal.h> for kill/SIGKILL
2026-11-23 11:41:40 +00:00
lotherkandClaude Sonnet 5.5 0d629ae70a Merge kropa/main: MCDE and splinter are submodules; the Makronix-tree work is in the mcde fork
ext/src/mcde is the gitlink of hiddenbox/mcde at 222417e6, which carries the 27
commits of plain-file MCDE work (dtphoto, dtbar, dtsystemsettings, dtwm, icons)
merged into the fork by hand.  splinter: the pin with its pkgsrc recipe.
.gitmodules is the union.  tools/pkgchroot.sh and README.md take kropa's
(newer) version.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 08:36:20 +00:00
lotherk 07207f25bc ext: splinter, junction, wikid, skilld, memoryd, tasksd as git submodules 2026-11-22 22:01:16 +00:00
lotherk 7e20c712e8 ext/src/mcde is a submodule of its own repository
The fork's history is split out (git subtree split -P ext/src/mcde, 404
commits) and pushed to git.kropa.tech/hiddenbox/mcde.  This tree records the
commit 3d79fc80ca01e5afc94ea87db3c5a5f16c2284b5, whose tree is byte for byte
the tree of the last in-tree commit c723c7f277 for this path.

tools/mcde-dist.sh archives the submodule now: `git archive REV:ext/src/mcde'
in the parent writes an empty directory, because git does not descend into a
gitlink.  The key beside the archive is hashed with sha256 when sha256sum is
missing -- NetBSD has no sha256sum, so the key was empty and the "archive
unchanged" comparison meaningless (measured 2026-11-22).

ext/AGENTS.md: a change to MCDE is a commit in the submodule, then a gitlink
bump here.

Measured: git submodule status -> 3d79fc80...; git rev-parse
c723c7f277:ext/src/mcde, mcde-split^{tree} and HEAD:ext/src/mcde are all
7469d5a621.
2026-11-22 11:19:59 +01:00
lotherk c8847809cf ext/src: the other projects become submodules
splinter (replacing the in-tree copy), krang, sshcrypt, kidstube, CNCL and
mikronix are tracked as submodules of git.kropa.tech/hiddenbox/* now, next to
junction, memoryd, skilld, tasksd and wikid.  koder has no repository there
and is left out (Konrad, 2026-11-22).

The clone used a token for the private repositories; .gitmodules carries the
plain https URL.
2026-11-22 11:07:28 +01:00
lotherkandClaude Opus 5.5 3b2cbc44f1 mobile: kernel on kernel.org v7.0.14, named 7.0.14-makronix-unstable
The phone kernel no longer builds from the qualcomm-sm8150 fork: the base
is kernel.org stable v7.0.14 (refs/linux/7.0.14, shallow), and what hotdogb
needs from the fork is carried as kernel/patches 0001-0004 (sm8150/PMIC
DTSI nodes, the OnePlus DTS, the SMB5 charger, of/property), unchanged from
its 8e126dbc4; 0005-0025 are our series (the old 0005 is in v7.0.14 by a
stable backport).

The name comes from Makronix's versioning, the files the NetBSD side reads
(src/sys/conf/makronix-release, makronix-codename): kernel_make in
tools/lib.sh gives uname -r 7.0.14-makronix-unstable (x.99.y is -current)
and /proc/version makronix@camouflage, for the build and for every
modules_install.  make update-root defaults to /system/<Makronix version>.

Measured: slot a boots 7.0.14-makronix-unstable with /system/0.99.9,
marked successful; WLAN, Bluetooth, battery and the display work
(build/logs/flash-0.99.9-2026-11-11.log).  docs/NEXT.md 9c has what
7.3.4 showed (ftrace hangs it before the console; without ftrace a hard
freeze later).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 14:29:14 +00:00
lotherkandClaude Opus 5.5 6ed20da3f4 refs/linux/7.4-rc1: the SM8150 fork's 7.4 branch as a shallow reference
The next kernel base for mobile/ (Konrad: "7.4 is okay"; the fork has no
7.2): sm8150/7.4-rc1-wip at 38ceee3d0, Linux 7.4.0-rc1.  kernel/PIN stays
at 7.0.0 until 7.4 is measured on the phone (mobile/docs/NEXT.md §9b).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 11:35:50 +00:00
lotherk f21ce15c7c 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.
2026-11-09 23:29:42 +00:00
lotherk 0a9f83bd32 mobile: build-kernel.sh: olddefconfig alone, before the build
`make -j olddefconfig Image modules <dtb>` runs olddefconfig in parallel
with the compiles.  When the config had changed, include/generated/* was
regenerated while sources were being compiled: the build died with an
empty LINUX_VERSION_CODE and an empty KERNEL_REL in unrelated drivers

    fs/pstore/ram.c:809: error: expected expression before ','
    drivers/usb/core/hcd.c:191: note: in expansion of macro 'KERNEL_REL'

(build/logs/update-root-2026-11-09.log).  Two builds had passed before, so
it is a race, not a wrong config.  Now olddefconfig runs first and alone;
the next build of the same tree exits 0
(build/logs/kernel-retry-2026-11-09.log).
2026-11-09 23:17:26 +00:00