mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
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:
1 parent
c5d7f01cb9
commit
8845155c83
4 files changed
+39
-4
No files matched your search
@@ -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()
|
||||