* [Buildroot] [PATCH v2 1/2] kvm-unit-tests: Fix x86_64 to use host compiler
@ 2016-10-26 3:19 Cyril Bur
2016-10-26 3:19 ` [Buildroot] [PATCH v2 2/2] kvm-unit-tests: Bump version Cyril Bur
2016-10-26 12:08 ` [Buildroot] [PATCH v2 1/2] kvm-unit-tests: Fix x86_64 to use host compiler Thomas Petazzoni
0 siblings, 2 replies; 4+ messages in thread
From: Cyril Bur @ 2016-10-26 3:19 UTC (permalink / raw)
To: buildroot
kvm-unit-tests requires a multilib compiler for x86_64 as it compiles
32bit boot code.
This patch uses the BR2_HOSTARCH_NEEDS_IA32_COMPILER option to enforce
this and avoids using TARGET_CROSS for x86_64 targets and uses the host
32bit (and 64bit) capable compiler.
Signed-off-by: Cyril Bur <cyrilbur@gmail.com>
---
V2: Addressed review comments from Thomas
- Don't change the KVM_UNIT_TESTS_ARCH block
- Add space after comment
- Split version fixes version bump to separate patch
package/kvm-unit-tests/Config.in | 1 +
package/kvm-unit-tests/kvm-unit-tests.mk | 8 +++++++-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/package/kvm-unit-tests/Config.in b/package/kvm-unit-tests/Config.in
index f771896..d72c734 100644
--- a/package/kvm-unit-tests/Config.in
+++ b/package/kvm-unit-tests/Config.in
@@ -1,5 +1,6 @@
config BR2_PACKAGE_KVM_UNIT_TESTS
bool "kvm-unit-tests"
+ select BR2_HOSTARCH_NEEDS_IA32_COMPILER if BR2_x86_64=y
depends on BR2_arm || BR2_i386 || BR2_powerpc64 || \
BR2_powerpc64le || BR2_x86_64
help
diff --git a/package/kvm-unit-tests/kvm-unit-tests.mk b/package/kvm-unit-tests/kvm-unit-tests.mk
index 7fd03ad..97c8eb8 100644
--- a/package/kvm-unit-tests/kvm-unit-tests.mk
+++ b/package/kvm-unit-tests/kvm-unit-tests.mk
@@ -28,9 +28,15 @@ endif
KVM_UNIT_TESTS_CONF_OPTS =\
--arch="$(KERNEL_ARCH)" \
- --cross-prefix="$(TARGET_CROSS)" \
--endian="$(KVM_UNIT_TESTS_ENDIAN)"
+#Use HOSTCC for x86_64 as we'll need to compile 32bit code
+#which buildroot cross compilers often can't do
+
+ifneq ($(BR2_x86_64),y)
+KVM_UNIT_TESTS_CONF_OPTS += --cross-prefix="$(TARGET_CROSS)"
+endif
+
define KVM_UNIT_TESTS_CONFIGURE_CMDS
cd $(@D) && ./configure $(KVM_UNIT_TESTS_CONF_OPTS)
endef
--
2.10.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH v2 2/2] kvm-unit-tests: Bump version
2016-10-26 3:19 [Buildroot] [PATCH v2 1/2] kvm-unit-tests: Fix x86_64 to use host compiler Cyril Bur
@ 2016-10-26 3:19 ` Cyril Bur
2016-10-26 12:08 ` Thomas Petazzoni
2016-10-26 12:08 ` [Buildroot] [PATCH v2 1/2] kvm-unit-tests: Fix x86_64 to use host compiler Thomas Petazzoni
1 sibling, 1 reply; 4+ messages in thread
From: Cyril Bur @ 2016-10-26 3:19 UTC (permalink / raw)
To: buildroot
This version bump includes several fixes for x86 and a significant fix
to powerpc transactional memory tests.
Signed-off-by: Cyril Bur <cyrilbur@gmail.com>
---
package/kvm-unit-tests/kvm-unit-tests.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/kvm-unit-tests/kvm-unit-tests.mk b/package/kvm-unit-tests/kvm-unit-tests.mk
index 97c8eb8..5028e38 100644
--- a/package/kvm-unit-tests/kvm-unit-tests.mk
+++ b/package/kvm-unit-tests/kvm-unit-tests.mk
@@ -4,7 +4,7 @@
#
################################################################################
-KVM_UNIT_TESTS_VERSION = 0b04ed0610035792514fd8499eb4dacc185520d9
+KVM_UNIT_TESTS_VERSION = 5731572b2ac23eb410732110b93425b5bb7f27dd
KVM_UNIT_TESTS_SITE = $(BR2_KERNEL_MIRROR)/scm/virt/kvm/kvm-unit-tests.git
KVM_UNIT_TESTS_SITE_METHOD = git
KVM_UNIT_TESTS_LICENSE = LGPLv2
--
2.10.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH v2 2/2] kvm-unit-tests: Bump version
2016-10-26 3:19 ` [Buildroot] [PATCH v2 2/2] kvm-unit-tests: Bump version Cyril Bur
@ 2016-10-26 12:08 ` Thomas Petazzoni
0 siblings, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2016-10-26 12:08 UTC (permalink / raw)
To: buildroot
Hello,
On Wed, 26 Oct 2016 14:19:16 +1100, Cyril Bur wrote:
> This version bump includes several fixes for x86 and a significant fix
> to powerpc transactional memory tests.
>
> Signed-off-by: Cyril Bur <cyrilbur@gmail.com>
> ---
> package/kvm-unit-tests/kvm-unit-tests.mk | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH v2 1/2] kvm-unit-tests: Fix x86_64 to use host compiler
2016-10-26 3:19 [Buildroot] [PATCH v2 1/2] kvm-unit-tests: Fix x86_64 to use host compiler Cyril Bur
2016-10-26 3:19 ` [Buildroot] [PATCH v2 2/2] kvm-unit-tests: Bump version Cyril Bur
@ 2016-10-26 12:08 ` Thomas Petazzoni
1 sibling, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2016-10-26 12:08 UTC (permalink / raw)
To: buildroot
Hello,
On Wed, 26 Oct 2016 14:19:15 +1100, Cyril Bur wrote:
> +#Use HOSTCC for x86_64 as we'll need to compile 32bit code
> +#which buildroot cross compilers often can't do
I've reworked this comment a bit, and applied. Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-10-26 12:08 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-26 3:19 [Buildroot] [PATCH v2 1/2] kvm-unit-tests: Fix x86_64 to use host compiler Cyril Bur
2016-10-26 3:19 ` [Buildroot] [PATCH v2 2/2] kvm-unit-tests: Bump version Cyril Bur
2016-10-26 12:08 ` Thomas Petazzoni
2016-10-26 12:08 ` [Buildroot] [PATCH v2 1/2] kvm-unit-tests: Fix x86_64 to use host compiler Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox