configure: CONFIG_NO_XEN is duplicated
We already define it in Makefile.target. But we need to avoid a curious double negation in order to eliminate it. Tested-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
This commit is contained in:
parent
2b6b7099fb
commit
15c08efebd
3
configure
vendored
3
configure
vendored
|
@ -4299,12 +4299,9 @@ case "$target_arch2" in
|
||||||
if test "$xen_pci_passthrough" = yes; then
|
if test "$xen_pci_passthrough" = yes; then
|
||||||
echo "CONFIG_XEN_PCI_PASSTHROUGH=y" >> "$config_target_mak"
|
echo "CONFIG_XEN_PCI_PASSTHROUGH=y" >> "$config_target_mak"
|
||||||
fi
|
fi
|
||||||
else
|
|
||||||
echo "CONFIG_NO_XEN=y" >> $config_target_mak
|
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "CONFIG_NO_XEN=y" >> $config_target_mak
|
|
||||||
esac
|
esac
|
||||||
case "$target_arch2" in
|
case "$target_arch2" in
|
||||||
arm|i386|x86_64|ppcemb|ppc|ppc64|s390x)
|
arm|i386|x86_64|ppcemb|ppc|ppc64|s390x)
|
||||||
|
|
|
@ -25,7 +25,7 @@ extern bool xen_allowed;
|
||||||
|
|
||||||
static inline bool xen_enabled(void)
|
static inline bool xen_enabled(void)
|
||||||
{
|
{
|
||||||
#if defined(CONFIG_XEN_BACKEND) && !defined(CONFIG_NO_XEN)
|
#if defined(CONFIG_XEN_BACKEND) && defined(CONFIG_XEN)
|
||||||
return xen_allowed;
|
return xen_allowed;
|
||||||
#else
|
#else
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue