aboutsummaryrefslogtreecommitdiffstats
path: root/configure.pl
diff options
context:
space:
mode:
authorlloyd <[email protected]>2006-09-05 02:47:16 +0000
committerlloyd <[email protected]>2006-09-05 02:47:16 +0000
commit4f1e986a1c8ad1447e2175bc9f6953eb57533ebe (patch)
tree8b7d36f04fe9bd44cb833d99d460e4f8abe3d47b /configure.pl
parentd0312c9cf6352cfa44514a61f00af8c7c63296a1 (diff)
Change set_arch_defines to also use read_info_files, then interate over
the %CPU hash and extract the extra information that's currently needed.
Diffstat (limited to 'configure.pl')
-rwxr-xr-xconfigure.pl15
1 files changed, 5 insertions, 10 deletions
diff --git a/configure.pl b/configure.pl
index c069744af..e388c0baa 100755
--- a/configure.pl
+++ b/configure.pl
@@ -1904,22 +1904,18 @@ sub get_cc_info {
}
sub set_arch_defines {
- my $dir = $_[0];
- my %allinfo;
-
- foreach my $arch (dir_list($dir)) {
- my %info = get_arch_info($arch, File::Spec->catfile($dir, $arch));
+ %CPU = read_info_files($_[0], \&get_arch_info);
- %{$allinfo{$arch}} = %info;
-
- $ARCH{$arch} = $info{'name'};
+ foreach my $arch (keys %CPU) {
+ my %info = %{$CPU{$arch}};
foreach my $alias (@{$info{'aliases'}}) {
$ARCH_ALIAS{$alias} = $arch;
}
+ $ARCH{$arch} = $info{'name'};
foreach my $submodel (@{$info{'submodels'}}) {
- $ARCH{$submodel} = $arch;
+ $ARCH{$submodel} = $info{'name'};
}
if(defined($info{'submodel_aliases'})) {
@@ -1929,5 +1925,4 @@ sub set_arch_defines {
}
}
}
- %CPU = %allinfo;
}