Commit 52cb72c0 authored by Robert Schmidt's avatar Robert Schmidt

build_oai: allow to only build radio/transport libraries

parent 47da0a02
...@@ -569,65 +569,50 @@ function main() { ...@@ -569,65 +569,50 @@ function main() {
#################################################### ####################################################
# Build RF device and transport protocol libraries # # Build RF device and transport protocol libraries #
#################################################### ####################################################
if [ "$eNB" = "1" -o "$UE" = "1" -o "$gNB" = "1" -o "$RU" = "1" -o "$nrUE" = "1" ] ; then
# build RF device libraries
if [ "$HW" != "None" ] ; then if [ "$HW" != "None" ] ; then
rm -f liboai_device.so rm -f liboai_device.so
if [ "$HW" == "OAI_USRP" ] ; then if [ "$HW" == "OAI_USRP" ] ; then
compilations $BUILD_DIR oai_usrpdevif.txt oai_usrpdevif compilations $BUILD_DIR oai_usrpdevif.txt oai_usrpdevif
ln -sf liboai_usrpdevif.so liboai_device.so ln -sf liboai_usrpdevif.so liboai_device.so
echo_info "liboai_device.so is linked to USRP device library" echo "liboai_device.so symlinks to liboai_usrpdevif.so"
elif [ "$HW" == "OAI_BLADERF" ] ; then elif [ "$HW" == "OAI_BLADERF" ] ; then
if [ -f "/usr/include/libbladeRF.h" ] ; then
compilations $BUILD_DIR oai_bladerfdevif.txt oai_bladerfdevif compilations $BUILD_DIR oai_bladerfdevif.txt oai_bladerfdevif
fi
ln -sf liboai_bladerfdevif.so liboai_device.so ln -sf liboai_bladerfdevif.so liboai_device.so
echo_info "liboai_device.so is linked to BLADERF device library" echo "liboai_device.so symlinks liboai_bladerfdevif.so"
elif [ "$HW" == "OAI_LMSSDR" ] ; then elif [ "$HW" == "OAI_LMSSDR" ] ; then
# if [ -f "/usr/include/libbladeRF.h" ] ; then
compilations $BUILD_DIR oai_lmssdrdevif.txt oai_lmssdrdevif compilations $BUILD_DIR oai_lmssdrdevif.txt oai_lmssdrdevif
# fi
ln -sf liboai_lmssdrdevif.so liboai_device.so ln -sf liboai_lmssdrdevif.so liboai_device.so
echo_info "liboai_device.so is linked to LMSSDR device library" echo "liboai_device.so symlinks to liboai_lmssdrdevif.so"
elif [ "$HW" == "OAI_IRIS" ] ; then elif [ "$HW" == "OAI_IRIS" ] ; then
compilations $BUILD_DIR oai_irisdevif.txt oai_irisdevif compilations $BUILD_DIR oai_irisdevif.txt oai_irisdevif
ln -s liboai_irisdevif.so liboai_device.so ln -s liboai_irisdevif.so liboai_device.so
echo_info "liboai_device.so is linked to IRIS device library" echo "liboai_device.so symlinks to liboai_irisdevif.so"
elif [ "$HW" == "OAI_AW2SORI" ] ; then elif [ "$HW" == "OAI_AW2SORI" ] ; then
compilations $BUILD_DIR aw2sori_transpro.txt aw2sori_transpro compilations $BUILD_DIR aw2sori_transpro.txt aw2sori_transpro
ln -sf libaw2sori_transpro.so libthirdparty_transpro.so ln -sf libaw2sori_transpro.so libthirdparty_transpro.so
echo_info "build libthirdparty_transpro.so for AW2SORI fronthaul" echo "libthirdparty_transpro.so symlinks to libaw2sori_transpro.so"
else else
echo_info "liboai_device.so is not linked to any device library" echo_fatal "illegal HW option $HW"
fi fi
fi fi
#build transport protocol libraries (currently only ETHERNET is available) if [ "$TP" != "None" ]; then
if [ "$SKIP_SHARED_LIB_FLAG" = "False" ]; then
echo_info "Building transport protocol libraries"
rm -f liboai_transpro.so rm -f liboai_transpro.so
if [ "$TP" == "Ethernet" ]; then if [ "$TP" == "Ethernet" ]; then
compilations $BUILD_DIR oai_eth_transpro.txt oai_eth_transpro compilations $BUILD_DIR oai_eth_transpro.txt oai_eth_transpro
ln -sf liboai_eth_transpro.so liboai_transpro.so ln -sf liboai_eth_transpro.so liboai_transpro.so
echo_info "liboai_transpro.so is linked to ETHERNET transport" echo_info "liboai_transpro.so symlinks to liboai_eth_transpro.so"
fi elif [ "$TP" == "benetel4g" ]; then
if [ "$TP" == "benetel4g" ]; then
compilations $BUILD_DIR benetel_4g.txt benetel4g compilations $BUILD_DIR benetel_4g.txt benetel4g
ln -sf libbenetel_4g.so liboai_transpro.so ln -sf libbenetel_4g.so liboai_transpro.so
echo_info "liboai_transpro.so is linked to BENETEL4G transport" echo_info "liboai_transpro.so symlinks to libbenetel_4g.so"
fi elif [ "$TP" == "benetel5g" ]; then
if [ "$TP" == "benetel5g" ]; then
compilations $BUILD_DIR benetel_5g.txt benetel_5g compilations $BUILD_DIR benetel_5g.txt benetel_5g
ln -sf libbenetel_5g.so liboai_transpro.so ln -sf libbenetel_5g.so liboai_transpro.so
echo_info "liboai_transpro.so is linked to BENETEL4G transport" echo_info "liboai_transpro.so symlinks to libbenetel_5g.so"
fi else
echo_fatal "illegal TP option $TP"
fi fi
fi fi
......
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