From 696722aec7819cb1378065c72ce1ca16ab8091d1 Mon Sep 17 00:00:00 2001 From: AtomicFS Date: Mon, 11 Nov 2024 15:14:59 +0100 Subject: [PATCH] fix(docker/edk2): shallow submodules for edk2-stable202008 - 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 --- docker/edk2/Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docker/edk2/Dockerfile b/docker/edk2/Dockerfile index 8e9ced83..06e35edc 100644 --- a/docker/edk2/Dockerfile +++ b/docker/edk2/Dockerfile @@ -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;