Skip to content

Commit

Permalink
[Ubuntu 22.04] Install gcc-12 in the driver container build phase
Browse files Browse the repository at this point in the history
Signed-off-by: Tariq Ibrahim <[email protected]>
  • Loading branch information
tariq1890 committed Apr 3, 2024
1 parent 33e9429 commit dd69782
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ubuntu22.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,14 @@ WORKDIR /drivers
ARG PUBLIC_KEY=empty
COPY ${PUBLIC_KEY} kernel/pubkey.x509

# Install the gcc-12 package in Ubuntu 22.04 as Kernels with versions 5.19.x and 6.5.x need gcc 12.3.0 for compilation
RUN apt-get update && \
apt-get install -y --no-install-recommends gcc-12 g++-12 && \
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 12 && \
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-12 12 && \
rm -rf /var/lib/apt/lists/*


# Install / upgrade packages here that are required to resolve CVEs
ARG CVE_UPDATES
RUN if [ -n "${CVE_UPDATES}" ]; then \
Expand Down

0 comments on commit dd69782

Please sign in to comment.