rpms/wb_builder/devel import.log, NONE, 1.1 wb_builder-args.patch, NONE, 1.1 wb_builder-strict-warnings.patch, NONE, 1.1 wb_builder.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Chitlesh GOORAH chitlesh at fedoraproject.org
Sat Oct 10 20:06:42 UTC 2009


Author: chitlesh

Update of /cvs/pkgs/rpms/wb_builder/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv7758/devel

Modified Files:
	.cvsignore sources 
Added Files:
	import.log wb_builder-args.patch 
	wb_builder-strict-warnings.patch wb_builder.spec 
Log Message:
new package


--- NEW FILE import.log ---
wb_builder-1_0_3-2_fc11:HEAD:wb_builder-1.0.3-2.fc11.src.rpm:1255205075

wb_builder-args.patch:
 wishbone.pl |   27 ++++++++++++++-------------
 1 file changed, 14 insertions(+), 13 deletions(-)

--- NEW FILE wb_builder-args.patch ---
--- wishbone.pl	2009-08-30 11:36:15.520240129 +0200
+++ wishbone.pl_mod	2009-09-03 07:01:29.148541129 +0200
@@ -191,6 +191,7 @@
 };
 
 sub read_defines {
+my $arg = @ARGV;
 $priority=0;
 $masters=0;
 $slaves=0;
@@ -225,10 +226,10 @@
   if ($a =~ /^(interconnect)( *)(=)( *)(crossbarswitch|sharedbus)(;?)$/) {
     $interconnect = $5; }
 
-  if ($a =~ /^(signal_groups)( *)(=)( *)([0-1])(;?)($*)/) {
+  if ($a =~ /^(signal_groups)( *)(=)( *)([0-1])(;?)($arg)/) {
     $signal_groups = $5; };
 
-  if ($a =~ /^(use_cyc_sel)( *)(=)( *)([0-1])(;?)($*)/) {
+  if ($a =~ /^(use_cyc_sel)( *)(=)( *)([0-1])(;?)($arg)/) {
     $use_cyc_sel = $5; };
 
   if ($a =~ /^(mux_type)( *)(=)( *)(mux|andor|tristate)(;?)$/) {
@@ -237,7 +238,7 @@
   if ($a =~ /^(optimize)( *)(=)( *)(speed|area);?$/) {
     $optimize = $5; };
 
-  if ($a =~ /^(dat_size|adr_size|tgd_bits|tga_bits|tgc_bits|granularity)( *)(=)( *)([0-9]+)(;?)($*)/) {
+  if ($a =~ /^(dat_size|adr_size|tgd_bits|tga_bits|tgc_bits|granularity)( *)(=)( *)([0-9]+)(;?)($arg)/) {
     $dat_size    = $5 if $1 eq 'dat_size';
     $adr_size    = $5 if $1 eq 'adr_size';
     $tgd_bits    = $5 if $1 eq 'tgd_bits';
@@ -246,20 +247,20 @@
     $granularity = $5 if $1 eq 'granularity';
   };
 
-  if ($a =~ /^(rename)(_)(tga|tgc|tgd)( *)(=)( *)([a-zA-Z_-]+)(;?)($*)/) {
+  if ($a =~ /^(rename)(_)(tga|tgc|tgd)( *)(=)( *)([a-zA-Z_-]+)(;?)($arg)/) {
     if ($3 eq "tga"){$rename_tga=$7};
     if ($3 eq "tgc"){$rename_tgc=$7};
     if ($3 eq "tgd"){$rename_tgd=$7};
   };
 
   # master port setup
-  if ($a =~ /^(master)( *)([A-Za-z0-9_-]+)($*)/) {
+  if ($a =~ /^(master)( *)([A-Za-z0-9_-]+)($arg)/) {
     if($1 eq "master") {
       master_init($3);
     };
     $a = <FILE>;
-    until ($a =~ /^(end master)($*)/) {
-      if ($a =~ /^( *)(dat_size|adr_o_hi|adr_o_lo|lock_o|err_i|rty_i|tga_o|tgc_o|priority)( *)(=)( *)(0x)?([0-9a-fA-F]*)(;?)($*)/) {
+    until ($a =~ /^(end master)($arg)/) {
+      if ($a =~ /^( *)(dat_size|adr_o_hi|adr_o_lo|lock_o|err_i|rty_i|tga_o|tgc_o|priority)( *)(=)( *)(0x)?([0-9a-fA-F]*)(;?)($arg)/) {
         $master[$masters]{"$2"}=$7;
         if (($2 eq "rty_i") && ($7 == 1)) {
           $rty_i++; };
@@ -273,23 +274,23 @@
         if ($2 eq "priority") {
           $priority += $7; };
       }; #end if
-      if ($a =~ /^( *)(type)( *)(=)( *)(ro|wo|rw)(;?)($*)/) {
+      if ($a =~ /^( *)(type)( *)(=)( *)(ro|wo|rw)(;?)($arg)/) {
         $master[$masters]{"$2"}=$6; };
       # priority for crossbarswitch
-      if ($a =~ /^( *)(priority)(_)([0-9a-zA-Z_]*)( *)(=)( *)([0-9]*)(;?)($*)/) {
+      if ($a =~ /^( *)(priority)(_)([0-9a-zA-Z_]*)( *)(=)( *)([0-9]*)(;?)($arg)/) {
         $master[$masters]{("priority_"."$4")}=$8; };
       $a = <FILE>;
     };
   };
 
   # slave port setup
-  if ($a =~ /^(slave)( *)([A-Za-z0-9_-]+)($*)/) {
+  if ($a =~ /^(slave)( *)([A-Za-z0-9_-]+)($arg)/) {
     if ($1 eq "slave") {
       slave_init($3);
     };
     $a = <FILE>;
-    until ($a =~ /^(end slave)($*)/) {
-      if ($a =~ /^( *)(dat_i|dat_o|sel_i|adr_i_hi|adr_i_lo|lock_i|tga_i|tgc_i|err_o|rty_o|baseadr|size|baseadr1|size1|baseadr2|size2|baseadr3|size3|cyc_i)( *)(=)( *)(0x)?([0-9a-fA-F]+)(;?)($*)/) {
+    until ($a =~ /^(end slave)($arg)/) {
+      if ($a =~ /^( *)(dat_i|dat_o|sel_i|adr_i_hi|adr_i_lo|lock_i|tga_i|tgc_i|err_o|rty_o|baseadr|size|baseadr1|size1|baseadr2|size2|baseadr3|size3|cyc_i)( *)(=)( *)(0x)?([0-9a-fA-F]+)(;?)($arg)/) {
         $slave[$slaves]{"$2"}=$7;
         if (($2 eq "rty_o") && ($7 == 1)) {
           $rty_o++; };
@@ -300,7 +301,7 @@
         if (($2 eq "tga_i") && ($7 == 1)) {
           $tga_i++; };
       }; #end if
-      if ($a =~ /^( *)(type)( *)(=)( *)(ro|wo|rw)(;?)($*)/) {
+      if ($a =~ /^( *)(type)( *)(=)( *)(ro|wo|rw)(;?)($arg)/) {
         $slave[$slaves]{"$2"}=$6; };
       $a = <FILE>;
     };

wb_builder-strict-warnings.patch:
 wishbone.pl |   44 +++++++++++++++++++++++++++++++++-----------
 1 file changed, 33 insertions(+), 11 deletions(-)

--- NEW FILE wb_builder-strict-warnings.patch ---
--- wishbone.pl~	2006-11-28 01:22:43.000000000 +0530
+++ wishbone.pl	2009-08-29 22:32:53.684609104 +0530
@@ -66,21 +66,24 @@
 use Time::Local;
 use Getopt::Long;
 
+use strict;
+use warnings;
+
 # description: users manual
 
 my $version='1.0.3';
 my $infile = "wishbone.defines";
-my $outfile = wb;
+my $outfile = "wb";
 
 my $a;
 my $i=0;
 my $j=0;
 
 # default settings
-my $syscon=syscon;
-my $intercon=intercon;
+my $syscon="syscon";
+my $intercon="intercon";
 my $target="generic";
-my $hdl=vhdl;
+my $hdl="vhdl";
 my $ext=".vhd";
 my $signal_groups=0;
 my $comment="--";
@@ -121,7 +124,24 @@
 my $amp=0;
 my $asp=0;
 my $del=0;
-my $i;
+#my $i;
+
+my @master;
+my @slave;
+my $frame;
+my $c;
+my $am;
+my $ind;
+my $tmp;
+my $depend;
+my $l;
+my $only_master;
+my $k;
+my $noGUI;
+my $genHeader;
+my $help;
+my $file = "";
+my $tmp1;
 
 # open input file
 #if (open(FILE,"<$file")) {
@@ -804,7 +824,8 @@
 };
 
 sub generate_defines {
-  open(OUTFILE,"> $_[0]") or die "could not open $infile for writing";
+  $infile = $_[0];
+  open(OUTFILE,">$infile") or die "could not open $infile for writing";
   printf OUTFILE "# Generated by PERL program wishbone.pl.\n";
   printf OUTFILE "# File used as input for wishbone arbiter generation\n";
   $tmp=localtime(time);
@@ -884,13 +905,13 @@
   printf OUTFILE "%s\n%s Wishbone slaves:\n",$comment,$comment;
   for ($i=1; $i <= $slaves; $i++) {
     printf OUTFILE "%s   %s\n",$comment,$slave[$i]{"wbs"};
-    if ($slave[$i]{"size"} ne ffffffff) {
+    if ($slave[$i]{"size"} ne "ffffffff") {
       printf OUTFILE "%s     baseadr 0x%s - size 0x%s\n",$comment,$slave[$i]{"baseadr"},$slave[$i]{"size"}};
-    if ($slave[$i]{"size1"} ne ffffffff) {
+    if ($slave[$i]{"size1"} ne "ffffffff") {
       printf OUTFILE "%s     baseadr 0x%s - size 0x%s\n",$comment,$slave[$i]{"baseadr1"},$slave[$i]{"size1"}};
-    if ($slave[$i]{"size2"} ne ffffffff) {
+    if ($slave[$i]{"size2"} ne "ffffffff") {
       printf OUTFILE "%s     baseadr 0x%s - size 0x%s\n",$comment,$slave[$i]{"baseadr2"},$slave[$i]{"size2"}};
-    if ($slave[$i]{"size3"} ne ffffffff) {
+    if ($slave[$i]{"size3"} ne "ffffffff") {
       printf OUTFILE "%s     baseadr 0x%s - size 0x%s\n",$comment,$slave[$i]{"baseadr3"},$slave[$i]{"size3"}};
   };
   print OUTFILE "$comment---------------------------------------------------------------------------------------\n";
@@ -1933,7 +1954,8 @@
 
 sub gen_optional{
     my ($sig_name,$n_o,$n_i)=@_;
-    my $i,$j;
+    my $i; 
+    my $j;
 
     return if ($n_o == 0) && ($n_i == 0);
     print OUTFILE "      -- $sig_name Slave -> Master [Optional]\n";


--- NEW FILE wb_builder.spec ---
Name:           wb_builder
Version:        1.0.3
Release:        2%{?dist}
Summary:        Wishbone Bus Builder

Group:          Applications/Engineering
License:        GPLv2
URL:            http://sourceforge.net/projects/fpgalibre/
Source0:        http://download.sourceforge.net/sourceforge/fpgalibre/%{name}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

# fixes some Perl strict warnings and errors
Patch0:         wb_builder-strict-warnings.patch
Patch1:         wb_builder-args.patch

BuildArch:      noarch

%description
This package includes a HDL generator from a text description or via
GUI input for the Wishbone Bus.

The Wishbone Bus is an open source hardware computer bus intended
to let the parts of an integrated circuit communicate with each other.
The aim is to allow the connection of differing cores to each other
inside of a chip. The Wishbone Bus is used by many designs in the
OpenCores project.

%prep
%setup -q

%patch0 -p0 -b .perl-warnings
%patch1 -p0 -b .perl-args

# ---- Filtering Requires: ----
# In the perl script, "use IEEE.std_logic_1164.all" is meant
# to generate VHDL code and not for Perl

cat << \EOF > %{name}-req
#!/bin/sh
%{__perl_requires} $* |\
sed -e '/perl(IEEE.std_logic_1164.all)/d'
EOF

%global __perl_requires %{_builddir}/%{name}-%{version}/%{name}-req
chmod +x %{__perl_requires}
# ------------------------------------------


#fixing rpmlint warnings: file-not-utf8
for f in LEEME.txt README.txt ;
do
    iconv -f iso8859-1 -t utf-8 $f > $f.conv 
    mv -f $f.conv $f
done


%build


%install
%{__rm} -rf %{buildroot}

install -d %{buildroot}%{_bindir}
install -pm 0755 wishbone.pl %{buildroot}%{_bindir}/wishbonebuilder



%clean
%{__rm} -rf %{buildroot}


%files
%defattr(-,root,root,-)
%doc LEEME.txt LICENSE README.txt users_manual.pdf
%{_bindir}/wishbonebuilder


%changelog
* Sun Aug 30 2009 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 1.0.3-2
- Added patch from Shakthi Kannan
- Patched broken arguments

* Sat Apr 25 2009 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 1.0.3-1
- Initial Package


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/wb_builder/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore	6 Oct 2009 21:28:58 -0000	1.1
+++ .cvsignore	10 Oct 2009 20:06:41 -0000	1.2
@@ -0,0 +1 @@
+wb_builder-1.0.3.tar.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/wb_builder/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources	6 Oct 2009 21:28:58 -0000	1.1
+++ sources	10 Oct 2009 20:06:41 -0000	1.2
@@ -0,0 +1 @@
+9bad12675121a7d09467ad847b79b539  wb_builder-1.0.3.tar.gz




More information about the fedora-extras-commits mailing list