Skip to contentSkip to conversation

xvisor: fix bogus check on XVISOR_ARCH

PATCH New Thomas Petazzoni 2 participants 2 messages Jul 6, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xvisor: fix bogus check on XVISOR_ARCH

The XVISOR_ARCH check added in commit 117fd5dfbc756c4f2b4aef97fc2b568528c66df7 ("xvisor: fix build on AArch64") broke Buildroot entirely on all architectures except ARM, AArch64 and x86-64, because the $(error ...) test was not enclosed inside a condition that made sure the xvisor package was enabled.

This commit fixes that, and allows Buildroot to be usable again on all architectures.

---
 package/xvisor/xvisor.mk | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
package/xvisor/xvisor.mk +5 -1
index 8be4be9..addd7e6 100644
@@ -30,9 +30,13 @@ ifeq ($(BR2_x86_64),y)
 XVISOR_ARCH = x86
 else ifeq ($(BR2_arm)$(BR2_aarch64),y)
 XVISOR_ARCH = arm
-else
+endif
+
+ifeq ($(BR2_PACKAGE_XVISOR)$(BR_BUILDING),yy)
+ifeq ($(XVISOR_ARCH),)
 $(error "Architecture not supported by XVisor")
 endif
+endif
 
 XVISOR_MAKE_ENV = \
 	ARCH=$(XVISOR_ARCH) \
Signature · 1 line
2.9.4
#1 lore raw

PATCH 1/1 xvisor: fix bogus check on XVISOR_ARCH

Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas Petazzoni <[email protected]> writes:

The XVISOR_ARCH check added in commit 117fd5dfbc756c4f2b4aef97fc2b568528c66df7 ("xvisor: fix build on AArch64") broke Buildroot entirely on all architectures except ARM, AArch64 and x86-64, because the $(error ...) test was not enclosed inside a condition that made sure the xvisor package was enabled.

Quoted 4 lines

This commit fixes that, and allows Buildroot to be usable again on all architectures.

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard