Skip to content

Commit

Permalink
snapcraft: edk2 submodules fixes (5.0-candidate) (canonical#600)
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
  • Loading branch information
tomponline authored Nov 7, 2024
2 parents 592072b + b34e573 commit c2956de
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 @@ -312,15 +312,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 c2956de

Please sign in to comment.