common/build-helper/qemu.sh: add vtargetrun function.
It's a function to call the qemu executable for the target arch, or a noop if the build isn't a cross build.
This commit is contained in:
parent
d5ca039278
commit
813d893710
2 changed files with 11 additions and 1 deletions
|
@ -4,3 +4,11 @@ if [ "$CROSS_BUILD" ]; then
|
|||
hostmakedepends+=" qemu-user-static"
|
||||
fi
|
||||
fi
|
||||
|
||||
vtargetrun() {
|
||||
if [ "$CROSS_BUILD" ]; then
|
||||
"/usr/bin/qemu-${XBPS_TARGET_QEMU_MACHINE}-static" "$@"
|
||||
else
|
||||
"$@"
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue