Changeset 181
- Timestamp:
- 12/25/06 14:04:24 (5 years ago)
- Files:
-
- 1 modified
-
floppyfw-3.0/perl/modpick.pl (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
floppyfw-3.0/perl/modpick.pl
r120 r181 98 98 my ($allmodules, $p) = &readModulesDep(); 99 99 100 # print Dumper($allmodules);100 # print STDERR Dumper($allmodules); 101 101 102 102 my (@deplist); … … 106 106 foreach my $module ( quotewords('\s+', 0, $modules) ) { 107 107 108 # print "this: ($module)\n";108 # print STDERR "this: ($module)\n"; 109 109 110 110 # Ok, first we have to check for options. … … 153 153 } 154 154 155 # print "getDependFiles($module)\n";155 # print STDERR "getDependFiles($module)\n"; 156 156 157 157 push @deplist, getDependFiles($module); … … 164 164 165 165 foreach my $module (@deplist) { 166 # print "copyto($module)\n";166 # print STDERR "copyto($module)\n"; 167 167 # Quick and dirty: 168 168 my ($dn) = dirname($module); … … 170 170 my ($nd) = "$copyto/lib/modules/$kernelversion/kernel/$dn"; 171 171 172 # print "$nd\n";172 # print STDERR "$nd\n"; 173 173 174 174 system('mkdir', '-p', $nd); … … 205 205 } 206 206 207 # print "PATHS:\n\n";207 # print STDERR "PATHS:\n\n"; 208 208 # &printPaths($m, $p); 209 209 … … 212 212 my (@retarr); 213 213 214 # print "Testing $mod\n";214 # print STDERR "Testing $mod\n"; 215 215 216 216 # First, check if there are (more) dependencies: … … 218 218 if (exists($allmodules->{$mod}->{depends})) { 219 219 foreach my $mo (@{$allmodules->{$mod}->{depends}}) { 220 # print "Checking $mo\n";220 # print STDERR "Checking $mo\n"; 221 221 push @retarr, getDependFiles($mo); 222 222 } … … 244 244 245 245 my ($line) = /\w+\/kernel\/(.*)/; 246 247 # print STDERR "\n\n" . $line . "\n"; 246 248 247 249 if ($line =~ /\:/) { … … 289 291 290 292 } 291 # print $module . ";" . $lastp . ";" . $lastp1 . ";" . $lastp2 . ";" . "$lastp3;\n";293 # print STDERR $module . ";" . $lastp . ";" . $lastp1 . ";" . $lastp2 . ";" . "$lastp3;\n"; 292 294 293 295 if ($dep) { 294 my ($dmodule) = $1 if ($dep =~ /\/(\w+-?\w+\.o)/); 295 # print "DEPM: $module-$dmodule\n"; 296 push @{$modules->{$module}->{'depends'}}, $dmodule; 297 $last_module = $module; 296 # print STDERR "DEP: $dep\n"; 297 foreach my $single (split(/\s+/, $dep)) { 298 my ($dmodule) = $1 if ($single =~ /\/(\w+-?\w+\.o)/); 299 next unless $dmodule; 300 # print STDERR "DEPM: $module-$dmodule-$single\n"; 301 push @{$modules->{$module}->{'depends'}}, $dmodule; 302 $last_module = $module; 303 } 298 304 299 305 } … … 305 311 if ($last_module && $line =~ /^\t/) { 306 312 my ($dmodule) = $1 if ( $_ =~ /(.*\.o)/ ); 307 # print "DEPM2: $dmodule\n";313 # print STDERR "DEPM2: $dmodule\n"; 308 314 309 315 push @{$modules->{$last_module}->{'depends'}}, $dmodule;