[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 1/5] make-release: pull in edk2 submodules so we can build it from
From: |
Philippe Mathieu-Daudé |
Subject: |
[PULL 1/5] make-release: pull in edk2 submodules so we can build it from tarballs |
Date: |
Mon, 7 Oct 2019 15:35:36 +0200 |
From: Michael Roth <address@hidden>
The `make efi` target added by 536d2173 is built from the roms/edk2
submodule, which in turn relies on additional submodules nested under
roms/edk2.
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 <address@hidden>
Cc: Bruce Rogers <address@hidden>
Cc: address@hidden # v4.1.0
Reported-by: Bruce Rogers <address@hidden>
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
Tested-by: Philippe Mathieu-Daudé <address@hidden>
Signed-off-by: Michael Roth <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
---
scripts/make-release | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/scripts/make-release b/scripts/make-release
index b4af9c9e52..a2a8cda33c 100755
--- a/scripts/make-release
+++ b/scripts/make-release
@@ -20,6 +20,14 @@ git checkout "v${version}"
git submodule update --init
(cd roms/seabios && git describe --tags --long --dirty > .version)
(cd roms/skiboot && ./make_version.sh > .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)
popd
tar --exclude=.git -cjf ${destination}.tar.bz2 ${destination}
rm -rf ${destination}
--
2.21.0
- [PULL 0/5] edk2-next patches for 2019-10-07, Philippe Mathieu-Daudé, 2019/10/07
- [PULL 1/5] make-release: pull in edk2 submodules so we can build it from tarballs,
Philippe Mathieu-Daudé <=
- [PULL 2/5] roms/Makefile.edk2: don't pull in submodules when building from tarball, Philippe Mathieu-Daudé, 2019/10/07
- [PULL 3/5] roms: Add a 'make help' target alias, Philippe Mathieu-Daudé, 2019/10/07
- [PULL 4/5] edk2 build scripts: honor external BaseTools flags with uefi-test-tools, Philippe Mathieu-Daudé, 2019/10/07
- [PULL 5/5] edk2 build scripts: work around TianoCore#1607 without forcing Python 2, Philippe Mathieu-Daudé, 2019/10/07
- Re: [PULL 0/5] edk2-next patches for 2019-10-07, Peter Maydell, 2019/10/08