Skip to content

Commit

Permalink
roms/Makefile.edk2: don't pull in submodules when building from tarball
Browse files Browse the repository at this point in the history
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 <[email protected]>
Cc: Bruce Rogers <[email protected]>
Cc: [email protected] # v4.1.0
Reported-by: Bruce Rogers <[email protected]>
Reviewed-by: Laszlo Ersek <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Tested-by: Philippe Mathieu-Daudé <[email protected]>
Signed-off-by: Michael Roth <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
  • Loading branch information
mdroth authored and philmd committed Oct 7, 2019
1 parent 45c61c6 commit f3e330e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion roms/Makefile.edk2
Original file line number Diff line number Diff line change
Expand Up @@ -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.
submodules:
cd edk2 && git submodule update --init --force
if test -d edk2/.git; then \
cd edk2 && git submodule update --init --force; \
fi

# See notes on the ".NOTPARALLEL" target and the "+" indicator in
# "tests/uefi-test-tools/Makefile".
Expand Down

0 comments on commit f3e330e

Please sign in to comment.