]> jspc29.x-matter.uni-frankfurt.de Git - trb3.git/commitdiff
Create lpf symlink for newer diamond versions in create_project.pl
authorAndreas Neiser <neiser@kph.uni-mainz.de>
Fri, 29 May 2015 10:05:38 +0000 (12:05 +0200)
committerAndreas Neiser <neiser@kph.uni-mainz.de>
Sat, 13 Jun 2015 15:37:06 +0000 (17:37 +0200)
base/create_project.pl

index 93fed0af8feeebb3994025645bc257692a5e996a..601963cd0077e34e09dac59f3ae082aaf55db314 100755 (executable)
@@ -322,7 +322,12 @@ STY
       system "./compile_constraints.pl $workdir";
       
       if(-e $lpffile) {
-         rename $lpffile, 'project/' . $options->{'top_module'} . '.lpf';         
+        my $lpffile_new = 'project/' . $options->{'top_module'} . '.lpf'; 
+         rename $lpffile, $lpffile_new;  
+         # for newer diamond version, create some weirdly named symlink
+        my $prj_title = $options->{'top_module'};
+        $prj_title =~ s/trb3_(central|periph)_(.+)/$2/;
+         symlink '../'.$options->{'top_module'} . '.lpf', $workdir . '/'.$prj_title.'_' . $options->{'top_module'} . '_synplify.lpf';      
          push @$files, ['work', 'project/' . $options->{'top_module'} . '.lpf'];
       } else {
          print "WARNING: compile_constraints did not generate $lpffile. Please include the necessary contraint files manually\n";