소스 검색

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 <[email protected]>
Andre Heider 2 년 전
부모
커밋
f56d5932d2
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      scripts/qemustart

+ 2 - 1
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() {