aboutsummaryrefslogtreecommitdiff
path: root/risugen
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2016-11-29 16:55:37 +0000
committerPeter Maydell <peter.maydell@linaro.org>2016-11-29 16:55:37 +0000
commit466f8c6f2f3f52b2616c827fa0d8b1829ab8ddcd (patch)
treec643816b9e7ca9315eefb56f741a8e1a54c3fa22 /risugen
parent57b64ca433b95b6482ec92702fe473d6e684c20a (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-xrisugen4
1 files changed, 4 insertions, 0 deletions
diff --git a/risugen b/risugen
index ae26f60..a604fe5 100755
--- a/risugen
+++ b/risugen
@@ -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;