make.sh: Bind-mount the QEMU helper instead of copying the binary

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2024-07-09 10:19:05 +00:00
parent 92a2ed67be
commit 5db99637ae

View File

@@ -1047,7 +1047,10 @@ qemu_install_helper() {
local dirname="${BUILD_DIR}$(dirname "${file}")"
mkdir -p "${dirname}"
install -m 755 "${file}" "${BUILD_DIR}${QEMU_TARGET_HELPER}"
# Create the mountpoint
touch "${BUILD_DIR}${QEMU_TARGET_HELPER}"
mount --bind -o ro "${file}" "${BUILD_DIR}${QEMU_TARGET_HELPER}"
return 0
done