File tree Expand file tree Collapse file tree 4 files changed +8
-5
lines changed Expand file tree Collapse file tree 4 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -206,7 +206,7 @@ variables:
206206
207207 if [ -n "${DPDK_VERSION}" ]; then
208208 BUILD_CMD="-d ${DPDK_VERSION} ${BUILD_CMD}"
209- export LD_LIBRARY_PATH=/opt/dpdk/${DPDK_VERSION}/lib/x86_64-linux-gnu/
209+ export LD_LIBRARY_PATH=/opt/dpdk/${DPDK_VERSION}/lib/x86_64-linux-gnu/:/opt/dpdk/${DPDK_VERSION}/lib/aarch64-linux-gnu/:${LD_LIBRARY_PATH}
210210 fi
211211 if [ -n "${UHD_VERSION}" ]; then
212212 BUILD_CMD="-u ${UHD_VERSION} ${BUILD_CMD}"
Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ RUN if [ -z "$NUM_CORES" ]; then NUM_CORES=$(nproc); fi && \
5454 -DBUILD_TESTS=True \
5555 -DENABLE_${LIB_UPPER}=On \
5656 -DCMAKE_CXX_FLAGS="-march=${ARCH}" \
57+ -DCMAKE_INSTALL_PREFIX=/opt/srs \
5758 ${EXTRA_CMAKE_ARGS} /src
5859
5960# Copy extra binaries
@@ -69,12 +70,14 @@ ARG LIB
6970ARG LIB_VERSION
7071
7172# Copy srsRAN binaries and libraries installed in previous stage
72- COPY --from=builder /opt/${LIB}/${LIB_VERSION} /usr/local
73- COPY --from=builder /usr/local /usr/local
73+ COPY --from=builder /opt/${LIB}/${LIB_VERSION} /opt/${LIB}/${LIB_VERSION}
74+ COPY --from=builder /opt/srs /usr/local
7475
7576# Copy the install dependencies scripts
7677ADD docker/scripts/install_${LIB}_dependencies.sh /usr/local/etc/install_lib_dependencies.sh
7778ADD docker/scripts/install_dependencies.sh /usr/local/etc/install_srsran_dependencies.sh
79+ ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/${LIB}/${LIB_VERSION}/lib/:/opt/${LIB}/${LIB_VERSION}/lib/x86_64-linux-gnu/:/opt/${LIB}/${LIB_VERSION}/lib/aarch64-linux-gnu/
80+ ENV PATH=$PATH:/opt/${LIB}/${LIB_VERSION}/bin/
7881
7982# Install srsran and lib runtime dependencies
8083RUN /usr/local/etc/install_srsran_dependencies.sh run && \
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ main() {
3333 fi
3434 if [[ " $mode " == " all" || " $mode " == " run" ]]; then
3535 DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y --no-install-recommends \
36- python3-pip libnuma-dev pciutils libfdt-dev
36+ python3-pip libnuma-dev pciutils libfdt-dev libatomic1
3737 pip3 install pyelftools || pip3 install --break-system-packages pyelftools
3838 fi
3939 else
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ main() {
3838 cpufrequtils inetutils-tools libboost-all-dev libncurses5-dev libusb-1.0-0 libusb-1.0-0-dev \
3939 libusb-dev python3-dev python3-requests &&
4040 apt-get autoremove && apt-get clean && rm -rf /var/lib/apt/lists/*
41- /usr/local/bin/ uhd_images_downloader
41+ uhd_images_downloader
4242 fi
4343 else
4444 echo " OS $ID not supported"
You can’t perform that action at this time.
0 commit comments