Skip to contentSkip to conversation

recursive submodules

Qemu-devel Laszlo Ersek 3 participants 4 messages Mar 6, 2019

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 10 lines · Laszlo Ersek

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

Signature · 3 lines
|: 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 :|
#2 lore raw
Quoted 16 lines · Daniel P. Berrangé
Quoted 10 lines · Laszlo Ersek

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.

Quoted 8 lines

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

#3 lore raw
Quoted 23 lines · Laszlo Ersek
Quoted 22 lines · Daniel P. Berrangé
Quoted 10 lines · Laszlo Ersek

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.

Quoted 7 lines
Quoted 2 lines

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