diff options
author | Peter Foley <pefoley2@verizon.net> | 2013-04-11 17:41:38 -0400 |
---|---|---|
committer | Peter Foley <pefoley2@verizon.net> | 2013-04-11 19:00:12 -0400 |
commit | b7bae354aafc3b2c1e579c72443ccfba4d42e4ac (patch) | |
tree | 91dcfea1e5fd55ea5b17b53d1399e33612d4fee4 /bin | |
parent | 0e5f2ea0de71439fe121da47deaba68585541808 (diff) |
add a env variable to keep the libraries w/ module-deps.pl
Change-Id: Id9279b7e0dea2231db12997e571fe13ae240b914
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/module-deps.pl | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/bin/module-deps.pl b/bin/module-deps.pl index de8022ca3f6f..2742600ef13a 100755 --- a/bin/module-deps.pl +++ b/bin/module-deps.pl @@ -159,11 +159,13 @@ sub prune_redundant_deps($) } # glob on libo directory -# note: only works if you stay in main LO dir sub create_lib_module_map() { my %l2m; + # hardcode the libs that don't have a directory $l2m{'merged'} = 'merged'; + $l2m{'urelibs'} = 'urelibs'; + for (glob($src_root."/*/Library_*.mk")) { /.*\/(.*)\/Library_(.*)\.mk/; @@ -315,7 +317,9 @@ sub main() my $tree = clean_tree($deps); filter_targets($tree); optimize_tree($tree); - $tree = collapse_lib_to_module($tree) if !$preserve_libs; + if (!$preserve_libs && !defined($ENV{PRESERVE_LIBS})) { + $tree = collapse_lib_to_module($tree); + } dump_graphviz($tree); } |