Skip to content

Commit

Permalink
snapcraft: edk2 submodules fixes
Browse files Browse the repository at this point in the history
 - Move downloading submodules into override-pull stage.
 - edk2: remove unnecessary fix subhook submodule url

Signed-off-by: Thomas Parrott <[email protected]>
(cherry picked from commit b34e573)
  • Loading branch information
tomponline committed Nov 13, 2024
1 parent a73fe99 commit 86c7759
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -251,15 +251,14 @@ parts:
set -ex
git clone https://github.com/tianocore/edk2 . -b edk2-stable202208
# Pull submodules after switching to source-commit
git submodule update --init --recursive
git config user.email "[email protected]"
git config user.name "LXD snap builder"
override-build: |-
[ "$(uname -m)" != "x86_64" ] && [ "$(uname -m)" != "aarch64" ] && exit 0
# Fix submodules
sed -i "s#https://git.cryptomilk.org/projects/cmocka#https://gitlab.com/cmocka/cmocka#g" .gitmodules
git submodule update --init --recursive
# Apply patches
patch -p1 < "${SNAPCRAFT_PROJECT_DIR}/patches/edk2-0001-force-DUID-LLT.patch"
cp "${SNAPCRAFT_PROJECT_DIR}/patches/edk2-0002-logo.bmp" MdeModulePkg/Logo/Logo.bmp
Expand Down

0 comments on commit 86c7759

Please sign in to comment.