Revert "pvshim: make PV shim build selectable from configure"
authorHans van Kranenburg <hans@knorrie.org>
Sat, 21 Nov 2020 23:40:58 +0000 (00:40 +0100)
committerMaximilian Engelhardt <maxi@daemonizer.de>
Thu, 23 Mar 2023 19:40:49 +0000 (19:40 +0000)
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

Gbp-Pq: Name 0012-Revert-pvshim-make-PV-shim-build-selectable-from-con.patch

config/Tools.mk.in
tools/configure.ac
tools/firmware/Makefile

index 23df47af8d90d107dac8de3b93f307eb628f1aae..6408e424b7dc1b7a9ef09f6b36bd0965c736dee1 100644 (file)
@@ -75,5 +75,3 @@ TINFO_LIBS          := @TINFO_LIBS@
 ARGP_LDFLAGS        := @argp_ldflags@
 
 FILE_OFFSET_BITS    := @FILE_OFFSET_BITS@
-
-CONFIG_PV_SHIM      := @pvshim@
index 9d126b7a14d25eced9dae2940719a80e7f2abdba..88e66d179481d9a7d9afc42eba405f2a2c24eb21 100644 (file)
@@ -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()
index 809a5fd0255e19b15abda6daf891ed1f5e63e9ad..cf304fc578a748439a96dccaaac39a9566c94e07 100644 (file)
@@ -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)