OpenCores
URL https://opencores.org/ocsvn/socgen/socgen/trunk

Subversion Repositories socgen

[/] [socgen/] [trunk/] [tools/] [busdefs/] [create_busdefs] - Blame information for rev 131

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 131 jt_eaton
eval 'exec `which perl` -S $0 ${1+"$@"}'
2
   if 0;
3
 
4
#/**********************************************************************/
5
#/*                                                                    */
6
#/*             -------                                                */
7
#/*            /   SOC  \                                              */
8
#/*           /    GEN   \                                             */
9
#/*          /    TOOL    \                                            */
10
#/*          ==============                                            */
11
#/*          |            |                                            */
12
#/*          |____________|                                            */
13
#/*                                                                    */
14
#/*                                                                    */
15
#/*                                                                    */
16
#/*  Author(s):                                                        */
17
#/*      - John Eaton, jt_eaton@opencores.org                          */
18
#/*                                                                    */
19
#/**********************************************************************/
20
#/*                                                                    */
21
#/*    Copyright (C) <2010-2011>                */
22
#/*                                                                    */
23
#/*  This source file may be used and distributed without              */
24
#/*  restriction provided that this copyright statement is not         */
25
#/*  removed from the file and that any derivative work contains       */
26
#/*  the original copyright notice and the associated disclaimer.      */
27
#/*                                                                    */
28
#/*  This source file is free software; you can redistribute it        */
29
#/*  and/or modify it under the terms of the GNU Lesser General        */
30
#/*  Public License as published by the Free Software Foundation;      */
31
#/*  either version 2.1 of the License, or (at your option) any        */
32
#/*  later version.                                                    */
33
#/*                                                                    */
34
#/*  This source is distributed in the hope that it will be            */
35
#/*  useful, but WITHOUT ANY WARRANTY; without even the implied        */
36
#/*  warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR           */
37
#/*  PURPOSE.  See the GNU Lesser General Public License for more      */
38
#/*  details.                                                          */
39
#/*                                                                    */
40
#/*  You should have received a copy of the GNU Lesser General         */
41
#/*  Public License along with this source; if not, download it        */
42
#/*  from http://www.opencores.org/lgpl.shtml                          */
43
#/*                                                                    */
44
#/**********************************************************************/
45
 
46
use Getopt::Long;
47
use English;
48
use File::Basename;
49
use Cwd;
50
use XML::LibXML;
51
use lib './tools';
52
use sys::lib;
53
use yp::lib;
54
use BerkeleyDB;
55
 
56
 
57
$OUTPUT_AUTOFLUSH = 1; # set autoflush of stdout to TRUE.
58
 
59
my $parser = XML::LibXML->new();
60
my $home    = cwd();
61
 
62
 
63
#/*********************************************************************************************/
64
#/                                                                                            */
65
#/                                                                                            */
66
#/                                                                                            */
67
#/                                                                                            */
68
#/*********************************************************************************************/
69
 
70
 
71
my @abstractionDefinitions = yp::lib::find_abstractionDefinitions();
72
 
73
my $version;
74
my $component;
75
my $library;
76
my $vendor;
77
 
78
 
79
foreach my $abstractionDefinition (@abstractionDefinitions)
80
{
81
 ( $vendor,$library, $component ,$version) = split ':', $abstractionDefinition;
82
   print "AbsDef ${vendor} ${library} ${component} ${version} \n";
83
   $cmd = "./tools/busdefs/gen_busdef    -vendor $vendor -library $library -component $component  -version $version   ";
84
   if (system($cmd)) {}
85
}
86
 
87
 
88
 
89
 
90
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.