Skip to content

Commit

Permalink
scripts: Add qemu version details to hypervisor script
Browse files Browse the repository at this point in the history
Set the qemu major and minor version variables in the hypervisor
configuration script.

Partially fixes kata-containers#13.

Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
  • Loading branch information
jodh-intel committed Apr 3, 2018
1 parent 2079f90 commit 99a97f7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions scripts/configure-hypervisor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,17 @@ show_array()
# Entry point
main()
{
local qemu_version_file="VERSION"
[ -f ${qemu_version_file} ] || die "QEMU version file '$qemu_version_file' not found"

local qemu_version_major=$(cut -d. -f1 "${qemu_version_file}")
local qemu_version_minor=$(cut -d. -f2 "${qemu_version_file}")

[ -n "${qemu_version_major}" ] \
|| die "cannot determine qemu major version from file $qemu_version_file"
[ -n "${qemu_version_minor}" ] \
|| die "cannot determine qemu minor version from file $qemu_version_file"

arch=$(arch)

# Array of configure options.
Expand Down

0 comments on commit 99a97f7

Please # to comment.