qemu: let a job without the cross compiler use a prebuilt panel BusyBox (flare-edge#2210) #38

Merged
noah merged 2 commits from rb/ln-rig-busybox-prebuilt into rebuild 2026-10-29 09:23:28 -06:00
2 changed files with 4 additions and 3 deletions
Showing only changes of commit 8fc32976a5 - Show all commits
+2 -2
View File
@@ -100,10 +100,10 @@ qemu_get_busybox() {
local want got
want="$(qemu_busybox_panel_inputs)"
got="$(cat "$BUSYBOX.inputs" 2>/dev/null || true)"
[ -f "$BUSYBOX" ] && [ "$got" = "$want" ] || {
if [ ! -f "$BUSYBOX" ] || [ "$got" != "$want" ]; then
echo "FATAL: BUSYBOX=$BUSYBOX is not a panel BusyBox built from this tree's qemu/busybox/ ($BUSYBOX.inputs '${got:-missing}', want '$want'): run qemu/build-busybox.sh" >&2
exit 1
}
fi
BB="$BUSYBOX"
qemu_log "panel busybox: prebuilt $BB (inputs $want)"
return
+2 -1
View File
@@ -149,7 +149,8 @@ mkdir -p "$SCRATCH/qcopy"
cp -a "$QEMU_DIR/busybox" "$SCRATCH/qcopy/"
printf '# CONFIG_TIMEOUT is not set\n' >> "$SCRATCH/qcopy/busybox/panel.config"
other="$(QEMU_DIR="$SCRATCH/qcopy" qemu_busybox_panel_inputs)"
printf 'x\n' >> "$SCRATCH/qcopy/busybox/patches/$(ls "$QEMU_DIR/busybox/patches" | head -n 1)"
first_patch="$(find "$SCRATCH/qcopy/busybox/patches" -maxdepth 1 -type f -name '*.patch' | sort | head -n 1)"
printf 'x\n' >> "$first_patch"
other2="$(QEMU_DIR="$SCRATCH/qcopy" qemu_busybox_panel_inputs)"
if [ "$other" != "$inputs" ] && [ "$other2" != "$other" ]; then
pass "a panel.config or patch edit changes qemu_busybox_panel_inputs"