aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/qemustart
diff options
context:
space:
mode:
authorAndre Heider <a.heider@gmail.com>2022-11-13 07:06:27 +0100
committerPaul Spooren <mail@aparcar.org>2023-02-03 21:22:49 +0100
commitf56d5932d24f9d2d339088011ffaa5c3e8340e0f (patch)
treec0bc6fe2176c59729f9b11ee71ad2227464e1516 /scripts/qemustart
parent5155200f97adaeaaac7b752b5a6a5e41cba3db6a (diff)
downloadupstream-f56d5932d24f9d2d339088011ffaa5c3e8340e0f.tar.gz
upstream-f56d5932d24f9d2d339088011ffaa5c3e8340e0f.tar.bz2
upstream-f56d5932d24f9d2d339088011ffaa5c3e8340e0f.zip
scripts: qemustart: support CONFIG_BINARY_FOLDER
If CONFIG_BINARY_FOLDER is set in .config, use that instead of "bin" as the bindir. That allows to set that config and easily run e.g. `./scripts/qemustart armvirt 32`. Signed-off-by: Andre Heider <a.heider@gmail.com>
Diffstat (limited to 'scripts/qemustart')
-rwxr-xr-xscripts/qemustart3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/qemustart b/scripts/qemustart
index f0ddefb839..764b0e65af 100755
--- a/scripts/qemustart
+++ b/scripts/qemustart
@@ -158,7 +158,8 @@ parse_args() {
return 1
}
[ -n "$o_subtarget" ] || o_subtarget="generic"
- o_bindir="bin/targets/$o_target/$o_subtarget"
+ eval "$(grep ^CONFIG_BINARY_FOLDER= .config 2>/dev/null)"
+ o_bindir="${CONFIG_BINARY_FOLDER:-bin}/targets/$o_target/$o_subtarget"
}
start_qemu_armvirt() {