@conflines = @{$settingdata};
}else{
my $settingsfile = $settingdata;
+ $settingsfile = $ENV{'JTAGCONFIGPATH'}."/".$settingsfile if exists $ENV{'JTAGCONFIGPATH'};
# Read in the ini file we want to use
# Probably not a good idea to die on error at this
# point, but that's what we've got for the moment
my $boardsfile= 'boards.ini';
+$boardsfile = $ENV{'JTAGCONFIGPATH'}."/".$boardsfile if exists($ENV{'JTAGCONFIGPATH'});
my $boardsSettings = new Config::Abstract::Ini($boardsfile);
my %allboards = $boardsSettings->get_all_settings;
foreach my $board (keys %allboards) {
exit(0);
}
-
+$chainsini = $ENV{'JTAGCONFIGPATH'}."/".$chainsini if exists($ENV{'JTAGCONFIGPATH'});
my $chainsSettings = new Config::Abstract::Ini($chainsini);
my %allchains = $chainsSettings->get_all_settings;
if(!defined($allchains{$opt_chain})) { die ("Chain $opt_chain not found.");}