pvshim: make PV shim build selectable from configure

So a user can decide whether to compile a PV shim as part of the tools
build. Note that the default behavior is preserved, which is to build
a PV shim when the target or host (if target is unset) architecture is
64bit x86.

Requested-by: Olaf Hering <olaf@aepfle.de>
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
[ wei: run autogen.s ]
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
This commit is contained in:
Roger Pau Monne authored and Wei Liu committed 2019-05-15 10:49:30 +01:00
1 parent c5d7f01cb9
commit 8845155c83
4 files changed
+39 -4

No files matched your search

+2
View File
@@ -75,3 +75,5 @@ TINFO_LIBS := @TINFO_LIBS@
ARGP_LDFLAGS := @argp_ldflags@
FILE_OFFSET_BITS := @FILE_OFFSET_BITS@
CONFIG_PV_SHIM := @pvshim@
+24
View File
@@ -624,6 +624,7 @@ ac_includes_default="\
ac_subst_vars='LTLIBOBJS
LIBOBJS
pvshim
ninepfs
SYSTEMD_LIBS
SYSTEMD_CFLAGS
@@ -822,6 +823,7 @@ enable_systemd
with_systemd
with_systemd_modules_load
enable_9pfs
enable_pvshim
'
ac_precious_vars='build_alias
host_alias
@@ -1504,6 +1506,8 @@ Optional Features:
--enable-systemd Enable systemd support (default is DISABLED)
--enable-9pfs Explicitly enable 9pfs support in QEMU build
(default is to defer to QEMU configure default)
--disable-pvshim Disable pvshim build (enabled by default on 64bit
x86)
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
@@ -9774,6 +9778,26 @@ fi
# Check whether --enable-pvshim was given.
if test "${enable_pvshim+set}" = set; then :
enableval=$enable_pvshim; if test "x$enable_pvshim" = "xno"; then :
pvshim=n
else
pvshim=y
fi
else
cpu=`test -z "$target_cpu" && echo "$host_cpu" || echo "$target_cpu"`
case "$cpu" in
x86_64)
pvshim="y";;
*) pvshim="n";;
esac
fi
cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
+13
View File
@@ -492,4 +492,17 @@ 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 "$cpu" in
x86_64)
pvshim="y";;
*) pvshim="n";;
esac
])
AC_SUBST(pvshim)
AC_OUTPUT()
-4
View File
@@ -1,10 +1,6 @@
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)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.