[PATCH kvm-unit-tests v2 3/9] x86/run: source config.mak

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



x86/run will need to start looking at config vars with
the next patch.

Signed-off-by: Andrew Jones <drjones@xxxxxxxxxx>
---
 x86/run | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/x86/run b/x86/run
index 5b402a680cc7..88f5ff771140 100755
--- a/x86/run
+++ b/x86/run
@@ -1,6 +1,13 @@
 #!/usr/bin/env bash
 
-[ -z "$STANDALONE" ] && source scripts/arch-run.bash
+if [ -z "$STANDALONE" ]; then
+	if [ ! -f config.mak ]; then
+		echo "run ./configure && make first. See ./configure -h"
+		exit 2
+	fi
+	source config.mak
+	source scripts/arch-run.bash
+fi
 
 qemu=$(search_qemu_binary)
 
-- 
2.9.4




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux