qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 2/2] roms/edk2: Only initialize required submodules


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH 2/2] roms/edk2: Only initialize required submodules
Date: Mon, 18 Oct 2021 11:31:42 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.0

On 10/18/21 11:23, Philippe Mathieu-Daudé wrote:
> The EDK2 firmware images built to test QEMU do not require
> the following submodules:
> 
>  - MdeModulePkg/Universal/RegularExpressionDxe/oniguruma
>  - UnitTestFrameworkPkg/Library/CmockaLib/cmocka
> 
> The only submodules required are:
> 
>  - ArmPkg/Library/ArmSoftFloatLib/berkeley-softfloat-3
>  - BaseTools/Source/C/BrotliCompress/brotli
>  - CryptoPkg/Library/OpensslLib/openssl
>  - MdeModulePkg/Library/BrotliCustomDecompressLib/brotli
> 
> Adapt the buildsys machinery to only initialize the required
> submodules.
> 
> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
> ---
>  .gitlab-ci.d/edk2.yml | 4 ++++
>  roms/Makefile.edk2    | 7 ++++++-
>  scripts/make-release  | 7 ++++++-
>  3 files changed, 16 insertions(+), 2 deletions(-)

>  # See notes on the ".NOTPARALLEL" target and the "+" indicator in
> diff --git a/scripts/make-release b/scripts/make-release
> index a2a8cda33c0..a9ff933a4ca 100755
> --- a/scripts/make-release
> +++ b/scripts/make-release
> @@ -27,7 +27,12 @@ git submodule update --init
>  # 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)
> +(cd roms/edk2 && \
> +    git submodule update --init \

Hmm I forgot the '--' separator here.

> +        ArmPkg/Library/ArmSoftFloatLib/berkeley-softfloat-3 \
> +        BaseTools/Source/C/BrotliCompress/brotli \
> +        CryptoPkg/Library/OpensslLib/openssl \
> +        MdeModulePkg/Library/BrotliCustomDecompressLib/brotli)
>  popd
>  tar --exclude=.git -cjf ${destination}.tar.bz2 ${destination}
>  rm -rf ${destination}
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]