Skip to content

Commit a1e441a

Browse files
authored
Tutorials: fix EDK2 hash (#168)
1 parent a61e10a commit a1e441a

File tree

6 files changed

+18
-13
lines changed

6 files changed

+18
-13
lines changed

examples/tutorials/edk2-simics-platform/Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,19 @@ RUN git clone https://github.com/tianocore/edk2.git && \
1111
git clone https://github.com/tianocore/edk2-non-osi.git && \
1212
git clone https://github.com/IntelFsp/FSP.git
1313

14-
ARG EDK2_HASH="eccdab6"
15-
ARG EDK2_PLATFORMS_HASH="f446fff"
14+
ARG EDK2_HASH="edk2-stable202505"
15+
ARG EDK2_PLATFORMS_HASH="51c7f2948adeb8b6dc4db6a8f1ada8a1b4e5528e"
1616
ARG EDK2_NON_OSI_HASH="1f4d784"
1717
ARG INTEL_FSP_HASH="8beacd5"
1818

1919
RUN git -C edk2 checkout "${EDK2_HASH}" && \
20-
git -C edk2 submodule update --init && \
20+
git -C edk2 submodule update --init --depth 1 && \
2121
git -C edk2-platforms checkout "${EDK2_PLATFORMS_HASH}" && \
22-
git -C edk2-platforms submodule update --init && \
22+
git -C edk2-platforms submodule update --init --depth 1 && \
2323
git -C edk2-non-osi checkout "${EDK2_NON_OSI_HASH}" && \
24-
git -C edk2-non-osi submodule update --init && \
24+
git -C edk2-non-osi submodule update --init --depth 1 && \
2525
git -C FSP checkout "${INTEL_FSP_HASH}" && \
26-
git -C FSP submodule update --init
26+
git -C FSP submodule update --init --depth 1
2727

2828
ENV EDK_TOOLS_PATH="${PROJECT}/edk2/BaseTools/"
2929
ENV PACKAGES_PATH="${PROJECT}/edk2:${PROJECT}/edk2-platforms:${PROJECT}/edk2-non-osi"

examples/tutorials/edk2-simics-platform/build-custom.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,26 @@ IMAGE_NAME="edk2-simics"
88
DOCKERFILE="${SCRIPT_DIR}/Dockerfile-custom"
99
CONTAINER_UID=$(echo "${RANDOM}" | sha256sum | head -c 8)
1010
CONTAINER_NAME="${IMAGE_NAME}-tmp-${CONTAINER_UID}"
11-
EDK2_HASH="eccdab6"
12-
EDK2_PLATFORMS_HASH="f446fff"
11+
EDK2_HASH="edk2-stable202505"
12+
EDK2_PLATFORMS_HASH="51c7f2948adeb8b6dc4db6a8f1ada8a1b4e5528e"
1313
EDK2_NON_OSI_HASH="1f4d784"
1414
INTEL_FSP_HASH="8beacd5"
1515

1616
if [ ! -d "${SCRIPT_DIR}/workspace" ]; then
1717
mkdir -p "${SCRIPT_DIR}/workspace"
1818
git clone https://github.com/tianocore/edk2.git "${SCRIPT_DIR}/workspace/edk2"
1919
git -C "${SCRIPT_DIR}/workspace/edk2" checkout "${EDK2_HASH}"
20-
git -C "${SCRIPT_DIR}/workspace/edk2" submodule update --init
20+
git -C "${SCRIPT_DIR}/workspace/edk2" submodule update --init --depth 1
2121
git clone https://github.com/tianocore/edk2-platforms.git "${SCRIPT_DIR}/workspace/edk2-platforms"
2222
git -C "${SCRIPT_DIR}/workspace/edk2-platforms" checkout "${EDK2_PLATFORMS_HASH}"
23-
git -C "${SCRIPT_DIR}/workspace/edk2-platforms" submodule update --init
23+
git -C "${SCRIPT_DIR}/workspace/edk2-platforms" submodule update --init --depth 1
2424
cp "${SCRIPT_DIR}/../../../harness/tsffs.h" "${SCRIPT_DIR}/workspace/edk2-platforms/Platform/Intel/SimicsOpenBoardPkg/Library/DxeLogoLib/tsffs.h"
2525
git clone https://github.com/tianocore/edk2-non-osi.git "${SCRIPT_DIR}/workspace/edk2-non-osi"
2626
git -C "${SCRIPT_DIR}/workspace/edk2-non-osi" checkout "${EDK2_NON_OSI_HASH}"
27-
git -C "${SCRIPT_DIR}/workspace/edk2-non-osi" submodule update --init
27+
git -C "${SCRIPT_DIR}/workspace/edk2-non-osi" submodule update --init --depth 1
2828
git clone https://github.com/IntelFsp/FSP.git "${SCRIPT_DIR}/workspace/FSP"
2929
git -C "${SCRIPT_DIR}/workspace/FSP" checkout "${INTEL_FSP_HASH}"
30-
git -C "${SCRIPT_DIR}/workspace/FSP" submodule update --init
30+
git -C "${SCRIPT_DIR}/workspace/FSP" submodule update --init --depth 1
3131
fi
3232

3333
docker build -t "${IMAGE_NAME}" -f "${DOCKERFILE}" "${SCRIPT_DIR}"

examples/tutorials/edk2-simics-platform/build.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
# Copyright (C) 2024 Intel Corporation
44
# SPDX-License-Identifier: Apache-2.0
55

6+
set -e
7+
68
SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
79
IMAGE_NAME="edk2-simics-platform"
810
DOCKERFILE="${SCRIPT_DIR}/Dockerfile"

examples/tutorials/edk2-uefi/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ENV DEBIAN_FRONTEND=noninteractive
55
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
66

77
ENV EDK2_REPO_URL "https://github.com/tianocore/edk2.git"
8-
ENV EDK2_REPO_HASH "d189de3b0a2f44f4c9b87ed120be16569ea19b51"
8+
ENV EDK2_REPO_HASH "edk2-stable202505"
99
ENV EDK2_PATH "/edk2"
1010

1111

examples/tutorials/edk2-uefi/build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# Copyright (C) 2024 Intel Corporation
44
# SPDX-License-Identifier: Apache-2.0
55

6+
set -e
67

78
SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
89
IMAGE_NAME="tsffs-tutorial-edk2-uefi"

examples/tutorials/risc-v-kernel/build.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
# Copyright (C) 2024 Intel Corporation
44
# SPDX-License-Identifier: Apache-2.0
55

6+
set -e
7+
68
SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
79
IMAGE_NAME="tsffs-tutorial-riscv64-kernel-module"
810
CONTAINER_UID=$(echo "${RANDOM}" | sha256sum | head -c 8)

0 commit comments

Comments
 (0)