!592 spec: Add qemu-system-riscv rpm package
From: @saarloos Reviewed-by: @kevinzhu1 Signed-off-by: @kevinzhu1
This commit is contained in:
commit
0bac9fa8ce
22
qemu.spec
22
qemu.spec
@ -1,6 +1,6 @@
|
|||||||
Name: qemu
|
Name: qemu
|
||||||
Version: 6.2.0
|
Version: 6.2.0
|
||||||
Release: 39
|
Release: 40
|
||||||
Epoch: 2
|
Epoch: 2
|
||||||
Summary: QEMU is a generic and open source machine emulator and virtualizer
|
Summary: QEMU is a generic and open source machine emulator and virtualizer
|
||||||
License: GPLv2 and BSD and MIT and CC-BY-SA-4.0
|
License: GPLv2 and BSD and MIT and CC-BY-SA-4.0
|
||||||
@ -425,6 +425,12 @@ Requires: qemu
|
|||||||
%description system-x86_64
|
%description system-x86_64
|
||||||
This package provides the QEMU system emulator for x86_64.
|
This package provides the QEMU system emulator for x86_64.
|
||||||
|
|
||||||
|
%package system-riscv
|
||||||
|
Summary: Qemu-system-riscv32, Qemu-system-riscv64
|
||||||
|
Requires: qemu
|
||||||
|
%description system-riscv
|
||||||
|
This package provides the QEMU system emulator for riscv.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n qemu-%{version}%{?rcstr}
|
%setup -q -n qemu-%{version}%{?rcstr}
|
||||||
%autopatch -p1
|
%autopatch -p1
|
||||||
@ -432,11 +438,11 @@ This package provides the QEMU system emulator for x86_64.
|
|||||||
%build
|
%build
|
||||||
%ifarch x86_64
|
%ifarch x86_64
|
||||||
buildarch="x86_64-softmmu"
|
buildarch="x86_64-softmmu"
|
||||||
targetarch="aarch64-softmmu arm-softmmu"
|
targetarch="aarch64-softmmu arm-softmmu riscv32-softmmu riscv64-softmmu"
|
||||||
%endif
|
%endif
|
||||||
%ifarch aarch64
|
%ifarch aarch64
|
||||||
buildarch="aarch64-softmmu"
|
buildarch="aarch64-softmmu"
|
||||||
targetarch="x86_64-softmmu arm-softmmu"
|
targetarch="x86_64-softmmu arm-softmmu riscv32-softmmu riscv64-softmmu"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
buildldflags="VL_LDFLAGS=-Wl,--build-id"
|
buildldflags="VL_LDFLAGS=-Wl,--build-id"
|
||||||
@ -554,7 +560,6 @@ rm -rf %{buildroot}%{_datadir}/%{name}/u-boot*
|
|||||||
rm -rf %{buildroot}%{_bindir}/ivshmem*
|
rm -rf %{buildroot}%{_bindir}/ivshmem*
|
||||||
rm -f %{buildroot}%{_datadir}/%{name}/edk2*
|
rm -f %{buildroot}%{_datadir}/%{name}/edk2*
|
||||||
rm -rf %{buildroot}%{_datadir}/%{name}/firmware
|
rm -rf %{buildroot}%{_datadir}/%{name}/firmware
|
||||||
rm -rf %{buildroot}%{_datadir}/%{name}/opensbi*
|
|
||||||
rm -rf %{buildroot}%{_datadir}/%{name}/qemu-nsis.bmp
|
rm -rf %{buildroot}%{_datadir}/%{name}/qemu-nsis.bmp
|
||||||
rm -rf %{buildroot}%{_libdir}/%{name}/audio-oss.so
|
rm -rf %{buildroot}%{_libdir}/%{name}/audio-oss.so
|
||||||
rm -rf %{buildroot}%{_libdir}/%{name}/audio-pa.so
|
rm -rf %{buildroot}%{_libdir}/%{name}/audio-pa.so
|
||||||
@ -708,6 +713,12 @@ getent passwd qemu >/dev/null || \
|
|||||||
%{_datadir}/%{name}/sgabios.bin
|
%{_datadir}/%{name}/sgabios.bin
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%files system-riscv
|
||||||
|
%{_bindir}/qemu-system-riscv32
|
||||||
|
%{_bindir}/qemu-system-riscv64
|
||||||
|
%{_datadir}/%{name}/opensbi-riscv*.bin
|
||||||
|
%{_datadir}/%{name}/opensbi-riscv*.elf
|
||||||
|
|
||||||
%files help
|
%files help
|
||||||
%dir %{qemudocdir}
|
%dir %{qemudocdir}
|
||||||
%doc %{qemudocdir}/about
|
%doc %{qemudocdir}/about
|
||||||
@ -770,6 +781,9 @@ getent passwd qemu >/dev/null || \
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jun 20 2022 zhangziyang <zhangziyang1@huawei.com> - 2:6.2.0-40
|
||||||
|
- add qemu-system-riscv rpm package build
|
||||||
|
|
||||||
* Thu Jun 09 2022 yezengruan <yezengruan@huawei.com> - 2:6.2.0-39
|
* Thu Jun 09 2022 yezengruan <yezengruan@huawei.com> - 2:6.2.0-39
|
||||||
- hw/scsi/megasas: Use uint32_t for reply queue head/tail values
|
- hw/scsi/megasas: Use uint32_t for reply queue head/tail values
|
||||||
- dma: Let dma_memory_valid() take MemTxAttrs argument
|
- dma: Let dma_memory_valid() take MemTxAttrs argument
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user