From 0c1fa2e5109e26656d7cedd26290f49c9afd942e Mon Sep 17 00:00:00 2001 From: Robert Allan James Date: Sat, 26 Sep 2026 06:44:33 -0400 Subject: [PATCH] =?UTF-8?q?Stage=20K-7:=20hosted=20Makefile=20stops=20copy?= =?UTF-8?q?ing=20the=20binary=20into=20lfs/=20(FABRIC-3.10.8=20=C2=A74.6)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - The all target copied the hosted binary to lfs//starforth, rewriting a tracked file on every compile-sanity build (ruled: stop the copy). A forced relink now leaves lfs/ untouched. Hosted build only; no kernel change. Co-Authored-By: Claude Opus 5.5 --- FABRIC-3.10.8.md | 6 ++++++ Makefile | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/FABRIC-3.10.8.md b/FABRIC-3.10.8.md index 9e61940f..b84ff106 100644 --- a/FABRIC-3.10.8.md +++ b/FABRIC-3.10.8.md @@ -623,3 +623,9 @@ The counts are identical on all three ISAs (probe logs: amd64 `logs/20260926-054 | riscv64 | `logs/20260926-063140` | same | The ledger line is unchanged. **K-5 closes §8 defect 10.** + +### 4.6 K-7 — the hosted build no longer copies into `lfs/` (2026-09-26) + +**Change** (ruled 2026-09-26). The hosted `Makefile`'s `all` target no longer copies the binary to `lfs//starforth`. In this repo the hosted build is a compile-sanity check only, and the copy rewrote the tracked `lfs/amd64/starforth` on every build. + +**Evidence:** a forced hosted relink (`touch src/main.c; make`) builds, and `git status` shows no change under `lfs/`. There is no kernel change, so no QEMU acceptance (the hosted build isn't an acceptance target, CLAUDE.md). diff --git a/Makefile b/Makefile index d3757f86..774d6f0e 100644 --- a/Makefile +++ b/Makefile @@ -497,9 +497,9 @@ all: banner $(BINARY) @echo " Output directory: $(BUILD_DIR)" @echo " Optimizations: $(if $(findstring USE_ASM_OPT,$(CFLAGS)),Enabled,Disabled)" @echo " Direct Threading: $(if $(findstring USE_DIRECT_THREADING,$(CFLAGS)),Enabled,Disabled)" - @mkdir -p lfs/$(ARCH_DIR) - @cp $(BINARY) lfs/$(ARCH_DIR)/starforth - @echo " LFS copy: lfs/$(ARCH_DIR)/starforth" + @# FABRIC-3.10.8 K-7 (Captain Bob, 2026-09-26): no copy into lfs/ -- in + @# this repo the hosted build is a compile-sanity check only, and the copy + @# rewrote the tracked lfs/$(ARCH_DIR)/starforth on every build. $(TARGET_POST) banner: