Revision 1439
Added by markw about 1 year ago
build.sh | ||
---|---|---|
$fpga =~ /M(..)/;
|
||
my $fpgasize = $1;
|
||
|
||
#next if ($wanted_variant ne $variant and $wanted_variant ne "ALL");
|
||
my $variant = "${typeboard}_M${fpgasize}_${name}";
|
||
|
||
if (defined $wanted_variant)
|
||
{
|
||
next unless ($variant =~ /$wanted_variant/);
|
||
}
|
||
|
||
my $code1;
|
||
my $code2;
|
||
my $sample = 0;
|
||
... | ... | |
}
|
||
|
||
my $versioncode = "${version}M$fpgasize$code1$code2";
|
||
$spec->{"version"} = $versioncode;
|
||
|
||
print "Building $versioncode $name of $typeboard\n";
|
||
|
||
my $bus = "";
|
||
if (exists $spec->{"bus"})
|
||
{
|
||
... | ... | |
|
||
my $dir = "build_${typeboard}_M${fpgasize}_${versioncode}_${name}";
|
||
|
||
#next if ($wanted_variant ne $variant and $wanted_variant ne "ALL");
|
||
if (defined $wanted_variant)
|
||
{
|
||
next unless ($dir =~ /$wanted_variant/);
|
||
}
|
||
print "Building $versioncode $name of $typeboard into $dir\n";
|
||
|
||
`rm -rf $dir`;
|
||
mkdir $dir;
|
||
`cp *.vhd* $dir`;
|
||
... | ... | |
`cat CFM1.bin CFM0.bin > CFMboth_post.bin`;
|
||
`../swapbits ./UFMboth_post.bin ./UFMboth_post.bin.swap`;
|
||
`../swapbits ./CFMboth_post.bin ./CFMboth_post.bin.swap`;
|
||
`../makeflash $type $versioncode output_files/core.bin`;
|
||
`../makeflash $fpgasize $versioncode output_files/core.bin`;
|
||
}
|
||
|
||
chdir "..";
|
Pad core.bin out to the actual flash size. Correct version parameter.