Make the patch series reproduce the SDK from a clean vendor checkout #7

Merged
noah merged 2 commits from sdk4-reproducible into flare-edge-next 2026-09-28 14:04:32 -06:00
Owner

Fixes #4.

  • New board patches 0009-0013: Buildroot 2025.02.8 selection in sysdrv/Makefile, removal of the 2023-era busybox/hcitool patches, the /oem flare_minimize step, S50sshd removal, e2fsprogs BUILD_CFLAGS. Hunks are byte-exact git diff 824b817f8 output.
  • Kernel config fragments flare-wireguard.config and rv1106-usb-host-ethernet.config, named by the board .mk but previously untracked.
  • build/unpack-buildroot.sh: fetch (sha256-pinned) and unpack Buildroot 2025.02.8 idempotently; offline tests in CI.
  • Dropped with evidence (see the issue comment): the vendor 5.10 net/wireless/core.c debug hunk (never reaches a shipped image), hostapd/librkwifibt binaries (build outputs).

Proof: a CI-equivalent firmware build from a pristine 824b817f8 clone in a fresh VM succeeds with flare-edge fix/sdk4-reproducible (build-firmware exit 0, 2488 s); post-build verify-sdk-patches all OK.

Generated with Claude Code

https://claude.ai/code/session_01441BzdGcvQmXkiN2qDjfZg

Fixes #4. - New board patches 0009-0013: Buildroot 2025.02.8 selection in sysdrv/Makefile, removal of the 2023-era busybox/hcitool patches, the /oem `flare_minimize` step, S50sshd removal, e2fsprogs BUILD_CFLAGS. Hunks are byte-exact `git diff 824b817f8` output. - Kernel config fragments `flare-wireguard.config` and `rv1106-usb-host-ethernet.config`, named by the board .mk but previously untracked. - `build/unpack-buildroot.sh`: fetch (sha256-pinned) and unpack Buildroot 2025.02.8 idempotently; offline tests in CI. - Dropped with evidence (see the issue comment): the vendor 5.10 `net/wireless/core.c` debug hunk (never reaches a shipped image), hostapd/librkwifibt binaries (build outputs). Proof: a CI-equivalent firmware build from a pristine `824b817f8` clone in a fresh VM succeeds with flare-edge `fix/sdk4-reproducible` (build-firmware exit 0, 2488 s); post-build verify-sdk-patches all OK. Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01441BzdGcvQmXkiN2qDjfZg
noah added 2 commits 2026-09-28 12:40:09 -06:00
A clean vendor checkout plus this series could not build WardenOS: the
workstation SDK that CI copies carried tracked changes and two untracked
kernel fragments that no patch recorded (#4).

- board/0009: sysdrv/Makefile selects buildroot-2025.02.8 and relaxes the
  vendor unpack fallback's cp lines.
- board/0010: removes the five 2023-era busybox/hcitool package patches.
- board/0011: flare_minimize strips camera/ISP payload from /oem.
- board/0012: removes the generic S50sshd init script.
- board/0013: e2fsprogs BUILD_CFLAGS for gcc 14 host helpers.
- kernel/configs: flare-wireguard.config and rv1106-usb-host-ethernet.config,
  which the 86Panel board .mk names for the vendor 5.10 kernel.

Every hunk is git diff output against 824b817f8, byte for byte.

Refs #4

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01441BzdGcvQmXkiN2qDjfZg
build: unpack the pinned Buildroot tree into the vendor SDK
ci / badges (push) Skipped
ci / mcdc (push) Successful in 18s
ci / test (push) Successful in 17s
ci / bench (push) Successful in 5s
ci / qemu-tools (push) Successful in 41s
ci / patches-apply (push) Successful in 20s
ci / prune-artifacts (push) Skipped
ci / kernel-build (push) Skipped
ci / quality (push) Successful in 31s
ci / test (pull_request) Successful in 15s
ci / mcdc (pull_request) Successful in 13s
ci / bench (pull_request) Successful in 5s
ci / qemu-tools (pull_request) Successful in 39s
ci / patches-apply (pull_request) Successful in 14s
ci / kernel-build (pull_request) Skipped
ci / prune-artifacts (pull_request) Skipped
ci / quality (pull_request) Successful in 27s
ci / badges (pull_request) Skipped
67da1141a0
build/unpack-buildroot.sh fetches buildroot-2025.02.8 through
fetch-buildroot-tarball.sh (sha256-pinned) and unpacks it to
sysdrv/source/buildroot/buildroot-2025.02.8, the tree the patched
project/build.sh and sysdrv/Makefile select. It refuses an SDK whose
selectors are not patched, leaves an existing tree alone, and never leaves a
partial tree at the final path. flare-edge's build-firmware.sh calls it right
after applying luckfox-sdk-patches/.

Offline regression tests cover the fresh unpack, the existing-tree no-op and
every refusal path; the qemu-tools job runs and shellchecks them.

Refs #4

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01441BzdGcvQmXkiN2qDjfZg
noah merged commit 9b0659d30c into flare-edge-next 2026-09-28 14:04:32 -06:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: blueflare/bfe-core1106-sdk#7