From: Andreas Neiser Date: Fri, 29 May 2015 10:05:38 +0000 (+0200) Subject: Create lpf symlink for newer diamond versions in create_project.pl X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=41da511c28cb183719f1d0e5244f6fd8e53a4117;p=trb3.git Create lpf symlink for newer diamond versions in create_project.pl --- diff --git a/base/create_project.pl b/base/create_project.pl index 93fed0a..601963c 100755 --- a/base/create_project.pl +++ b/base/create_project.pl @@ -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";