Line 101... |
Line 101... |
my @components = qx(ls ${home}/work/${project}/ip );
|
my @components = qx(ls ${home}/work/${project}/ip );
|
foreach my $component (@components)
|
foreach my $component (@components)
|
{
|
{
|
chomp($component);
|
chomp($component);
|
|
|
|
|
|
$cmd ="./tools/sys/build_geda $project $component /n";
|
|
if (system($cmd)) {}
|
|
|
my $parser = XML::LibXML->new();
|
my $parser = XML::LibXML->new();
|
my $doc = $parser->parse_file("${home}${prefix}${project}${lib_comp_sep}${component}/soc/design.soc");
|
my $doc = $parser->parse_file("${home}${prefix}${project}${lib_comp_sep}${component}/soc/design.soc");
|
|
|
{
|
{
|
|
|
Line 113... |
Line 117... |
#/ */
|
#/ */
|
#/*********************************************************************************************/
|
#/*********************************************************************************************/
|
|
|
|
|
|
|
foreach my $i_name ($doc->findnodes("//components/component/name"))
|
|
{
|
|
my($comp_name) = $i_name ->findnodes('./text()')->to_literal ;
|
# foreach my $i_name ($doc->findnodes("//components/component/name"))
|
my($comp_version) = $i_name ->findnodes('../version/text()')->to_literal ;
|
# {
|
my($variant) = $i_name ->findnodes('../variant/text()')->to_literal ;
|
# my($comp_name) = $i_name ->findnodes('./text()')->to_literal ;
|
$cmd ="./tools/sys/build_geda $project $component /n";
|
# my($comp_version) = $i_name ->findnodes('../version/text()')->to_literal ;
|
if (system($cmd)) {}
|
# my($variant) = $i_name ->findnodes('../variant/text()')->to_literal ;
|
}
|
# $cmd ="./tools/sys/build_geda $project $component /n";
|
|
# if (system($cmd)) {}
|
|
# }
|
|
|
|
|
|
|
|
|
|
|
Line 175... |
Line 181... |
print MAKSYNFILE "board=${chip_target}\n";
|
print MAKSYNFILE "board=${chip_target}\n";
|
print MAKSYNFILE "Design=${chip_target}_${configuration}\n";
|
print MAKSYNFILE "Design=${chip_target}_${configuration}\n";
|
my $path = "${home}${prefix}${project}${lib_comp_sep}${component}/syn/${chip}/target";
|
my $path = "${home}${prefix}${project}${lib_comp_sep}${component}/syn/${chip}/target";
|
mkdir $path,0755 unless( -e $path );
|
mkdir $path,0755 unless( -e $path );
|
|
|
&link_dir( "${home}/projects/${project}/targets/${chip_target}", "${home}${prefix}${project}${lib_comp_sep}${component}/syn/${chip}/target" );
|
&link_dir( "${home}/projects/targets/ip/${chip_target}", "${home}${prefix}${project}${lib_comp_sep}${component}/syn/${chip}/target" );
|
&link_dir( "${home}/projects/cde/ip", "${home}${prefix}${project}${lib_comp_sep}${component}/syn/${chip}/target/lib/ip" );
|
&link_dir( "${home}/projects/cde/ip", "${home}${prefix}${project}${lib_comp_sep}${component}/syn/${chip}/target/lib/ip" );
|
&link_dir( "${home}/tools/Jtag_programmers/debug", "${home}${prefix}${project}${lib_comp_sep}${component}/syn/${chip}/debug" );
|
&link_dir( "${home}/tools/Jtag_programmers/debug", "${home}${prefix}${project}${lib_comp_sep}${component}/syn/${chip}/debug" );
|
}
|
}
|
}
|
}
|
}
|
}
|