OpenCores
URL https://opencores.org/ocsvn/1g_ethernet_dpi/1g_ethernet_dpi/trunk

Subversion Repositories 1g_ethernet_dpi

[/] [1g_ethernet_dpi/] [trunk/] [process.sh] - Blame information for rev 4

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 4 kuzmi4
#!/bin/bash
2
 
3
# USAGE: ./process.sh
4
# ARGs:
5
#    <none>
6
#    -clr
7
#    -arch
8
#    -bit
9
#    -elf
10
#    -cp
11
#
12
 
13
ROOT_DIR=$PWD
14
CP_DIR=~/vbox_share/WORK/Xilinx/upld
15
 
16
function run_clr {
17
echo "CLR:"
18
 
19
cd $ROOT_DIR/hw/layout
20
./process.sh -clr &> /dev/null
21
 
22
cd $ROOT_DIR/hw/msim
23
./process.sh -clr &> /dev/null
24
 
25
cd $ROOT_DIR/sw/dev/test_main
26
./process.sh -clr &> /dev/null
27
make clean -C $ROOT_DIR/sw/dev/test_bfm &> /dev/null
28
make clean -C $ROOT_DIR/sw/dev/test_main/src &> /dev/null
29
make clean -C $ROOT_DIR/sw/app/gtest &> /dev/null
30
}
31
 
32
function run_arch {
33
echo "ARCH:"
34
cd $ROOT_DIR/../
35
tar cfJ vtest_$(date +"%Y-%m-%d_%H-%M-%S").tar.xz vtest &> /dev/null
36
echo "=> done"
37
}
38
 
39
function run_bit {
40
echo "BIT:"
41
cd $ROOT_DIR/hw/layout
42
./process.sh
43
}
44
 
45
function run_elf {
46
echo "ELF:"
47
cd $ROOT_DIR/sw/dev/test_main
48
./process.sh
49
}
50
 
51
function run_cp {
52
echo "CP:"
53
local BIT_LIST=`find ./hw/layout/process/project_n1.runs/impl_1/*.bit`
54
local BIT_FILE=${BIT_LIST[0]}
55
local ELF_LIST=`find ./sw/dev/test_main/process/app_0/Debug/*.elf`
56
local ELF_FILE=${ELF_LIST[0]}
57
local HDF_LIST=`find ./sw/dev/test_main/process/*.hdf`
58
local HDF_FILE=${HDF_LIST[0]}
59
 
60
rm -rf $CP_DIR/*.bit
61
rm -rf $CP_DIR/*.elf
62
rm -rf $CP_DIR/*.hdf
63
 
64
cp $BIT_FILE $CP_DIR
65
cp $ELF_FILE $CP_DIR
66
cp $HDF_FILE $CP_DIR
67
}
68
 
69
echo "START: $(date)"
70
# proc NO-ARG
71
if [ "$1" == "" ]; then
72
run_clr
73
run_bit
74
run_elf
75
fi
76
# proc 1ST-ARG
77
if [ "$1" == "-clr" ]; then run_clr ; fi
78
if [ "$1" == "-arch" ]; then run_arch ; fi
79
if [ "$1" == "-bit" ]; then run_bit ; fi
80
if [ "$1" == "-elf" ]; then run_elf ; fi
81
if [ "$1" == "-cp" ]; then run_cp ; fi
82
# proc 2ND-ARG
83
if [ "$2" == "-arch" ]; then run_arch ; fi
84
if [ "$2" == "-bit" ]; then run_bit ; fi
85
if [ "$2" == "-elf" ]; then run_elf ; fi
86
if [ "$2" == "-cp" ]; then run_cp ; fi
87
echo "STOP : $(date)"
88
 
89
# Final
90
exit 0

powered by: WebSVN 2.1.0

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