kvm-unit-tests: pass the --processor configure argument
authorArnout Vandecappelle <arnout@mind.be>
Sun, 20 Nov 2016 13:50:05 +0000 (14:50 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 20 Nov 2016 14:46:54 +0000 (15:46 +0100)
The configure script uses this to set the -mcpu option. If nothing is
passed, it defaults to -mcpu=cortex-a15 for arm, and -mcpu=cortex-a57
for aarch64, which may conflict with the actual architecture.

The --processor option is only really used for arm and aarch64, but it
doesn't hurt to also pass it for the other arches.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/kvm-unit-tests/kvm-unit-tests.mk

index 6e1c2dfcfb25543883608692728cae1d1134e9a3..0ddb017802be9749ba7e98093b5e3d8789722a40 100644 (file)
@@ -28,6 +28,7 @@ endif
 
 KVM_UNIT_TESTS_CONF_OPTS =\
        --arch="$(KVM_UNIT_TESTS_ARCH)" \
+       --processor="$(call qstrip,$(BR2_GCC_TARGET_CPU))" \
        --endian="$(KVM_UNIT_TESTS_ENDIAN)"
 
 # For all architectures but x86-64, we use the target