Commit 70fefca3 authored by thomasl's avatar thomasl

fix bugs in cmake definitions

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@6756 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent 167a007f
This diff is collapsed.
This diff is collapsed.
...@@ -52,7 +52,7 @@ until [ -z "$1" ] ...@@ -52,7 +52,7 @@ until [ -z "$1" ]
do do
case "$1" in case "$1" in
-c | --clean) -c | --clean)
CLEAN=1 export CLEAN=1
echo "Will re-compile ALL" echo "Will re-compile ALL"
shift; shift;
;; ;;
...@@ -178,11 +178,6 @@ cecho "OPENAIR_TARGETS = $OPENAIR_TARGETS" $green ...@@ -178,11 +178,6 @@ cecho "OPENAIR_TARGETS = $OPENAIR_TARGETS" $green
dbin=$OPENAIR_HOME/cmake_targets/bin dbin=$OPENAIR_HOME/cmake_targets/bin
dlog=$OPENAIR_HOME/cmake_targets/log dlog=$OPENAIR_HOME/cmake_targets/log
if [ "$CLEAN" == "1" ] ; then
rm -rf $OPENAIR_DIR/cmake_targets/*/build $dbin $dlog
echo_info "deleted all compilation results"
fi
mkdir -p $dbin $dlog mkdir -p $dbin $dlog
if [ "$DISABLE_CHECK_INSTALLED_SOFTWARE" != "1" ] ; then if [ "$DISABLE_CHECK_INSTALLED_SOFTWARE" != "1" ] ; then
...@@ -210,32 +205,32 @@ if [ "$TARGET" = "ALL" -o "$TARGET" = "SOFTMODEM" ] ; then ...@@ -210,32 +205,32 @@ if [ "$TARGET" = "ALL" -o "$TARGET" = "SOFTMODEM" ] ; then
echo "set(RF_BOARD \"${HW}\")" >> $cmake_file echo "set(RF_BOARD \"${HW}\")" >> $cmake_file
echo 'set(PACKAGE_NAME "lte-softmodem")' >> $cmake_file echo 'set(PACKAGE_NAME "lte-softmodem")' >> $cmake_file
echo 'include(${CMAKE_CURRENT_SOURCE_DIR}/../CMakeLists.txt)' >> $cmake_file echo 'include(${CMAKE_CURRENT_SOURCE_DIR}/../CMakeLists.txt)' >> $cmake_file
compilations \
if compilations lte_build_oai lte-softmodem lte-softmodem $dbin/lte-softmodem.$REL \ lte_build_oai lte-softmodem \
> $dlog/lte-softmodem.$REL.txt 2>&1 ; then lte-softmodem $dbin/lte-softmodem.$REL \
echo_success "lte-softmodem compiled" $dlog/lte-softmodem.$REL.txt \
else "lte-softmodem compiled" \
echo_error "lte-softmodem compilation failed" "lte-softmodem compilation failed"
fi
# nasmesh driver compilation # nasmesh driver compilation
if compilations lte_build_oai nasmesh CMakeFiles/nasmesh/nasmesh.ko $dbin/nasmesk.ko \ compilations \
> $dlog/nasmesh.txt 2>&1 ; then lte_build_oai nasmesh \
echo_success "nasmesh driver compiled" CMakeFiles/nasmesh/nasmesh.ko $dbin/nasmesh.ko \
else $dlog/nasmesh.txt \
echo_error "nasmesh driver compilation failed" "nasmesh driver compiled" \
fi "nasmesh driver compilation failed"
# lte unitary simulators compilation # lte unitary simulators compilation
simlist="dlsim ulsim pucchsim prachsim pdcchsim pbchsim mbmssim" simlist="dlsim ulsim pucchsim prachsim pdcchsim pbchsim mbmssim"
log=$dlog/lte-simulators.log log=$dlog/lte-simulators.log
cd $OPENAIR_DIR/cmake_targets/lte-simulators cd $OPENAIR_DIR/cmake_targets/lte-simulators
[ "$CLEAN" = "1" ] && rm -rf build
mkdir -p build mkdir -p build
cd build cd build
rm -f *sim rm -f *sim
cmake .. > $log 2>&1 cmake .. > $log 2>&1
make -j4 $simlist > $log 2>&1
for f in $simlist ; do for f in $simlist ; do
make -j4 $f > $log 2>&1
if [ -s $f ] ; then if [ -s $f ] ; then
echo_success "$f compiled" echo_success "$f compiled"
cp $f $OPENAIR_DIR/cmake_targets/tests/bin cp $f $OPENAIR_DIR/cmake_targets/tests/bin
...@@ -246,63 +241,66 @@ if [ "$TARGET" = "ALL" -o "$TARGET" = "SOFTMODEM" ] ; then ...@@ -246,63 +241,66 @@ if [ "$TARGET" = "ALL" -o "$TARGET" = "SOFTMODEM" ] ; then
# EXMIMO drivers & firmware loader # EXMIMO drivers & firmware loader
if [ "$HW" = "EXMIMO" ] ; then if [ "$HW" = "EXMIMO" ] ; then
if compilations lte_build_oai openair_rf CMakeFiles/openair_rf/openair_rf.ko $dbin/openair_rf.ko \ compilations \
> $dlog/openair_rf.txt 2>&1 ; then lte_build_oai openair_rf \
echo_success "EXMIMO driver compiled" CMakeFiles/openair_rf/openair_rf.ko $dbin/openair_rf.ko \
else $dlog/openair_rf.txt 2>&1 \
echo_error "EXMIMO driver compilation failed" "EXMIMO driver compiled" \
fi "EXMIMO driver compilation failed"
if compilations lte_build_oai updatefw updatefw $dbin/updatefw \ compilations \
> $dlog/updatefw.txt 2>&1 ; then lte_build_oai updatefw \
echo_success "EXMIMO firmware loader compiled" updatefw $dbin/updatefw \
else $dlog/updatefw.txt 2>&1 \
echo_error "EXMIMO firmware loader compilation failed" "EXMIMO firmware loader compiled" \
fi "EXMIMO firmware loader compilation failed"
fi fi
# TBD: oasim compilation # oasim compilation
cmake_file=$DIR/oaisim_build_oai/CMakeLists.txt cmake_file=$DIR/oaisim_build_oai/CMakeLists.txt
cp $DIR/oaisim_build_oai/CMakeLists.template $cmake_file cp $DIR/oaisim_build_oai/CMakeLists.template $cmake_file
echo "set(XFORMS $XFORMS )" >> $cmake_file echo "set(XFORMS $XFORMS )" >> $cmake_file
echo "set(RRC_ASN1_VERSION \"${REL}\")" >> $cmake_file echo "set(RRC_ASN1_VERSION \"${REL}\")" >> $cmake_file
echo "set(ENABLE_VCD_FIFO $VCD_TIMING )" >> $cmake_file echo "set(ENABLE_VCD_FIFO $VCD_TIMING )" >> $cmake_file
echo "set(RF_BOARD \"${HW}\")" >> $cmake_file
echo 'include(${CMAKE_CURRENT_SOURCE_DIR}/../CMakeLists.txt)' >> $cmake_file echo 'include(${CMAKE_CURRENT_SOURCE_DIR}/../CMakeLists.txt)' >> $cmake_file
compilations \
if compilations oaisim_build_oai oaisim oaisim $dbin/oaisim.$REL \ oaisim_build_oai oaisim \
> $dlog/oaisim.$REL.txt 2>&1 ; then oaisim $dbin/oaisim.$REL \
echo_success "oaisim compiled" $dlog/oaisim.$REL.txt 2>&1 \
else "oaisim compiled" \
echo_error "oaisim compilation failed" "oaisim compilation failed"
fi
fi fi
exit 0
build_epc(){ # EPC compilation
##################
epc_compiled=1 # Auto-tests
#####################
if [ "$OAI_TEST" = "1" ]; then
echo_info "10. Running OAI pre commit tests (pre-ci) ..."
updated=$(svn st -q $OPENAIR_DIR)
if [ "$updated" != "" ] ; then
echo_warning "some files are not in svn: $updated"
fi
mkdir -p $dbin.test
compilations \
test.0101 oaisim \
oaisim $dbin.test/oaisim.r8 \
$dlog/oaisim.r8.test0101.txt \
"test 0101:oaisim passed" \
"test 0101:oaisim failed"
compilations test.0102 nasmesh \
CMakeFiles/nasmesh/nasmesh.ko $dbin/test/nasmesh.ko \
$dlog/nasmesh.test0102.txt \
"test 0102: nasmesh.ko passed" \
"test 0102: nasmesk.ko failed"
else
echo_info "10. Bypassing the Tests ..."
fi
exit 0
echo_info "Note: this scripts tested only on Ubuntu 14.04x64"
######################################
# CHECK MISC SOFTWARES AND LIBS #
######################################
if [ $DISABLE_CHECK_INSTALLED_SOFTWARE -eq 0 ]; then
echo_info "4. Checking the the required softwares/packages for EPC..."
check_install_epc_software
check_install_asn1c
if [ $OAI_CLEAN -eq 1 ]; then
check_install_freediamter
else
if [ ! -d /usr/local/etc/freeDiameter ]; then
check_install_freediamter
fi
fi
else
echo_info "4. Not checking the required softwares/packages for EPC"
fi
########################################### ###########################################
# configure and compile # configure and compile
......
cmake_minimum_required(VERSION 2.8) cmake_minimum_required(VERSION 2.8)
set(XFORMS False ) set(XFORMS 1 )
set(RRC_ASN1_VERSION "Rel10") set(RRC_ASN1_VERSION "Rel8")
set(ENABLE_VCD_FIFO False ) set(ENABLE_VCD_FIFO False )
set(RF_BOARD "EXMIMO") set(RF_BOARD "EXMIMO")
set(PACKAGE_NAME "lte-softmodem") set(PACKAGE_NAME "lte-softmodem")
......
cmake_minimum_required(VERSION 2.8) cmake_minimum_required(VERSION 2.8)
set(ADDR_CONF False) set ( CMAKE_BUILD_TYPE "RelWithDebInfo" )
set(ASSERT True) set ( ADDR_CONF False )
set(DEBUG_OMG False) set ( ASSERT True )
set(DRIVER2013 True) set ( DEBUG_OMG False )
set(ENABLE_FXP True) set ( DISABLE_XER_PRINT False )
set(ENABLE_ITTI True) set ( DRIVER2013 True )
set(ENABLE_NAS_UE_LOGGING True) set ( EMOS False )
set(ENABLE_NEW_MULTICAST True) set ( ENABLE_FXP True )
set(ENABLE_PDCP_NETLINK_FIFO False) set ( ENABLE_ITTI True )
set(ENABLE_PGM_TRANSPORT True) set ( ENABLE_NAS_UE_LOGGING True )
set(ENABLE_RAL False) set ( ENABLE_NEW_MULTICAST True )
set(ENABLE_SECURITY True) set ( ENABLE_PDCP_NETLINK_FIFO False )
set(ENABLE_USE_CPU_EXECUTION_TIME True) set ( ENABLE_PGM_TRANSPORT True )
set(ENABLE_USE_MME True) set ( ENABLE_RAL False )
set(HARD_RT False) set ( ENABLE_SECURITY True )
set(JUMBO_FRAME False) set ( ENABLE_USE_CPU_EXECUTION_TIME True )
set(LARGE_SCALE False) set ( ENABLE_USE_MME True )
set(LINK_PDCP_TO_GTPV1U True) set ( ENABLE_VCD_FIFO True )
set(LINUX_LIST False) set ( EXMIMO_IOT True )
set(LINUX True) set ( HARD_RT False )
set(LOCALIZATION False) set ( JUMBO_FRAME True )
set(LOG_NO_THREAD True) set ( LARGE_SCALE False )
set(LOWLATENCY True) set ( LINK_PDCP_TO_GTPV1U True )
set(MAC_CONTEXT 1) set ( LINUX_LIST False )
set(MAX_NUM_CCs 1) set ( LINUX True )
set(MIH_C_MEDIEVAL_EXTENSIONS True) set ( LOCALIZATION False )
set(MSG_PRINT False) set ( LOG_NO_THREAD False )
set(MU_RECEIVER False) set ( LOWLATENCY False )
set(NAS_ADDRESS_FIX true) set ( MAC_CONTEXT 1 )
set(NAS_NETLINK False) set ( MAX_NUM_CCs 1 )
set(NAS_UE False) set ( MIH_C_MEDIEVAL_EXTENSIONS True )
set(NEW_FFT True) set ( MSG_PRINT False )
set(NO_RRM True) set ( MU_RECEIVER False )
set(OAI_EMU True) set ( NAS_ADDRESS_FIX False )
set(OAISIM True) set ( NAS_MME False )
set(OAI_NW_DRIVER_TYPE_ETHERNET False) set ( NAS_NETLINK False )
set(OPENAIR1 True) set ( NAS_UE True )
set(OPENAIR2 True) set ( NB_ANTENNAS_RX "2" )
set(OPENAIR_EMU False) set ( NB_ANTENNAS_TX "2" )
set(OPENAIR_LTE True) set ( NB_ANTENNAS_TXRX "2" )
set(PACKAGE_NAME "oaisim") set ( NEW_FFT True )
set(PBS_SIM False) set ( NO_RRM True )
set(PC_DSP True) set ( OAI_EMU True )
set(PC_TARGET True) set ( OAISIM True )
set(PDCP_MSG_PRINT False) set ( OAI_NW_DRIVER_TYPE_ETHERNET False )
set(PERFECT_CE False) set ( OAI_NW_DRIVER_USE_NETLINK False )
set(PHY_ABSTRACTION False) set ( OPENAIR1 True )
set(PHY_ABSTRACTION False) set ( OPENAIR2 True )
set(PHY_EMUL False) set ( OPENAIR_EMU False )
set(PHYSIM True) set ( OPENAIR_LTE True )
set(PUCCH True) set ( PACKAGE_NAME "oaisim" )
set(RANDOM_BF False) set ( PBS_SIM False )
set(RF_BOARD "EXMIMO") set ( PC_DSP True )
set(RLC_STOP_ON_LOST_PDU False) set ( PC_TARGET True )
set(RRC_ASN1_VERSION False) set ( PDCP_MSG_PRINT False )
set(RRC_ASN1_VERSION "Rel10") set ( PERFECT_CE False )
set(RRC_MSG_PRINT False) set ( PHY_ABSTRACTION False )
set(RTAI False) set ( PHY_CONTEXT False )
set(SECU False) set ( PHY_EMUL False )
set(SMBV False) set ( PHYSIM True )
set(SPECTRA False) set ( PUCCH True )
set(TEST_OMG False) set ( RANDOM_BF False )
set(UE_BUILD False) set ( RF_BOARD "False" )
set(USE_3GPP_ADDR_AS_LINK_ADDR False) set ( RRC_ASN1_VERSION "Rel10" )
set(USE_MME False) set ( RLC_STOP_ON_LOST_PDU False )
set(USER_MODE True) set ( RRC_MSG_PRINT False )
set(XER_PRINT False) set ( RTAI False )
set ( SECU False )
set ( SMBV False )
set ( SPECTRA False )
set ( TEST_OMG False )
set ( UE_BUILD False )
set ( USE_3GPP_ADDR_AS_LINK_ADDR False )
set ( USE_MME "R10" )
set ( USER_MODE True )
set ( XER_PRINT False )
set ( XFORMS False )
cmake_minimum_required(VERSION 2.8) cmake_minimum_required(VERSION 2.8)
set(ADDR_CONF False) set ( CMAKE_BUILD_TYPE "RelWithDebInfo" )
set(ASSERT True) set ( ADDR_CONF False )
set(DEBUG_OMG False) set ( ASSERT True )
set(DRIVER2013 True) set ( DEBUG_OMG False )
set(ENABLE_FXP True) set ( DISABLE_XER_PRINT False )
set(ENABLE_ITTI True) set ( DRIVER2013 True )
set(ENABLE_NAS_UE_LOGGING True) set ( EMOS False )
set(ENABLE_NEW_MULTICAST True) set ( ENABLE_FXP True )
set(ENABLE_PDCP_NETLINK_FIFO False) set ( ENABLE_ITTI True )
set(ENABLE_PGM_TRANSPORT True) set ( ENABLE_NAS_UE_LOGGING True )
set(ENABLE_RAL False) set ( ENABLE_NEW_MULTICAST True )
set(ENABLE_SECURITY True) set ( ENABLE_PDCP_NETLINK_FIFO False )
set(ENABLE_USE_CPU_EXECUTION_TIME True) set ( ENABLE_PGM_TRANSPORT True )
set(ENABLE_USE_MME True) set ( ENABLE_RAL False )
set(HARD_RT False) set ( ENABLE_SECURITY True )
set(JUMBO_FRAME False) set ( ENABLE_USE_CPU_EXECUTION_TIME True )
set(LARGE_SCALE False) set ( ENABLE_USE_MME True )
set(LINK_PDCP_TO_GTPV1U True) set ( ENABLE_VCD_FIFO True )
set(LINUX_LIST False) set ( EXMIMO_IOT True )
set(LINUX True) set ( HARD_RT False )
set(LOCALIZATION False) set ( JUMBO_FRAME True )
set(LOG_NO_THREAD True) set ( LARGE_SCALE False )
set(LOWLATENCY True) set ( LINK_PDCP_TO_GTPV1U True )
set(MAC_CONTEXT 1) set ( LINUX_LIST False )
set(MAX_NUM_CCs 1) set ( LINUX True )
set(MIH_C_MEDIEVAL_EXTENSIONS True) set ( LOCALIZATION False )
set(MSG_PRINT False) set ( LOG_NO_THREAD False )
set(MU_RECEIVER False) set ( LOWLATENCY False )
set(NAS_ADDRESS_FIX true) set ( MAC_CONTEXT 1 )
set(NAS_NETLINK False) set ( MAX_NUM_CCs 1 )
set(NAS_UE False) set ( MIH_C_MEDIEVAL_EXTENSIONS True )
set(NEW_FFT True) set ( MSG_PRINT False )
set(NO_RRM True) set ( MU_RECEIVER False )
set(OAI_EMU True) set ( NAS_ADDRESS_FIX False )
set(OAISIM True) set ( NAS_MME False )
set(OAI_NW_DRIVER_TYPE_ETHERNET False) set ( NAS_NETLINK False )
set(OPENAIR1 True) set ( NAS_UE True )
set(OPENAIR2 True) set ( NB_ANTENNAS_RX "2" )
set(OPENAIR_EMU False) set ( NB_ANTENNAS_TX "2" )
set(OPENAIR_LTE True) set ( NB_ANTENNAS_TXRX "2" )
set(PACKAGE_NAME "oaisim") set ( NEW_FFT True )
set(PBS_SIM False) set ( NO_RRM True )
set(PC_DSP True) set ( OAI_EMU True )
set(PC_TARGET True) set ( OAISIM True )
set(PDCP_MSG_PRINT False) set ( OAI_NW_DRIVER_TYPE_ETHERNET False )
set(PERFECT_CE False) set ( OAI_NW_DRIVER_USE_NETLINK False )
set(PHY_ABSTRACTION False) set ( OPENAIR1 True )
set(PHY_ABSTRACTION False) set ( OPENAIR2 True )
set(PHY_EMUL False) set ( OPENAIR_EMU False )
set(PHYSIM True) set ( OPENAIR_LTE True )
set(PUCCH True) set ( PACKAGE_NAME "oaisim" )
set(RANDOM_BF False) set ( PBS_SIM False )
set(RF_BOARD "EXMIMO") set ( PC_DSP True )
set(RLC_STOP_ON_LOST_PDU False) set ( PC_TARGET True )
set(RRC_ASN1_VERSION False) set ( PDCP_MSG_PRINT False )
set(RRC_ASN1_VERSION "Rel10") set ( PERFECT_CE False )
set(RRC_MSG_PRINT False) set ( PHY_ABSTRACTION False )
set(RTAI False) set ( PHY_CONTEXT False )
set(SECU False) set ( PHY_EMUL False )
set(SMBV False) set ( PHYSIM True )
set(SPECTRA False) set ( PUCCH True )
set(TEST_OMG False) set ( RANDOM_BF False )
set(UE_BUILD False) set ( RF_BOARD "False" )
set(USE_3GPP_ADDR_AS_LINK_ADDR False) set ( RRC_ASN1_VERSION "Rel10" )
set(USE_MME False) set ( RLC_STOP_ON_LOST_PDU False )
set(USER_MODE True) set ( RRC_MSG_PRINT False )
set(XER_PRINT False) set ( RTAI False )
set ( SECU False )
set ( SMBV False )
set ( SPECTRA False )
set ( TEST_OMG False )
set ( UE_BUILD False )
set ( USE_3GPP_ADDR_AS_LINK_ADDR False )
set ( USE_MME "R10" )
set ( USER_MODE True )
set ( XER_PRINT False )
set ( XFORMS False )
set(XFORMS False ) set(XFORMS False )
set(RRC_ASN1_VERSION "Rel10") set(RRC_ASN1_VERSION "Rel8")
set(ENABLE_VCD_FIFO False ) set(ENABLE_VCD_FIFO False )
set(RF_BOARD "EXMIMO")
include(${CMAKE_CURRENT_SOURCE_DIR}/../CMakeLists.txt) include(${CMAKE_CURRENT_SOURCE_DIR}/../CMakeLists.txt)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment