mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 10:13:56 -06:00
xen: use 5 digit xen versions
Today qemu is using e.g. the value 480 for Xen version 4.8.0. As some Xen version tests are using ">" relations this scheme will lead to problems when Xen version 4.10.0 is being reached. Instead of the 3 digit schem use a 5 digit scheme (e.g. 40800 for version 4.8.0). Signed-off-by: Juergen Gross <jgross@suse.com> Signed-off-by: Stefano Stabellini <sstabellini@kernel.org> Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
This commit is contained in:
parent
d655f34e6d
commit
f1167ee684
3 changed files with 20 additions and 20 deletions
16
configure
vendored
16
configure
vendored
|
@ -2014,7 +2014,7 @@ EOF
|
|||
compile_prog "" "$xen_libs -lxendevicemodel $xen_stable_libs"
|
||||
then
|
||||
xen_stable_libs="-lxendevicemodel $xen_stable_libs"
|
||||
xen_ctrl_version=490
|
||||
xen_ctrl_version=40900
|
||||
xen=yes
|
||||
elif
|
||||
cat > $TMPC <<EOF &&
|
||||
|
@ -2069,7 +2069,7 @@ int main(void) {
|
|||
EOF
|
||||
compile_prog "" "$xen_libs $xen_stable_libs"
|
||||
then
|
||||
xen_ctrl_version=480
|
||||
xen_ctrl_version=40800
|
||||
xen=yes
|
||||
elif
|
||||
cat > $TMPC <<EOF &&
|
||||
|
@ -2120,7 +2120,7 @@ int main(void) {
|
|||
EOF
|
||||
compile_prog "" "$xen_libs $xen_stable_libs"
|
||||
then
|
||||
xen_ctrl_version=471
|
||||
xen_ctrl_version=40701
|
||||
xen=yes
|
||||
elif
|
||||
cat > $TMPC <<EOF &&
|
||||
|
@ -2135,7 +2135,7 @@ int main(void) {
|
|||
EOF
|
||||
compile_prog "" "$xen_libs"
|
||||
then
|
||||
xen_ctrl_version=470
|
||||
xen_ctrl_version=40700
|
||||
xen=yes
|
||||
|
||||
# Xen 4.6
|
||||
|
@ -2163,7 +2163,7 @@ int main(void) {
|
|||
EOF
|
||||
compile_prog "" "$xen_libs"
|
||||
then
|
||||
xen_ctrl_version=460
|
||||
xen_ctrl_version=40600
|
||||
xen=yes
|
||||
|
||||
# Xen 4.5
|
||||
|
@ -2190,7 +2190,7 @@ int main(void) {
|
|||
EOF
|
||||
compile_prog "" "$xen_libs"
|
||||
then
|
||||
xen_ctrl_version=450
|
||||
xen_ctrl_version=40500
|
||||
xen=yes
|
||||
|
||||
elif
|
||||
|
@ -2215,7 +2215,7 @@ int main(void) {
|
|||
EOF
|
||||
compile_prog "" "$xen_libs"
|
||||
then
|
||||
xen_ctrl_version=420
|
||||
xen_ctrl_version=40200
|
||||
xen=yes
|
||||
|
||||
else
|
||||
|
@ -2227,7 +2227,7 @@ EOF
|
|||
fi
|
||||
|
||||
if test "$xen" = yes; then
|
||||
if test $xen_ctrl_version -ge 471 ; then
|
||||
if test $xen_ctrl_version -ge 40701 ; then
|
||||
libs_softmmu="$xen_stable_libs $libs_softmmu"
|
||||
fi
|
||||
libs_softmmu="$xen_libs $libs_softmmu"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue