diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2016-11-29 16:55:37 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2016-11-29 16:55:37 +0000 |
commit | 466f8c6f2f3f52b2616c827fa0d8b1829ab8ddcd (patch) | |
tree | c643816b9e7ca9315eefb56f741a8e1a54c3fa22 /risugen | |
parent | 57b64ca433b95b6482ec92702fe473d6e684c20a (diff) |
risugen: Look in the right place for modules
Use FindBin to ensure that we look for the per-CPU-arch
modules in the same directory as the script, rather than
assuming that:
(a) you ran risugen from the directory it was in
(b) "." is on the Perl @INC path
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'risugen')
-rwxr-xr-x | risugen | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -20,6 +20,10 @@ use Getopt::Long; use Data::Dumper; use Module::Load; use Text::Balanced qw { extract_bracketed extract_multiple }; +# Make sure we can find the per-CPU-architecture modules in the +# same directory as this script. +use FindBin; +use lib "$FindBin::Bin"; my %insn_details; |