Enable irqs around the while loop waiting on magic memory
[akaros.git] / scripts / mergedep.pl
index 600b87d..180b2b9 100644 (file)
@@ -56,7 +56,21 @@ sub readdeps {
                                $slash = $2;
                        }
                        #print "DEPENDENCY [[$target]]: [[$deplines]]\n";
-                       $dephash{$target} = " ".makedirname($filename)."/Makefrag".$deplines;
+                       my $new_deplines = $deplines;
+                       if($use_filename) {
+                               my $makelocal = "Makelocal";
+                               my $sim_makelocal = "sim/Makelocal";
+                               if (! -e $makelocal) {
+                                       $makelocal = ""
+                               }
+                               if (! -e $sim_makelocal) {
+                                       $sim_makelocal = ""
+                               }
+                               $new_deplines = 
+                                     " " . $makelocal . " " . $sim_makelocal . " " 
+                                         . makedirname($filename) . "/Makefrag" . $deplines;
+                       }
+                       $dephash{$target} = $new_deplines;
                } elsif (/^[#]?[ \t]*$/) {
                        # ignore blank lines and comments
                } else {