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

make-release: pull in edk2 submodules so we can build it from tarballs

The `make efi` target added by 536d2173 is built from the roms/edk2
submodule, which in turn relies on additional submodules nested under

The make-release script currently only pulls in top-level submodules,
so these nested submodules are missing in the resulting tarball.

We could try to address this situation more generally by recursively
pulling in all submodules, but this doesn't necessarily ensure the
end-result will build properly (this case also required other changes).

Additionally, due to the nature of submodules, we may not always have
control over how these sorts of things are dealt with, so for now we
continue to handle it on a case-by-case in the make-release script.

Cc: Laszlo Ersek <>
Cc: Bruce Rogers <>
Cc: # v4.1.0
Reported-by: default avatarBruce Rogers <>
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 9e5319ca
......@@ -20,6 +20,14 @@ git checkout "v${version}"
git submodule update --init
(cd roms/seabios && git describe --tags --long --dirty > .version)
(cd roms/skiboot && ./ > .version)
# Fetch edk2 submodule's submodules, since it won't have access to them via
# the tarball later.
# A more uniform way to handle this sort of situation would be nice, but we
# don't necessarily have much control over how a submodule handles its
# submodule dependencies, so we continue to handle these on a case-by-case
# basis for now.
(cd roms/edk2 && git submodule update --init)
tar --exclude=.git -cjf ${destination}.tar.bz2 ${destination}
rm -rf ${destination}
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