Browse Source

change optflag and add docs package

Signed-off-by: Toshaan Bharvani <toshaan@powerel.org>
master
Toshaan Bharvani 2 years ago
parent
commit
c7c3e5a51e
  1. 15
      SPECS/qemu.spec

15
SPECS/qemu.spec

@ -301,6 +301,13 @@ This package provides the system emulator for AArch64. @@ -301,6 +301,13 @@ This package provides the system emulator for AArch64.
#This package provides client and server tools for QEMU's ivshmem device.


%package -n docs
Summary: QEMU docs
Group: Development/Tools
%description -n docs
This package provides documentation for QEMU.


%package bootloaders
Summary: Bootloaders for QEMU
Group: Development/Tools
@ -333,18 +340,16 @@ This package provides the bootloader images for QEMU and stubs @@ -333,18 +340,16 @@ This package provides the bootloader images for QEMU and stubs
extraldflags="-Wl,--build-id";
buildldflags="VL_LDFLAGS=-Wl,--build-id"
tracebackends="dtrace"
cflags="%{optflags}"
%ifarch ppc64
cflags="-m64 -O3 -g -fsigned-char -fno-strength-reduce -mcpu=power8 -mtune=power8 -mpower8-fusion -mpower8-vector -mcrypto -mquad-memory -mquad-memory-atomic -maltivec -mpowerpc-gpopt -mpowerpc-gfxopt -mcrypto -mvsx -mdirect-move -fPIC -fPIE -DPIE -D_FORTIFY_SOURCE=2"
nativebuildarch="ppc64-softmmu"
emulatedbuildarch="x86_64-softmmu s390x-softmmu sparc64-softmmu aarch64-softmmu mips64-softmmu mips64el-softmmu riscv64-softmmu alpha-softmmu arm-softmmu"
%endif
%ifarch ppc64le
cflags="-m64 -O3 -g -fsigned-char -fno-strength-reduce -mcpu=power8 -mtune=power8 -mpower8-fusion -mpower8-vector -mcrypto -maltivec -mpowerpc-gpopt -mpowerpc-gfxopt -mcrypto -mvsx -mdirect-move -fPIC -fPIE -DPIE -D_FORTIFY_SOURCE=2"
nativebuildarch="ppc64-softmmu"
emulatedbuildarch="x86_64-softmmu s390x-softmmu sparc64-softmmu aarch64-softmmu mips64-softmmu mips64el-softmmu riscv64-softmmu alpha-softmmu arm-softmmu"
%endif
%ifarch x86_64
cflags="-m64 -O3 -g -march=core2 -mtune=core2 -mmmx -msse -msse2 -mssse3 -msse4 -msse4.1 -msse4.2 -mavx -fPIC -fPIE -DPIE -D_FORTIFY_SOURCE=2"
nativebuildarch="x86_64-softmmu"
emulatedbuildarch="ppc64-softmmu s390x-softmmu sparc64-softmmu aarch64-softmmu mips64-softmmu mips64el-softmmu riscv64-softmmu alpha-softmmu arm-softmmu"
%endif
@ -760,4 +765,8 @@ getent passwd qemu >/dev/null || \ @@ -760,4 +765,8 @@ getent passwd qemu >/dev/null || \
%{_datadir}/systemtap/tapset/qemu-system-aarch64*.stp


%files docs
%dir %{_docdir}/%{name}/


%changelog

Loading…
Cancel
Save