MG: create_dwa.sh added concept of project.
This commit is contained in:
@@ -1,30 +1,38 @@
|
|||||||
#!/bin/csh
|
#!/bin/csh
|
||||||
|
|
||||||
if ( $1 == '' ) then
|
if ( $1 == "" ) then
|
||||||
echo 'DWA folder is not specified.'
|
echo 'DWA folder is not specified.'
|
||||||
exit
|
exit
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
if ( $2 == '' ) then
|
if ( $2 == "" ) then
|
||||||
echo 'VCO is not specified.'
|
echo 'VCO is not specified.'
|
||||||
exit
|
exit
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if ( $2 != 'aoi' && $2 != 'aoi-dbg' ) then
|
if ( $2 != "aoi" && $2 != "aoi-dbg" ) then
|
||||||
echo 'VCO is unknown.'
|
echo 'VCO is unknown.'
|
||||||
exit
|
exit
|
||||||
endif
|
endif
|
||||||
|
|
||||||
set VVCO=$2
|
set VVCO=$2
|
||||||
|
|
||||||
|
if ( $3 != "" ) then
|
||||||
|
set PRJ=$3
|
||||||
|
else
|
||||||
|
set PRJ=""
|
||||||
|
endif
|
||||||
|
|
||||||
|
######################
|
||||||
|
# Create DWA
|
||||||
|
######################
|
||||||
mkdir -p $1
|
mkdir -p $1
|
||||||
cd $1
|
cd $1
|
||||||
setenv DWA `pwd`
|
setenv DWA `pwd`
|
||||||
|
|
||||||
ic_dwa -lv $IWA $DWA $VVCO
|
ic_dwa -lv $IWA $DWA $VVCO
|
||||||
|
|
||||||
######################
|
|
||||||
cd $DWA/ic/ic_superproj/$VVCO
|
cd $DWA/ic/ic_superproj/$VVCO
|
||||||
cglu
|
cglu
|
||||||
pmake mk_imports imports
|
pmake mk_imports imports
|
||||||
@@ -33,15 +41,35 @@ cd $DWA/ic/lv/$VVCO
|
|||||||
cglu
|
cglu
|
||||||
cm_add_verfiles
|
cm_add_verfiles
|
||||||
|
|
||||||
#cd $DWA/ic/lv/$VCO-dbg/lithas/Dsrc
|
|
||||||
#cvs update build.pl
|
|
||||||
|
|
||||||
cd $DWA/ic/lv/$VVCO
|
cd $DWA/ic/lv/$VVCO
|
||||||
|
|
||||||
setenv CAL_DWA $DWA
|
setenv CAL_DWA $DWA
|
||||||
setenv CAL_IWA $IWA
|
setenv CAL_IWA $IWA
|
||||||
|
|
||||||
|
######################
|
||||||
|
# Syn project files.
|
||||||
|
######################
|
||||||
|
if ( $PRJ == "wrap" || $PRJ == "fill" ) then
|
||||||
|
cd Dsrc/iclv
|
||||||
|
foreach i (`ls Isrc/dfm_fill*`)
|
||||||
|
cvs update `basename $i`
|
||||||
|
touch `basename $i`
|
||||||
|
end
|
||||||
|
cd -
|
||||||
|
endif
|
||||||
|
|
||||||
|
######################
|
||||||
|
# Run ctags.
|
||||||
|
######################
|
||||||
|
cd Dsrc
|
||||||
|
ptags
|
||||||
|
cd -
|
||||||
|
|
||||||
|
######################
|
||||||
|
# Build project.
|
||||||
|
######################
|
||||||
pmake lcl_exec ic_create_deps
|
pmake lcl_exec ic_create_deps
|
||||||
|
pmake systests lv_verify
|
||||||
|
|
||||||
#
|
#
|
||||||
# Set path after build. Otherwise tcsh doesn't find binaries.
|
# Set path after build. Otherwise tcsh doesn't find binaries.
|
||||||
@@ -50,10 +78,7 @@ setenv MGC_HOME $DWA/ic/ic_superproj/$VVCO/Mgc_home
|
|||||||
setenv MGC_BIN $MGC_HOME/bin
|
setenv MGC_BIN $MGC_HOME/bin
|
||||||
setenv PATH $MGC_BIN\:$PATH
|
setenv PATH $MGC_BIN\:$PATH
|
||||||
|
|
||||||
|
#cd $DWA/ic/lv/$VCO-dbg/lithas/Dsrc
|
||||||
|
#cvs update build.pl
|
||||||
#cd
|
#cd
|
||||||
#$DWA/ic/lv/$VCO/lithas/Isrc/build.pl debug calibre -j 8
|
#$DWA/ic/lv/$VCO/lithas/Isrc/build.pl debug calibre -j 8
|
||||||
|
|
||||||
#cd $WA/ic/lv/$VCO
|
|
||||||
#cglu
|
|
||||||
#gmake $PB systests lv_verify -j8
|
|
||||||
#gmake $PB systests lv_verify
|
|
||||||
|
|||||||
Reference in New Issue
Block a user