diff options
Diffstat (limited to 'Meta/build-image-qemu.sh')
-rwxr-xr-x | Meta/build-image-qemu.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Meta/build-image-qemu.sh b/Meta/build-image-qemu.sh index a583bab7e9..6274c9d093 100755 --- a/Meta/build-image-qemu.sh +++ b/Meta/build-image-qemu.sh @@ -18,6 +18,16 @@ if [ "$(uname -s)" = "Darwin" ]; then export PATH="/usr/local/opt/e2fsprogs/sbin:$PATH" fi +SCRIPT_DIR="$(dirname "${0}")" + +# Prepend the toolchain qemu directory so we pick up QEMU from there +PATH="$SCRIPT_DIR/../Toolchain/Local/qemu/bin:$PATH" + +# Also prepend the i686 toolchain directory because that's where most +# people will have their QEMU binaries if they built them before the +# directory was changed to Toolchain/Local/qemu. +PATH="$SCRIPT_DIR/../Toolchain/Local/i686/bin:$PATH" + disk_usage() { # shellcheck disable=SC2003 if [ "$(uname -s)" = "Darwin" ]; then |