Changeset 251 for floppyfw/scripts
- Timestamp:
- 07/20/08 08:46:56 (4 years ago)
- Files:
-
- 1 modified
-
floppyfw/scripts/modpick.pl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
floppyfw/scripts/modpick.pl
r249 r251 105 105 my ($modext) = ".o"; 106 106 $kernelversion =~ /^2\.4/ ? $foo = ".ko" : $foo = ".o"; 107 print STDERR "FOO:$foo - $kernelversion";108 107 109 108 # $debug = 1; … … 111 110 my ($allmodules, $p) = &readModulesDep(); 112 111 113 print STDERR "DUMP\n";114 112 # print STDERR Dumper($allmodules) if ($debug); 115 113 … … 145 143 $module = $last_module = ($1 || $last_module); 146 144 # Too much of .o and not .o for my liking. 147 $last_module =~ s/\ $modext$//;145 $last_module =~ s/\.[ko|o]$//; 148 146 $optlist{$last_module} .= ($2 . " "); 149 147 … … 199 197 200 198 map { s/.*\/// } @deplist; 201 map { s/\ $modext// } @deplist;199 map { s/\.[ko|o]// } @deplist; 202 200 203 201 # I shall say this only once.