summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/Common/ToolDefClassObject.py
diff options
context:
space:
mode:
authorJordan Justen <jordan.l.justen@intel.com>2017-02-03 13:10:39 -0800
committerJordan Justen <jordan.l.justen@intel.com>2017-03-16 14:31:18 -0700
commit2a5d278b59bea224e0f1c727ed8f80871feaed67 (patch)
tree58827ec08e2e61bf9a4c99d93fe5649b77f2b92c /BaseTools/Source/Python/Common/ToolDefClassObject.py
parentba8ea42738cf5caa8855c59da5359b8e7929568f (diff)
downloadedk2-2a5d278b59bea224e0f1c727ed8f80871feaed67.tar.gz
edk2-2a5d278b59bea224e0f1c727ed8f80871feaed67.tar.bz2
edk2-2a5d278b59bea224e0f1c727ed8f80871feaed67.zip
OvmfPkg/build.sh: Parse qemu version in more cases
Since qemu v2.7.0, the pkgversion appears to have a bug: $ ./configure --target-list=x86_64-softmmu --with-pkgversion=foo Results in this output: $ x86_64-softmmu/qemu-system-x86_64 -version QEMU emulator version 2.8.90(foo) Copyright (c) 2003-2017 Fabrice Bellard and the QEMU Project developers This appears to have been introduced in: 67a1de0d19 Makefile: Derive "PKGVERSION" from "git describe" by default The previous commit (077de81a4c) produces this output: $ x86_64-softmmu/qemu-system-x86_64 -version QEMU emulator version 2.6.50 (foo), Copyright (c) 2003-2008 Fabrice Bellard Now the OvmfPkg/build.sh script uses grep with '-o' to return only the matched text. grep -E is also used with a simple regex to extract only the digits of the version. qemu-bug: https://bugs.launchpad.net/bugs/1673373 Cc: Laszlo Ersek <lersek@redhat.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Diffstat (limited to 'BaseTools/Source/Python/Common/ToolDefClassObject.py')
0 files changed, 0 insertions, 0 deletions