Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ubuntu_20.04: update coverity image dpdk version #77

Merged
merged 1 commit into from
Jan 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 16 additions & 14 deletions ubuntu_20.04-x86_64-coverity-linux-dpdk/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ ARG COVERITY_TOKEN

ENV COVERITY_PROJECT=ODP-DPDK

ENV DPDK_VERSION=v19.11.13 \
RTE_ARCH=x86_64 \
RTE_TARGET=x86_64-native-linuxapp-gcc
ENV DPDK_VERSION=v22.11.3

RUN apt-get update

Expand All @@ -24,7 +22,6 @@ RUN apt-get install -yy \
clang \
curl \
gcc \
gcc-10 \
git \
libcli-dev \
libconfig-dev \
Expand All @@ -33,22 +30,27 @@ RUN apt-get install -yy \
libpcap-dev \
libssl-dev \
libtool \
libstdc++-10-dev \
make \
meson \
net-tools \
ninja-build \
python3-pip \
sudo

RUN pip3 install \
pyelftools

RUN cd $HOME && \
git clone http://dpdk.org/git/dpdk-stable --branch ${DPDK_VERSION} --depth 1 ./dpdk && \
cd dpdk && \
make config T=${RTE_TARGET} O=${RTE_TARGET} && \
cd ${RTE_TARGET} && \
sed -ri 's,(CONFIG_RTE_MACHINE=).*,\1"default",' .config && \
sed -ri 's,(CONFIG_RTE_LIBRTE_PMD_PCAP=).*,\1y,' .config && \
sed -ri 's,(CONFIG_RTE_LIBRTE_PMD_OPENSSL=).*,\1y,' .config && \
sed -ri 's,(CONFIG_RTE_EAL_IGB_UIO=).*,\1n,' .config && \
sed -ri 's,(CONFIG_RTE_KNI_KMOD=).*,\1n,' .config && \
cd .. && \
make -j $(nproc) install T=${RTE_TARGET} DESTDIR=/usr EXTRA_CFLAGS="-fPIC" && \
meson setup build && \
cd build && \
meson configure -Dplatform=generic && \
meson configure -Ddisable_apps=* && \
meson configure -Dtests=false && \
meson configure -Denable_drivers=crypto/*,dma/*,net/pcap && \
ninja && \
ninja install && \
cd $HOME && \
rm -r ./dpdk

Expand Down