Skip to content

Add firmware search paths for fedora rpms #2342

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 13, 2024

Conversation

afbjorklund
Copy link
Member

@afbjorklund afbjorklund commented May 12, 2024

Including systems based on Fedora, such as CentOS and AlmaLinux.

There doesn't seem to be any arm32 firmware available in Fedora.

The standard path (OVMF) was never backported to Legacy Fedora (EL):

https://src.fedoraproject.org/rpms/edk2/c/e1a8a9caa18b10ff4ea5ee5d131c734e61b379de?branch=rawhide

yum provides "*/OVMF_CODE.fd"

yum provides "*/AAVMF_CODE.fd"

export QEMU_SYSTEM_X86_64=/usr/libexec/qemu-kvm

export QEMU_SYSTEM_AARCH64=/usr/libexec/qemu-kvm


The 32-bit firmware was there as well, but it was hidden in the RHEL builds

%if %{defined rhel}
%define build_ovmf 0
%define build_aarch64 0
%ifarch x86_64
  %define build_ovmf 1
%endif
%ifarch aarch64
  %define build_aarch64 1
%endif
%define build_riscv64 0
%define build_loongarch64 0
%else
%define build_ovmf 1
%define build_aarch64 1
%define build_riscv64 1
%define build_loongarch64 1
%endif

Including systems based on Fedora, such as CentOS and AlmaLinux.

Older distributions did not have the "compat symlinks" needed.

Signed-off-by: Anders F Björklund <[email protected]>
Copy link
Member

@AkihiroSuda AkihiroSuda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@AkihiroSuda AkihiroSuda merged commit 7e493aa into lima-vm:master May 13, 2024
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants