Skip to content

Commit

Permalink
Build: Update edk2 Dockerfile to LLVM 15
Browse files Browse the repository at this point in the history
  • Loading branch information
mhaeuser committed Dec 24, 2022
1 parent 23ddbba commit 778f767
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfiles/oc-dev-edk2/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
FROM ubuntu:22.04

ARG OC_DEV_EDK2_LLVM_VER=15
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install -y lsb-release wget software-properties-common gnupg build-essential nasm uuid-dev libssl-dev iasl curl git zip && \
{ [ "$(dpkg --print-architecture)" == "amd64" ] || { apt-get install -y gcc-x86-64-linux-gnu && export GCC5_BIN=x86_64-linux-gnu- ; } ; } && echo "export GCC5_BIN=$GCC5_BIN" > ~/.edk2_rc.sh && echo ". ~/.edk2_rc.sh" > /etc/profile.d/edk2-gcc5.sh && \
wget https://apt.llvm.org/llvm.sh && chmod +x llvm.sh && ./llvm.sh 13 && rm -f llvm.sh && \
wget https://apt.llvm.org/llvm.sh && chmod +x llvm.sh && ./llvm.sh ${OC_DEV_EDK2_LLVM_VER} && rm -f llvm.sh && \
apt-get purge --auto-remove -y wget software-properties-common gnupg && \
rm -rf /var/lib/apt/lists/*
ENV PATH="$PATH:/usr/lib/llvm-13/bin"
ENV PATH="$PATH:/usr/lib/llvm-${OC_DEV_EDK2_LLVM_VER}/bin"

0 comments on commit 778f767

Please sign in to comment.