Skip to content

Commit 196613a

Browse files
author
codebot
committed
Update main
2 parents 19c9275 + ff7996f commit 196613a

File tree

4 files changed

+28
-7
lines changed

4 files changed

+28
-7
lines changed

docker/Dockerfile

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ ARG NUM_JOBS=""
3737
# Stage 1: Build #
3838
##################
3939

40-
FROM ubuntu:$OS_VERSION AS builder
40+
FROM ubuntu:$OS_VERSION AS builder-base
4141

4242
# Adding the complete repo to the context, in /src folder
4343
ADD . /src
@@ -47,19 +47,36 @@ ADD . /src
4747

4848
# Install srsRAN build dependencies
4949
RUN /src/docker/scripts/install_dependencies.sh build && \
50-
/src/docker/scripts/install_rohc_dependencies.sh build && \
5150
/src/docker/scripts/install_uhd_dependencies.sh build && \
5251
/src/docker/scripts/install_dpdk_dependencies.sh build && \
5352
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends git clang
5453

54+
55+
56+
FROM builder-base AS builder-rohc
57+
58+
ARG MARCH
59+
ARG NUM_JOBS
60+
61+
RUN /src/docker/scripts/install_rohc_dependencies.sh build
62+
63+
# Compile ROHC
64+
RUN /src/docker/scripts/build_rohc.sh ${MARCH} ${NUM_JOBS}
65+
66+
67+
68+
FROM builder-base AS builder
69+
5570
ARG UHD_VERSION
5671
ARG DPDK_VERSION
5772
ARG MARCH
5873
ARG NUM_JOBS
5974

60-
# Compile ROHC/UHD/DPDK
61-
RUN /src/docker/scripts/build_rohc.sh ${MARCH} ${NUM_JOBS} && \
62-
/src/docker/scripts/build_uhd.sh "${UHD_VERSION}" ${MARCH} ${NUM_JOBS} && \
75+
# Copy ROHC binaries and libraries installed in builder-rohc stage (without taking ROHC build deps that confuse DPDK build)
76+
COPY --from=builder-rohc /opt/rohc /opt/rohc
77+
78+
# Compile UHD/DPDK
79+
RUN /src/docker/scripts/build_uhd.sh "${UHD_VERSION}" ${MARCH} ${NUM_JOBS} && \
6380
/src/docker/scripts/build_dpdk.sh "${DPDK_VERSION}" ${MARCH} ${NUM_JOBS}
6481

6582
# Compile srsRAN Project and install it in the OS
@@ -99,7 +116,7 @@ FROM ubuntu:$OS_VERSION AS runtime
99116
ARG UHD_VERSION
100117
ARG DPDK_VERSION
101118

102-
# Copy srsRAN binaries and libraries installed in previous stage
119+
# Copy srsRAN binaries and libraries installed in previous stage(s)
103120
COPY --from=builder /opt/rohc /opt/rohc
104121
COPY --from=builder /opt/uhd/${UHD_VERSION} /opt/uhd/${UHD_VERSION}
105122
COPY --from=builder /opt/dpdk/${DPDK_VERSION} /opt/dpdk/${DPDK_VERSION}

lib/scheduler/ue_context/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,4 @@ set(SOURCES
2828
ue_cell.cpp)
2929

3030
add_library(sched_ue_context STATIC ${SOURCES})
31+
target_link_libraries(sched_ue_context srsran_ran sched_support sched_cell)

tests/e2e/tests/viavi/test_declaration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ tests:
465465
nof_antennas_ul: 2
466466
# Pass / Fail Criteria
467467
expected_dl_bitrate: 1.2e+9
468-
expected_ul_bitrate: 200.0e+6
468+
expected_ul_bitrate: 195.0e+6
469469
expected_max_late_harqs: 4
470470
expected_nof_kos: 0
471471
warning_as_errors: true

tests/unittests/cu_cp/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ target_link_libraries(cu_cp_test_helpers
4646
f1ap_test_helpers
4747
f1ap_test_doubles
4848
e1ap_test_helpers
49+
e1ap_test_doubles
4950
rrc_ue_test_helpers
51+
ngap_test_helpers
52+
ngap_test_doubles
5053
f1ap_asn1
5154
ngap_asn1
5255
e1ap_asn1 srsran_e2)

0 commit comments

Comments
 (0)