Commit f3e330e3 authored by Michael Roth's avatar Michael Roth Committed by Philippe Mathieu-Daudé

roms/Makefile.edk2: don't pull in submodules when building from tarball

Currently the `make efi` target pulls submodules nested under the
roms/edk2 submodule as dependencies. However, when we attempt to build
from a tarball this fails since we are no longer in a git tree.

A preceding patch will pre-populate these submodules in the tarball,
so assume this build dependency is only needed when building from a
git tree.

Cc: Laszlo Ersek <>
Cc: Bruce Rogers <>
Cc: # v4.1.0
Reported-by: default avatarBruce Rogers <>
Reviewed-by: default avatarLaszlo Ersek <>
Reviewed-by: default avatarPhilippe Mathieu-Daudé <>
Tested-by: default avatarPhilippe Mathieu-Daudé <>
Signed-off-by: default avatarMichael Roth <>
Message-Id: <>
Signed-off-by: default avatarPhilippe Mathieu-Daudé <>
parent 45c61c6c
......@@ -46,8 +46,13 @@ all: $(foreach flashdev,$(flashdevs),../pc-bios/edk2-$(flashdev).fd.bz2) \
# files.
.INTERMEDIATE: $(foreach flashdev,$(flashdevs),../pc-bios/edk2-$(flashdev).fd)
# Fetch edk2 submodule's submodules. If it is not in a git tree, assume
# we're building from a tarball and that they've already been fetched by
# make-release/tarball scripts.
cd edk2 && git submodule update --init --force
if test -d edk2/.git; then \
cd edk2 && git submodule update --init --force; \
# See notes on the ".NOTPARALLEL" target and the "+" indicator in
# "tests/uefi-test-tools/Makefile".
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment