summaryrefslogtreecommitdiffstats
path: root/src/build/tools/listdeps.pl
diff options
context:
space:
mode:
authorPatrick Williams <iawillia@us.ibm.com>2013-04-05 14:52:54 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2013-04-18 09:14:35 -0500
commite51746288cafd570886dd30625f6a74d15ae3835 (patch)
tree7fd8af0c1f24e06b8e8099b104b8546fc29c4631 /src/build/tools/listdeps.pl
parentd463911fd7122d75306f6ea9c042d96e1c3597c6 (diff)
downloadtalos-hostboot-e51746288cafd570886dd30625f6a74d15ae3835.tar.gz
talos-hostboot-e51746288cafd570886dd30625f6a74d15ae3835.zip
Support for new and custom fakeroots.
Change-Id: I94de98109b28434050030af824dd6ca50f7a18dc Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/4042 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/build/tools/listdeps.pl')
-rwxr-xr-xsrc/build/tools/listdeps.pl11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/build/tools/listdeps.pl b/src/build/tools/listdeps.pl
index b9c2f3675..1f89e8648 100755
--- a/src/build/tools/listdeps.pl
+++ b/src/build/tools/listdeps.pl
@@ -121,7 +121,8 @@ my @module_names = < *.so >;
# shared library where it is defined.
foreach $module_name (@module_names )
{
- my @output = `ppc64-mcp6-nm -AD --defined-only $module_name`;
+ my $PREFIX = $ENV{'CROSS_PREFIX'};
+ my @output = `${PREFIX}nm -AD --defined-only $module_name`;
chomp @output;
@@ -141,7 +142,7 @@ foreach $module_name (@module_names )
# if there was a library name passed in use that
# otherwise if they asked to list all dependencies
-# then use the list we already created above,
+# then use the list we already created above,
# default is to the list required libs of istep modules
my @istep_modules = ();
@@ -349,11 +350,11 @@ sub validate
foreach my $match ( @Dependencies )
{
# check if the there exists a match
- if ( !(defined $ListedDeps{$match}) && ($match) &&
+ if ( !(defined $ListedDeps{$match}) && ($match) &&
!(defined $resident_modules{ $match } ) )
{
print "$module is MISSING DEPENDENCY $match\n";
- print "\nplease add \"DEP_LIB($match),\"";
+ print "\nplease add \"DEP_LIB($match),\"";
print " to src/include/usr/isteps/$istepFile\n\n";
$rc = -1;
}
@@ -382,7 +383,7 @@ sub usage
print "-p will print dependency requirements\n";
print "-All will print all dependency requirements (not just istep modules)\n";
print "requires the -p option.\n\n";
-
+
exit 0;
}
OpenPOWER on IntegriCloud