]> git.pld-linux.org Git - packages/xen.git/commitdiff
- help build system detec what arch it's running on
authorJan Rękorajski <baggins@pld-linux.org>
Sun, 7 Jun 2020 19:34:01 +0000 (21:34 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Sun, 7 Jun 2020 19:34:01 +0000 (21:34 +0200)
- fix files on ix86

xen.spec

index 6f1f37774c515628612633bfcce98649893e461a..fffb3c776ccc8ef5e3a67d9c4eb2d5fa9843af56 100644 (file)
--- a/xen.spec
+++ b/xen.spec
@@ -449,6 +449,12 @@ export EXTRA_CFLAGS_QEMU_TRADITIONAL="%{rpmcflags} -I/usr/include/ncurses"
 export EXTRA_CFLAGS_QEMU_XEN="%{rpmcflags} -I/usr/include/ncurses"
 
 %{__make} dist-xen dist-tools dist-docs \
+%ifarch %{ix86}
+       XEN_COMPILE_ARCH=x86_32 \
+%endif
+%ifarch %{x8664}
+       XEN_COMPILE_ARCH=x86_64 \
+%endif
        %{!?with_ocaml:OCAML_TOOLS=n} \
        XSM_ENABLE=%{?with_xsm:y}%{!?with_xsm:n} \
        CC="%{__cc}" \
@@ -457,6 +463,12 @@ export EXTRA_CFLAGS_QEMU_XEN="%{rpmcflags} -I/usr/include/ncurses"
 
 %if %{with stubdom}
 %{__make} dist-stubdom \
+%ifarch %{ix86}
+       XEN_COMPILE_ARCH=x86_32 \
+%endif
+%ifarch %{x8664}
+       XEN_COMPILE_ARCH=x86_64 \
+%endif
        %{!?with_ocaml:OCAML_TOOLS=n} \
        XSM_ENABLE=%{?with_xsm:y}%{!?with_xsm:n} \
        CC="%{__cc}" \
@@ -474,6 +486,12 @@ install -d $RPM_BUILD_ROOT/etc/efi-boot/update.d
 %endif
 
 %{__make} install-xen install-tools %{?with_stubdom:install-stubdom} install-docs \
+%ifarch %{ix86}
+       XEN_COMPILE_ARCH=x86_32 \
+%endif
+%ifarch %{x8664}
+       XEN_COMPILE_ARCH=x86_64 \
+%endif
        %{!?with_ocaml:OCAML_TOOLS=n} \
        XSM_ENABLE=%{?with_xsm:y}%{!?with_xsm:n} \
        DESTDIR=$RPM_BUILD_ROOT \
@@ -661,7 +679,9 @@ fi
 %{_libexecdir}/%{name}/boot/xenstore-stubdom.gz
 %endif
 %{_libexecdir}/%{name}/boot/ipxe.bin
+%ifarch %{x8664}
 %{_libexecdir}/%{name}/boot/xen-shim
+%endif
 %attr(744,root,root) %{_libexecdir}/%{name}/boot/hvmloader
 %{_mandir}/man1/xentop.1*
 %{_mandir}/man1/xentrace_format.1*
This page took 0.084036 seconds and 4 git commands to generate.