Skip to content

Commit 752bb11

Browse files
committed
rename ARMBIAN_PREFER_NATIVE_ARMHF → PREFER_NATIVE_ARMHF
Match the naming convention of sibling build switches in the same section (KERNEL_BTF, USE_CCACHE, ARTIFACT_IGNORE_CACHE, …) which carry no prefix. Suggested in armbian/documentation#921. Assisted-by: Claude:claude-opus-4.7
1 parent 182facd commit 752bb11

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

extensions/arm64-compat-vdso.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# natively at full speed. One concrete use case is Armbian's rootfs phase: on
66
# such a host, armhf chroot / package post-install steps run native instead of
77
# through qemu-user-static (~10× faster). See lib/functions/rootfs/qemu-static.sh
8-
# and the ARMBIAN_PREFER_NATIVE_ARMHF build switch.
8+
# and the PREFER_NATIVE_ARMHF build switch.
99
#
1010
# Note: aarch64 silicon without 32-bit ARM userspace support at EL0 (notably
1111
# Apple M-series) cannot run armhf even with this kernel option enabled.

lib/functions/rootfs/qemu-static.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ function prepare_host_binfmt_qemu_cross() {
194194

195195
function prepare_host_binfmt_qemu_cross_arm64_host_armhf_target() {
196196
declare armhf_probe="/usr/arm-linux-gnueabihf/lib/ld-linux-armhf.so.3"
197-
declare prefer_native="${ARMBIAN_PREFER_NATIVE_ARMHF:-yes}"
197+
declare prefer_native="${PREFER_NATIVE_ARMHF:-yes}"
198198
declare qemu_arm_was_enabled=0
199199

200200
# Snapshot qemu-arm state — drives both COMPAT probe and trust-existing.
@@ -225,7 +225,7 @@ function prepare_host_binfmt_qemu_cross_arm64_host_armhf_target() {
225225
fi
226226
fi
227227

228-
# Native COMPAT unavailable (or opt-out via ARMBIAN_PREFER_NATIVE_ARMHF=no).
228+
# Native COMPAT unavailable (or opt-out via PREFER_NATIVE_ARMHF=no).
229229
# Trust existing qemu-arm registration only if it actually executes —
230230
# `enabled` flag alone doesn't tell us the interpreter is runnable
231231
# (stale path, removed package). Validate via arch-test.

0 commit comments

Comments
 (0)