Commit 345f74a
committed
config: return passed in tool by default
The tools in the tools key can either be a single string with the binary
name or a complete path to a binary. This works for every tool expect
for qemu since drivers can provide a fallback to the default tool.
However qemu currently requires the user to supply the full binary path,
which is unintuitive.
Instead return the originally requested tool-name if no specialized path
is found. And return the simple unexpanded path if a local tool with the
same name can't be found.
Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
(cherry picked from commit 552a42c)
Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>1 parent 78fecbf commit 345f74a
1 file changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
102 | 101 | | |
103 | | - | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
104 | 109 | | |
105 | 110 | | |
106 | 111 | | |
| |||
0 commit comments