qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] recursive submodules
@ 2019-03-06 12:30 Laszlo Ersek
  2019-03-06 12:44 ` Daniel P. Berrangé
  0 siblings, 1 reply; 4+ messages in thread
From: Laszlo Ersek @ 2019-03-06 12:30 UTC (permalink / raw)
  To: qemu devel list
  Cc: Daniel P. Berrange, Philippe Mathieu-Daudé, Igor Mammedov

Hi,

in order to build any OVMF platform firmware image from the submodule at
"roms/edk2", the (recursive) OpenSSL submodule at
"roms/edk2/CryptoPkg/Library/OpensslLib/openssl" needs to be initialized
as well.

Am I right to think this would be the first recursive submodule in QEMU?
How should I approach this? (I see we have a related script at
"scripts/git-submodule.sh".)

Thanks,
Laszlo

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] recursive submodules
  2019-03-06 12:30 [Qemu-devel] recursive submodules Laszlo Ersek
@ 2019-03-06 12:44 ` Daniel P. Berrangé
  2019-03-06 13:31   ` Laszlo Ersek
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel P. Berrangé @ 2019-03-06 12:44 UTC (permalink / raw)
  To: Laszlo Ersek; +Cc: qemu devel list, Philippe Mathieu-Daudé, Igor Mammedov

On Wed, Mar 06, 2019 at 01:30:06PM +0100, Laszlo Ersek wrote:
> Hi,
> 
> in order to build any OVMF platform firmware image from the submodule at
> "roms/edk2", the (recursive) OpenSSL submodule at
> "roms/edk2/CryptoPkg/Library/OpensslLib/openssl" needs to be initialized
> as well.
> 
> Am I right to think this would be the first recursive submodule in QEMU?
> How should I approach this? (I see we have a related script at
> "scripts/git-submodule.sh".)

The scripts/git-submodule.sh file is called automatically by "make"
in QEMU to activate any submodules that are required during the normal
build a QEMU developer does.

The ROM submodules are special though. AFAIK, these are never built as a
side effect of the QEMU build process, so never need to be initialized by
the git-submodule.sh script.  Developers always just use the pre-built
ROM files bundled in QEMU. The only people checking out the ROM submodules
are the maintainers who periodically build a new binary ROM.

So in this sense the fact that EDK has submodules shouldn't be a factor,
as we would not expect EDK to be built by regular QEMU developers

Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] recursive submodules
  2019-03-06 12:44 ` Daniel P. Berrangé
@ 2019-03-06 13:31   ` Laszlo Ersek
  2019-03-06 14:55     ` Alex Bennée
  0 siblings, 1 reply; 4+ messages in thread
From: Laszlo Ersek @ 2019-03-06 13:31 UTC (permalink / raw)
  To: Daniel P. Berrangé
  Cc: qemu devel list, Philippe Mathieu-Daudé, Igor Mammedov

On 03/06/19 13:44, Daniel P. Berrangé wrote:
> On Wed, Mar 06, 2019 at 01:30:06PM +0100, Laszlo Ersek wrote:
>> Hi,
>>
>> in order to build any OVMF platform firmware image from the submodule at
>> "roms/edk2", the (recursive) OpenSSL submodule at
>> "roms/edk2/CryptoPkg/Library/OpensslLib/openssl" needs to be initialized
>> as well.
>>
>> Am I right to think this would be the first recursive submodule in QEMU?
>> How should I approach this? (I see we have a related script at
>> "scripts/git-submodule.sh".)
> 
> The scripts/git-submodule.sh file is called automatically by "make"
> in QEMU to activate any submodules that are required during the normal
> build a QEMU developer does.
> 
> The ROM submodules are special though. AFAIK, these are never built as a
> side effect of the QEMU build process, so never need to be initialized by
> the git-submodule.sh script.  Developers always just use the pre-built
> ROM files bundled in QEMU. The only people checking out the ROM submodules
> are the maintainers who periodically build a new binary ROM.
> 
> So in this sense the fact that EDK has submodules shouldn't be a factor,
> as we would not expect EDK to be built by regular QEMU developers

Thank you for the explanation. I missed that the "configure" script
manipulated the "git_submodules" variable explicitly. (Which seems to be
the origin for GIT_SUBMODULES.) It covers only a subset of ".gitmodules".

Thanks!
Laszlo

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] recursive submodules
  2019-03-06 13:31   ` Laszlo Ersek
@ 2019-03-06 14:55     ` Alex Bennée
  0 siblings, 0 replies; 4+ messages in thread
From: Alex Bennée @ 2019-03-06 14:55 UTC (permalink / raw)
  To: qemu-devel
  Cc: Daniel P. Berrangé, Igor Mammedov,
	Philippe Mathieu-Daudé


Laszlo Ersek <lersek@redhat.com> writes:

> On 03/06/19 13:44, Daniel P. Berrangé wrote:
>> On Wed, Mar 06, 2019 at 01:30:06PM +0100, Laszlo Ersek wrote:
>>> Hi,
>>>
>>> in order to build any OVMF platform firmware image from the submodule at
>>> "roms/edk2", the (recursive) OpenSSL submodule at
>>> "roms/edk2/CryptoPkg/Library/OpensslLib/openssl" needs to be initialized
>>> as well.
>>>
>>> Am I right to think this would be the first recursive submodule in QEMU?
>>> How should I approach this? (I see we have a related script at
>>> "scripts/git-submodule.sh".)
>>
>> The scripts/git-submodule.sh file is called automatically by "make"
>> in QEMU to activate any submodules that are required during the normal
>> build a QEMU developer does.
>>
>> The ROM submodules are special though. AFAIK, these are never built as a
>> side effect of the QEMU build process, so never need to be initialized by
>> the git-submodule.sh script.  Developers always just use the pre-built
>> ROM files bundled in QEMU. The only people checking out the ROM submodules
>> are the maintainers who periodically build a new binary ROM.
>>
>> So in this sense the fact that EDK has submodules shouldn't be a factor,
>> as we would not expect EDK to be built by regular QEMU developers
>
> Thank you for the explanation. I missed that the "configure" script
> manipulated the "git_submodules" variable explicitly. (Which seems to be
> the origin for GIT_SUBMODULES.) It covers only a subset of
> ".gitmodules".

Yes those are the ones we actually need to build QEMU, so libraries or
test code needed for unit testing (in the softfloat case).

--
Alex Bennée

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-03-06 14:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-06 12:30 [Qemu-devel] recursive submodules Laszlo Ersek
2019-03-06 12:44 ` Daniel P. Berrangé
2019-03-06 13:31   ` Laszlo Ersek
2019-03-06 14:55     ` Alex Bennée

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).