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

+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()
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.