qemu: only build one system binary for current architecture

This commit is contained in:
Jeremy Soller 2024-09-19 18:20:28 -06:00
parent e854b403f5
commit dd83c1a374
No known key found for this signature in database
GPG Key ID: D02FD439211AF56F

View File

@ -30,5 +30,20 @@ COOKBOOK_CONFIGURE_FLAGS=(
--static
--disable-tpm
)
case "${TARGET}" in
aarch64-unknown-redox)
COOKBOOK_CONFIGURE_FLAGS+=(--target-list=aarch64-softmmu)
;;
i686-unknown-redox)
COOKBOOK_CONFIGURE_FLAGS+=(--target-list=i386-softmmu)
;;
x86_64-unknown-redox)
COOKBOOK_CONFIGURE_FLAGS+=(--target-list=x86_64-softmmu)
;;
*)
echo "unsupported target ${TARGET}"
exit 1
;;
esac
cookbook_configure
"""