Skip to content

Commit

Permalink
fix(docker/edk2): shallow submodules for edk2-stable202008
Browse files Browse the repository at this point in the history
- for some reason edk2-stable202008 fails to clone all of the git
  submodules when shallow recursive init is used
- so to fix this we need to add IF ELSE statement to not use shallow
  clone on git submodules for edk2-stable202008
- shame on you ekd2, shame on you

Signed-off-by: AtomicFS <vojtech.vesely@9elements.com>
  • Loading branch information
AtomicFS committed Nov 11, 2024
1 parent 54bfeda commit a46ffb7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docker/edk2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,11 @@ RUN mkdir Edk2 && \
git remote add origin https://github.com/tianocore/edk2.git && \
git fetch --depth 1 origin "${EDK2_VERSION_COMMIT}" && \
git checkout "${EDK2_VERSION_COMMIT}" && \
git submodule update --init --recursive --depth 1 && \
if [ "${EDK2_VERSION}" = 'edk2-stable202008' ]; then \
git submodule update --init --recursive; \
else \
git submodule update --init --recursive --depth 1; \
fi && \
if [ "${TARGETARCH}" = 'amd64' ]; then \
make -C BaseTools/ -j "$(nproc)"; \
fi;
Expand Down

0 comments on commit a46ffb7

Please sign in to comment.