5 # Copyright IBM, Corp. 2012
8 # Anthony Liguori <aliguori@us.ibm.com>
10 # This work is licensed under the terms of the GNU GPLv2 or later.
11 # See the COPYING file in the top-level directory.
15 echo " $0 gitrepo version"
19 # Only include wraps that are invoked with subproject()
20 SUBPROJECTS
="dtc libvfio-user keycodemapdb berkeley-softfloat-3 berkeley-testfloat-3"
24 destination
=qemu-
${version}
26 git clone
--single-branch -b "v${version}" -c advice.detachedHead
=false \
27 "${src}" ${destination}
31 git submodule update
--init --single-branch
32 meson subprojects download
$SUBPROJECTS
34 (cd roms
/seabios
&& git describe
--tags --long --dirty > .version
)
35 (cd roms
/skiboot
&& .
/make_version.sh
> .version
)
36 # Fetch edk2 submodule's submodules, since it won't have access to them via
39 # A more uniform way to handle this sort of situation would be nice, but we
40 # don't necessarily have much control over how a submodule handles its
41 # submodule dependencies, so we continue to handle these on a case-by-case
44 git submodule update
--init --depth 1 -- \
45 ArmPkg
/Library
/ArmSoftFloatLib
/berkeley-softfloat-3 \
46 BaseTools
/Source
/C
/BrotliCompress
/brotli \
47 CryptoPkg
/Library
/OpensslLib
/openssl \
48 MdeModulePkg
/Library
/BrotliCustomDecompressLib
/brotli
)
50 tar --exclude=.git
-cjf ${destination}.
tar.bz2
${destination}