O-RU: update build_oai to build nr-oru

This commit is contained in:
Bartosz Podrygajlo
2026-01-16 11:56:33 +01:00
parent 48bcbc316c
commit 27a21cc8aa
2 changed files with 9 additions and 2 deletions
+8 -1
View File
@@ -82,6 +82,8 @@ Options:
Makes the NR softmodem Makes the NR softmodem
--RU --RU
Makes the OAI RRU Makes the OAI RRU
--nrRU
Makes the NR RRU
--UE --UE
Makes the UE specific parts (usim, nvram) from the given configuration file Makes the UE specific parts (usim, nvram) from the given configuration file
--nrUE --nrUE
@@ -227,6 +229,11 @@ function main() {
TARGET_LIST="$TARGET_LIST oairu" TARGET_LIST="$TARGET_LIST oairu"
echo_info "Will compile RRU" echo_info "Will compile RRU"
shift;; shift;;
--nrRU)
NRRU=1
TARGET_LIST="$TARGET_LIST nr-oru"
echo_info "Will compile NR O-RU"
shift;;
--UE) --UE)
UE=1 UE=1
TARGET_LIST="$TARGET_LIST lte-uesoftmodem conf2uedata usim nvram" TARGET_LIST="$TARGET_LIST lte-uesoftmodem conf2uedata usim nvram"
@@ -452,7 +459,7 @@ function main() {
if [[ $TARGET_LIST != "" ]] && [[ -f $OPENAIR_DIR/CMakeLists.txt ]]; then if [[ $TARGET_LIST != "" ]] && [[ -f $OPENAIR_DIR/CMakeLists.txt ]]; then
# add some default libraries that should always be built # add some default libraries that should always be built
# for eNB, gNB, UEs, simulators # for eNB, gNB, UEs, simulators
if [[ $gNB == 1 || $eNB == 1 || $UE == 1 || $nrUE == 1 || $SIMUS_PHY == 1 || $RU == 1 ]]; then if [[ $gNB == 1 || $eNB == 1 || $UE == 1 || $nrUE == 1 || $SIMUS_PHY == 1 || $RU == 1 || $NRRU == 1 ]]; then
TARGET_LIST="$TARGET_LIST params_libconfig coding rfsimulator dfts params_yaml vrtsim rf_emulator" TARGET_LIST="$TARGET_LIST params_libconfig coding rfsimulator dfts params_yaml vrtsim rf_emulator"
fi fi
+1 -1
View File
@@ -68,7 +68,7 @@ RUN /bin/sh oaienv && \
cd cmake_targets && \ cd cmake_targets && \
mkdir -p log && \ mkdir -p log && \
./build_oai \ ./build_oai \
--ninja --gNB \ --ninja --gNB --nrRU \
--build-lib "telnetsrv enbscope uescope nrscope" \ --build-lib "telnetsrv enbscope uescope nrscope" \
-t oran_fhlib_5g --cmake-opt -Dxran_LOCATION=/opt/phy/fhi_lib/lib \ -t oran_fhlib_5g --cmake-opt -Dxran_LOCATION=/opt/phy/fhi_lib/lib \
--build-e2 --cmake-opt -DKPM_VERSION=$KPM_VERSION --cmake-opt -DE2AP_VERSION=$E2AP_VERSION \ --build-e2 --cmake-opt -DKPM_VERSION=$KPM_VERSION --cmake-opt -DE2AP_VERSION=$E2AP_VERSION \