Skip to contentSkip to conversation

package/qemu: Compare host/target Linux version only during build phase

PATCH New Bernd Kuhls 2 participants 2 messages May 21, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/qemu: Compare host/target Linux version only during build phase

This patch fixes an error during source-check.

Thanks to Thomas for the hint:
http://article.gmane.org/gmane.comp.lib.uclibc.buildroot/116183

---
 package/qemu/qemu.mk |    2 ++
 1 file changed, 2 insertions(+)
package/qemu/qemu.mk +2 -0
index 04df79f..0620804 100644
@@ -85,10 +85,12 @@ HOST_QEMU_COMPARE_VERSION = $(shell test $(HOST_QEMU_HOST_SYSTEM_VERSION) -ge $(
 # built with kernel headers that are older or the same as the kernel
 # version running on the host machine.
 #
+ifeq ($(BR_BUILDING),y)
 ifneq ($(HOST_QEMU_COMPARE_VERSION),OK)
 $(error "Refusing to build qemu-user: target Linux version newer than host's.")
 endif
 endif
+endif
 
 define HOST_QEMU_CONFIGURE_CMDS
 	cd $(@D); $(HOST_CONFIGURE_OPTS) ./configure    \
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH 1/1 package/qemu: Compare host/target Linux version only during build phase

Dear Bernd Kuhls,

Quoted 9 lines · Bernd Kuhls

This patch fixes an error during source-check.

Thanks to Thomas for the hint:
http://article.gmane.org/gmane.comp.lib.uclibc.buildroot/116183

---
 package/qemu/qemu.mk |    2 ++
 1 file changed, 2 insertions(+)

Applied, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com