qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] roms: Support compile the efi bios for loongarch


From: lixianglai
Subject: Re: [PATCH] roms: Support compile the efi bios for loongarch
Date: Fri, 1 Sep 2023 16:55:35 +0800
User-agent: Mozilla/5.0 (X11; Linux loongarch64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0

ping!


Hi,Philippe Mathieu-Daudé:

Would like to know if there is any progress in the discussion on this issue?


In addition, is the compilation of our UEFI done on the fedora38 operating system

or on a later version of fedora?


The loongarch cross-compilation tool on the fedora38 operating system is a bit old,

and there is a problem with the UEFI of the compiled loongarch,

so I want to ask about the UEFI compilation environment.


Thanks,

xianglai


On 8/10/23 8:54 PM, lixianglai wrote:

On 8/10/23 7:34 PM, Philippe Mathieu-Daudé wrote:
Hi,

On 10/8/23 09:42, xianglai li wrote:
1.Add edk2-platform submodule
2.Added loongarch UEFI BIOS support to compiled scripts.
3.The cross-compilation toolchain on x86 can be obtained from the link below:
https://github.com/loongson/build-tools/tree/2022.09.06

Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: "Marc-André Lureau" <marcandre.lureau@redhat.com>
Cc: "Daniel P. Berrangé" <berrange@redhat.com>
Cc: Thomas Huth <thuth@redhat.com>
Cc: "Philippe Mathieu-Daudé" <philmd@linaro.org>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Xiaojuan Yang <yangxiaojuan@loongson.cn>
Cc: Song Gao <gaosong@loongson.cn>
Cc: Bibo Mao <maobibo@loongson.cn>
Signed-off-by: xianglai li <lixianglai@loongson.cn>
---
  .gitmodules            |  3 +++
  meson.build            |  2 +-
  pc-bios/meson.build    |  2 ++
  roms/edk2-build.config | 14 ++++++++++++++
  roms/edk2-build.py     |  4 ++--
  roms/edk2-platforms    |  1 +
  6 files changed, 23 insertions(+), 3 deletions(-)
  create mode 160000 roms/edk2-platforms

diff --git a/.gitmodules b/.gitmodules
index 73cae4cd4d..0cb57123fa 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -43,3 +43,6 @@
  [submodule "tests/lcitool/libvirt-ci"]
      path = tests/lcitool/libvirt-ci
      url = https://gitlab.com/libvirt/libvirt-ci.git
+[submodule "roms/edk2-platforms"]
+    path = roms/edk2-platforms
+    url = https://github.com/tianocore/edk2-platforms.git

See "Topic 4" in [*].

 > We do need to be careful about GPL compliance (making sure users
 > have the source if we provide them the compiled firmware blob
 > for a GPL'd piece of firmware); but we don't need to necessarily
 > ship the sources in the exact same tarball as the blob.

 > [...]

 > Users of QEMU from git don't get a great firmware experience either,
 > since the firmware is in submodules, with all the usual git submodule
 > problems.

edk2-platforms.git use the same license than edk2.git, BSD-2-Clause-Patent, which is compatible with GPLv2. At least this is not
edk2-non-osi.git.

Still, we should discuss this generic issue before going forward with
this patch IMO.


Okay, I also think that there is no need to include EDK2 source code in the tar ball,

you can package the git repository of QEMU for distribution,

and compile the BIOS binary package before release,

so that there is no need to include BIOS code,

QEMU users can also get the source code of BIOS through Git Submodule.

This is only my opinion, and I look forward to the outcome of the final discussion.


Thanks,

xianglai


Regards,

Phil.

[*] https://lore.kernel.org/qemu-devel/CAFEAcA_rziBuSwgJ9cg9m1PS5pNG58eyim+_P9hMu5nF7G70XA@mail.gmail.com/




reply via email to

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