Stage K-7: hosted Makefile stops copying the binary into lfs/ (FABRIC-3.10.8 §4.6)

- The all target copied the hosted binary to lfs/<arch>/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 <noreply@anthropic.com>
This commit is contained in:
Robert Allan James
2026-09-26 06:44:33 -04:00
co-authored by Claude Opus 5.5
parent bfa876a0e2
commit 0c1fa2e510
2 changed files with 9 additions and 3 deletions
+6
View File
@@ -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/<arch>/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).
+3 -3
View File
@@ -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: