-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathrelease_openmac.sh
119 lines (106 loc) · 6.66 KB
/
release_openmac.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
#!/bin/bash
# ./release_openmac.sh RELEASE_DIR IP_VERSION
# e.g.: $ ./release_openmac.sh release v1_00_a
DIR_RELEASE=$1
IP_VERSION=$2
DIR_DOC=doc/openmac
if [ -z "${DIR_RELEASE}" ];
then
DIR_RELEASE=release
fi
if [ -z "${IP_VERSION}" ];
then
IP_VERSION=v1_02_a
fi
DIR_AXI="axi_openmac_${IP_VERSION}"
# create dir structure
echo "create release dir..."
mkdir -p ${DIR_RELEASE}
# generate docs
echo "generate docs..."
pushd $DIR_DOC
./create-this-doc --skip-doxygen
popd
# copy docs
echo "copy docs..."
cp --parents ${DIR_DOC}/images/openmac-overview.png ${DIR_RELEASE}
cp --parents ${DIR_DOC}/wavedrom/master-read.svg ${DIR_RELEASE}
cp --parents ${DIR_DOC}/wavedrom/master-write.svg ${DIR_RELEASE}
cp --parents ${DIR_DOC}/wavedrom/slave-read.svg ${DIR_RELEASE}
cp --parents ${DIR_DOC}/wavedrom/slave-write.svg ${DIR_RELEASE}
cp --parents ${DIR_DOC}/md/openmac.md ${DIR_RELEASE}
cp --parents ${DIR_DOC}/doxyfile ${DIR_RELEASE}
cp --parents ${DIR_DOC}/mainpage.txt ${DIR_RELEASE}
# create revision.txt
REV_FILE=${DIR_RELEASE}/${DIR_DOC}/revision.md
echo "Revision {#revision}" > $REV_FILE
echo "========" >> $REV_FILE
echo "" >> $REV_FILE
git log --format="- %s" -- */openmac/* >> $REV_FILE
# copy Altera POWERLINK
echo "copy Altera openmac ipcore..."
cp --parents altera/components/sdc/openmacTop-mii.sdc ${DIR_RELEASE}
cp --parents altera/components/sdc/openmacTop-rmii.sdc ${DIR_RELEASE}
cp --parents altera/components/img/br.png ${DIR_RELEASE}
cp --parents altera/components/openmac_hw.tcl ${DIR_RELEASE}
cp --parents altera/components/openmac_sw.tcl ${DIR_RELEASE}
cp --parents altera/components/tcl/openmac.tcl ${DIR_RELEASE}
cp --parents altera/components/tcl/qsysUtil.tcl ${DIR_RELEASE}
cp --parents common/util/tcl/ipcoreUtil.tcl ${DIR_RELEASE}
cp --parents common/util/tcl/writeFile.tcl ${DIR_RELEASE}
cp --parents common/memory/src/dpRam-e.vhd ${DIR_RELEASE}
cp --parents common/memory/src/dpRamSplx-e.vhd ${DIR_RELEASE}
cp --parents common/fifo/src/asyncFifo-e.vhd ${DIR_RELEASE}
cp --parents common/openmac/tcl/openmac.tcl ${DIR_RELEASE}
cp --parents common/openmac/src/openmacPkg-p.vhd ${DIR_RELEASE}
cp --parents common/openmac/src/dma_handler.vhd ${DIR_RELEASE}
cp --parents common/openmac/src/master_handler.vhd ${DIR_RELEASE}
cp --parents common/openmac/src/openMAC_DMAmaster.vhd ${DIR_RELEASE}
cp --parents common/openmac/src/openfilter-rtl-ea.vhd ${DIR_RELEASE}
cp --parents common/openmac/src/openhub-rtl-ea.vhd ${DIR_RELEASE}
cp --parents common/openmac/src/openmacTimer-rtl-ea.vhd ${DIR_RELEASE}
cp --parents common/openmac/src/phyActGen-rtl-ea.vhd ${DIR_RELEASE}
cp --parents common/openmac/src/phyMgmt-rtl-ea.vhd ${DIR_RELEASE}
cp --parents common/openmac/src/convRmiiToMii-rtl-ea.vhd ${DIR_RELEASE}
cp --parents common/openmac/src/openmac-rtl-ea.vhd ${DIR_RELEASE}
cp --parents common/openmac/src/openmacTop-rtl-ea.vhd ${DIR_RELEASE}
cp --parents altera/memory/src/dpRam-rtl-a.vhd ${DIR_RELEASE}
cp --parents altera/memory/src/dpRamSplx-rtl-a.vhd ${DIR_RELEASE}
cp --parents altera/fifo/src/asyncFifo-syn-a.vhd ${DIR_RELEASE}
cp --parents altera/openmac/src/alteraOpenmacTop-rtl-ea.vhd ${DIR_RELEASE}
# copy Xilinx AXI OPENMAC
echo "copy Xilinx axi openmac ipcore..."
# Copy XPS component to directory with version name
mkdir -p ${DIR_RELEASE}/xilinx/components/pcores/axi_openmac_${IP_VERSION}/data
cp xilinx/components/pcores/axi_openmac_vX_YY_Z/data/axi_openmac_v2_1_0.mdd ${DIR_RELEASE}/xilinx/components/pcores/axi_openmac_${IP_VERSION}/data
cp xilinx/components/pcores/axi_openmac_vX_YY_Z/data/axi_openmac_v2_1_0.mpd ${DIR_RELEASE}/xilinx/components/pcores/axi_openmac_${IP_VERSION}/data
cp xilinx/components/pcores/axi_openmac_vX_YY_Z/data/axi_openmac_v2_1_0.pao ${DIR_RELEASE}/xilinx/components/pcores/axi_openmac_${IP_VERSION}/data
cp xilinx/components/pcores/axi_openmac_vX_YY_Z/data/axi_openmac_v2_1_0.tcl ${DIR_RELEASE}/xilinx/components/pcores/axi_openmac_${IP_VERSION}/data
cp xilinx/components/pcores/axi_openmac_vX_YY_Z/data/axi_openmac_v2_1_0.mui ${DIR_RELEASE}/xilinx/components/pcores/axi_openmac_${IP_VERSION}/data
cp --parents common/util/tcl/ipcoreUtil.tcl ${DIR_RELEASE}
cp --parents common/memory/src/dpRam-e.vhd ${DIR_RELEASE}
cp --parents common/memory/src/dpRamSplx-e.vhd ${DIR_RELEASE}
cp --parents common/memory/src/dpRamSplxNbe-e.vhd ${DIR_RELEASE}
cp --parents common/fifo/src/asyncFifo-e.vhd ${DIR_RELEASE}
cp --parents common/fifo/src/asyncFifo-rtl-a.vhd ${DIR_RELEASE}
cp --parents common/fifo/src/fifoRead-rtl-ea.vhd ${DIR_RELEASE}
cp --parents common/fifo/src/fifoWrite-rtl-ea.vhd ${DIR_RELEASE}
cp --parents common/openmac/tcl/openmac.tcl ${DIR_RELEASE}
cp --parents common/openmac/src/openmacPkg-p.vhd ${DIR_RELEASE}
cp --parents common/openmac/src/dma_handler.vhd ${DIR_RELEASE}
cp --parents common/openmac/src/master_handler.vhd ${DIR_RELEASE}
cp --parents common/openmac/src/openMAC_DMAmaster.vhd ${DIR_RELEASE}
cp --parents common/openmac/src/openfilter-rtl-ea.vhd ${DIR_RELEASE}
cp --parents common/openmac/src/openhub-rtl-ea.vhd ${DIR_RELEASE}
cp --parents common/openmac/src/openmacTimer-rtl-ea.vhd ${DIR_RELEASE}
cp --parents common/openmac/src/phyActGen-rtl-ea.vhd ${DIR_RELEASE}
cp --parents common/openmac/src/phyMgmt-rtl-ea.vhd ${DIR_RELEASE}
cp --parents common/openmac/src/convRmiiToMii-rtl-ea.vhd ${DIR_RELEASE}
cp --parents common/openmac/src/mmSlaveConv-rtl-ea.vhd ${DIR_RELEASE}
cp --parents common/openmac/src/openmac-rtl-ea.vhd ${DIR_RELEASE}
cp --parents common/openmac/src/openmacTop-rtl-ea.vhd ${DIR_RELEASE}
cp --parents xilinx/memory/src/dpRam-rtl-a.vhd ${DIR_RELEASE}
cp --parents xilinx/memory/src/dpRamSplx-rtl-a.vhd ${DIR_RELEASE}
cp --parents xilinx/memory/src/dpRamSplxNbe-rtl-a.vhd ${DIR_RELEASE}
cp --parents xilinx/openmac/src/ipifMasterHandler-rtl-ea.vhd ${DIR_RELEASE}
cp --parents xilinx/openmac/src/axi_openmac-rtl-ea.vhd ${DIR_RELEASE}