Li Zhou db59088021 tools: remove kernel abiname/version number from Dockerfile
The package name linux-headers-5.10.0-6 is invalid for any kernel
version. Replace it with kernel headers package name without abiname.

The package name linux-perf-5.10 doesn't exist for kernel 6.6 build
any more. Use package "linux-perf" on kernel 6.6 build to replace it.

Test Plan:
PASS: build the docker images stx-debian-dev and stx-debian-tools-dev
      using below commands.
      $ cd $MY_REPO/build-tools/build-docker-images
      $ ./build-stx-base.sh --local --version DEV --cache
      $ ./build-stx-images.sh -N --base $USER/stx-debian:DEV --cache
        --only stx-debian-dev,stx-debian-tools-dev

Closes-Bug: 2065183
Change-Id: I7ba668794ae2f53b46ddb286ee7f4f81130ee6f4
Signed-off-by: Li Zhou <li.zhou@windriver.com>
(cherry picked from commit dccac79ea9cec25e6c876d2b7af07124a5659e09)
Signed-off-by: Jiping Ma <jiping.ma2@windriver.com>
2024-07-09 01:15:46 +00:00

109 lines
2.8 KiB
Docker

ARG BASE
FROM ${BASE}
# Install stx-dev repo (StarlingX-Debian repo)
COPY stx-dev.list /etc/apt/sources.list.d/stx-dev.list.disabled
#
# repos:
# /etc/apt/sources.list.d/
# stx-x.list.disabled - starlingx binary & build repos
#
# To enable a repo list:
# cp /etc/apt/sources.list.d/$repo_list.disabled \
# /etc/apt/sources.list.d/$repo_list
#
# To disable a repo list:
# rm -f /etc/apt/sources.list.d/$repo_list
#
# Upgrade base packages to versions in managed repos
RUN set -ex && \
cp -f /etc/apt/sources.list.d/stx.list.disabled /etc/apt/sources.list.d/stx.list && \
apt-get update -y && \
apt-get upgrade -y && \
rm -f /etc/apt/sources.list.d/stx.list && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# These packages are only in debian snapshots repo
RUN set -ex && \
cp -f /etc/apt/sources.list.d/debian.list.disabled /etc/apt/sources.list.d/debian.list && \
cp -f /etc/apt/sources.list.d/stx.list.disabled /etc/apt/sources.list.d/stx.list && \
apt-get update -y && \
apt-get install -y \
build-essential \
&& \
rm -f /etc/apt/sources.list.d/stx.list && \
rm -f /etc/apt/sources.list.d/debian.list && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Enable stx repo only. Packages installs below this point will use
# only the managed locally-built & 3rd-party repos.
RUN set -ex && \
cp /etc/apt/sources.list.d/stx.list.disabled /etc/apt/sources.list.d/stx.list
# Install required packages
RUN set -ex && \
apt-get update -y && \
apt-get upgrade -y && \
apt-get install -y \
autoconf-archive \
autogen \
automake \
bash \
bc \
bison \
cmake \
curl \
doxygen \
dwarves \
fakeroot \
flex \
g++ \
gcc \
genisoimage \
gettext \
isomd5sum \
kmod \
libcap-dev \
libelf-dev \
libncurses-dev \
libhwloc-dev=1.11.12-3 \
libjson-c-dev \
libssl-dev \
linux-headers-stx-amd64 \
linux-perf \
make \
pciutils \
python-is-python3 \
python3-intelhex \
python3-pip \
python3-pybind11 \
python3-yaml \
rsync \
sphinx-common \
sphinx-doc \
sudo \
sysvinit-utils \
uuid-dev \
vim \
wget \
xz-utils \
&& \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Enable StarlingX-Debian repo
# Packages installs below this point will use DEB packages from the StarlingX-Debian repo.
RUN set -ex && \
cp -f /etc/apt/sources.list.d/stx-dev.list.disabled /etc/apt/sources.list.d/stx.list && \
apt-get update && \
apt-get clean && \
rm -rf \
/var/lib/apt/lists/* \
/var/log/* \
/var/tmp/* \
/tmp/*