summaryrefslogtreecommitdiffstats
path: root/ipxact/regen.sh
blob: 28c0c20b8d1c21c4304706873c5073adcd76ee7c (plain)
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
#!/bin/bash
set -e
IPXACT=~/git/ipxact/build/ipxact
PROJECT=bcm5719

echo "Regenerating Bcm5719 header"

${IPXACT} -p ${PROJECT} APE_component.xml SHM.xml DEVICE.xml NVM.xml bcm5719.xml bcm5719_full.xml

${IPXACT} -p ${PROJECT} bcm5719_full.xml bcm5719.h

mv bcm5719_NVM.h ../libs/NVRam/
mv bcm5719_MII.h ../libs/MII/include/
mv bcm5719_DEVICE.h ../include/
mv bcm5719_GEN.h ../include/
mv bcm5719_APE.h ../include/
mv bcm5719_APE_PERI.h ../include/
mv bcm5719_SHM.h ../include/
mv bcm5719_SHM_CHANNEL*.h ../include/
mv bcm5719_RXMBUF.h ../include
mv bcm5719_SDBCACHE.h ../include
mv bcm5719_TXMBUF.h ../include
mv bcm5719_BOOTCODE.h ../include


${IPXACT} -p ${PROJECT} bcm5719_full.xml bcm5719.cpp
rm bcm5719_BOOTCODE*.cpp
rm bcm5719_RXMBUF*.cpp
rm bcm5719_TXMBUF*.cpp
rm bcm5719_SDBCACHE*.cpp
mv *.cpp ../simulator/

# ${IPXACT} -p ${PROJECT} bcm5719_full.xml bcm5719.s
${IPXACT} -p ${PROJECT} bcm5719_full.xml -t asym bcm5719_sym.s
mv *.s ../libs/bcm5719/


PROJECT=ape

echo "Regenerating APE header"


${IPXACT} -p ${PROJECT} APE_component.xml FILTERS.xml SHM.xml NVIC.xml DEVICE.xml NVM.xml APE.xml APE_full.xml

${IPXACT} -p ${PROJECT} APE_full.xml APE.h
mv APE_NVIC.h ../include/
mv APE_APE.h ../include/
mv APE_APE_PERI.h ../include/
mv APE_SHM*.h ../include
mv APE_FILTERS*.h ../include
mv APE_DEVICE*.h ../include
mv APE_TX_PORT*.h ../include
mv APE_RX_PORT*.h ../include

# ${IPXACT} -p ${PROJECT} NVIC.xml APE_full.xml APE.s
${IPXACT} -p ${PROJECT} APE_full.xml -t asym APE_sym.s
mv *.s ../libs/bcm5719/

${IPXACT} -p ${PROJECT} APE_full.xml -t ape_cpp APE.cpp
rm APE_APE*.cpp
rm APE_SHM*.cpp
rm APE_NVM*.cpp
mv *.cpp ../simulator/
OpenPOWER on IntegriCloud