kvm-unit-tests: really use KVM_UNIT_TESTS_ARCH and fix value on x86-64
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 6 Nov 2016 12:39:26 +0000 (13:39 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 6 Nov 2016 12:39:26 +0000 (13:39 +0100)
The kvm-unit-tests package defines a KVM_UNIT_TESTS_ARCH variable, but
never used it. Due to this, on PowerPC64, we were passing an incorrect
value, causing a build failure.

In addition, once the KVM_UNIT_TESTS_ARCH is used, it appeared that
its value for x86_64 was incorrect, due a typo: it was x86_84 instead
of x86_64.

Fixes:

  http://autobuild.buildroot.net/results/16836c02f4d1ab5df6b2e21a4fcdbbf4a7542f22/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/kvm-unit-tests/kvm-unit-tests.mk

index 1b5ce787efd9c8fc2f9f0984b48eda213a3fa870..6e1c2dfcfb25543883608692728cae1d1134e9a3 100644 (file)
@@ -17,7 +17,7 @@ KVM_UNIT_TESTS_ARCH = i386
 else ifeq ($(BR2_powerpc64)$(BR2_powerpc64le),y)
 KVM_UNIT_TESTS_ARCH = ppc64
 else ifeq ($(BR2_x86_64),y)
-KVM_UNIT_TESTS_ARCH = x86_84
+KVM_UNIT_TESTS_ARCH = x86_64
 endif
 
 ifeq ($(BR2_ENDIAN),"LITTLE")
@@ -27,7 +27,7 @@ KVM_UNIT_TESTS_ENDIAN = big
 endif
 
 KVM_UNIT_TESTS_CONF_OPTS =\
-       --arch="$(KERNEL_ARCH)" \
+       --arch="$(KVM_UNIT_TESTS_ARCH)" \
        --endian="$(KVM_UNIT_TESTS_ENDIAN)"
 
 # For all architectures but x86-64, we use the target