From: Hans van Kranenburg Date: Sat, 21 Nov 2020 23:40:58 +0000 (+0100) Subject: Revert "pvshim: make PV shim build selectable from configure" X-Git-Tag: archive/raspbian/4.14.3-1+rpi1^2~31 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e004574151fc41aa92a8496444070318c3e82f69;p=xen.git Revert "pvshim: make PV shim build selectable from configure" This reverts commit 8845155c831c59e867ee3dd31ee63e0cc6c7dcf2. This upstream change changes stuff that breaks our very fragile mess that builds the shim when it needs to, and doesn't when it should not. The result is that it's missing in the end for the i386 build... :| dh_install: warning: Cannot find (any matches for) "usr/lib/debug/usr/lib/xen-*/boot/*" (tried in ., debian/tmp) dh_install: warning: xen-utils-4.14 missing files: usr/lib/debug/usr/lib/xen-*/boot/* dh_install: error: missing files, aborting --- diff --git a/config/Tools.mk.in b/config/Tools.mk.in index 23df47af8d..6408e424b7 100644 --- a/config/Tools.mk.in +++ b/config/Tools.mk.in @@ -75,5 +75,3 @@ TINFO_LIBS := @TINFO_LIBS@ ARGP_LDFLAGS := @argp_ldflags@ FILE_OFFSET_BITS := @FILE_OFFSET_BITS@ - -CONFIG_PV_SHIM := @pvshim@ diff --git a/tools/configure.ac b/tools/configure.ac index 9d126b7a14..88e66d1794 100644 --- a/tools/configure.ac +++ b/tools/configure.ac @@ -503,17 +503,4 @@ AC_ARG_ENABLE([9pfs], AC_SUBST(ninepfs) -AC_ARG_ENABLE([pvshim], - AS_HELP_STRING([--disable-pvshim], - [Disable pvshim build (enabled by default on 64bit x86)]), - [AS_IF([test "x$enable_pvshim" = "xno"], [pvshim=n], [pvshim=y])], [ - cpu=`test -z "$target_cpu" && echo "$host_cpu" || echo "$target_cpu"` - case "${XEN_COMPILE_ARCH-${XEN_TARGET_ARCH-$cpu}}" in - x86_64) - pvshim="y";; - *) pvshim="n";; - esac -]) -AC_SUBST(pvshim) - AC_OUTPUT() diff --git a/tools/firmware/Makefile b/tools/firmware/Makefile index 809a5fd025..cf304fc578 100644 --- a/tools/firmware/Makefile +++ b/tools/firmware/Makefile @@ -1,6 +1,10 @@ XEN_ROOT = $(CURDIR)/../.. include $(XEN_ROOT)/tools/Rules.mk +ifneq ($(XEN_TARGET_ARCH),x86_32) +CONFIG_PV_SHIM := y +endif + # hvmloader is a 32-bit protected mode binary. TARGET := hvmloader/hvmloader INST_DIR := $(DESTDIR)$(XENFIRMWAREDIR)