Commit Graph

5 Commits

Author SHA1 Message Date
Caleb Connolly
15802fb245 bin: generate: use POSIX sh and support spaces
Handles drivers with spaces in their names, and simplify slightly by
using globbing to unwrap the bus for loop.

It's necessary to add the final '*' in the "for driver in" loop in
bootrr-generate-template on POSIX sh.

Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
2023-09-25 15:18:27 +01:00
Nicolas Dechesne
8ed17b019a helpers/*: use '.' not 'source'
The 'source' command is a bashism, and not in the POSIX standard. So
it fails when using POSIX compliant shell such as Dash which is the
default on Debian. Using the '.' command is equivalent to using
source, and is POSIX compliant.

Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
2018-06-18 12:33:27 -07:00
Nicolas Dechesne
45640e5b26 helpers/*: do not assume /usr/bin/
The helpers assume that bootrr script is located in /usr/bin, which is
not always the case, especially when one needs to run the test locally
from the git tree.

'source' command will search for files using $PATH. When bootrr
scripts are installed globally using 'make install' they will be
found. When running them from a local folder, setting PATH to include
<bootrr>/helpers will ensure that all scripts will be found.

Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
2018-06-18 12:33:27 -07:00
Bjorn Andersson
f6e0bdda08 helpers: Allow timeout in assert_driver as well
Drivers for hardware on dynamically probed busses might take a while to
autoload, so add support for specifying a timeout for these.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2018-05-25 14:52:26 -07:00
Bjorn Andersson
ede63f2b8a make: Move files into subdirectories
Instead of mixing helpers and board files move them to separate folders.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2018-03-06 14:20:41 -08:00