[v10,3/6] package/qemu: drop host kernel version check
diff mbox series

Message ID 20190206091531.104591-3-aduskett@gmail.com
State Changes Requested
Headers show
  • [v10,1/6] binutils: install libiberty for host build
Related show

Commit Message

Adam Duskett Feb. 6, 2019, 9:15 a.m. UTC
From: Adam Duskett <Aduskett@gmail.com>

There is no clean way to check if a program will actually run using host-qemu,
making this check too restrictive.

Signed-off-by: Adam Duskett <Aduskett@gmail.com>
Changes v1 -> v10:
  - Add this patch to the series.

 package/qemu/qemu.mk | 22 ----------------------
 1 file changed, 22 deletions(-)

diff mbox series

diff --git a/package/qemu/qemu.mk b/package/qemu/qemu.mk
index 30cd5972ef..4ce8c129ea 100644
--- a/package/qemu/qemu.mk
+++ b/package/qemu/qemu.mk
@@ -226,28 +226,6 @@  ifneq ($(HOST_QEMU_HOST_SYSTEM_TYPE),Linux)
 $(error "qemu-user can only be used on Linux hosts")
-# kernel version as major*256 + minor
-HOST_QEMU_HOST_SYSTEM_VERSION = $(shell uname -r | awk -F. '{ print $$1 * 256 + $$2 }')
-HOST_QEMU_TARGET_SYSTEM_VERSION = $(shell echo $(BR2_TOOLCHAIN_HEADERS_AT_LEAST) | awk -F. '{ print $$1 * 256 + $$2 }')
-# The principle of qemu-user is that it emulates the instructions of
-# the target architecture when running the binary, and then when this
-# binary does a system call, it converts this system call into a
-# system call on the host machine. This mechanism makes an assumption:
-# that the target binary will not do system calls that do not exist on
-# the host. This basically requires that the target binary should be
-# built with kernel headers that are older or the same as the kernel
-# version running on the host machine.
-ifeq ($(BR_BUILDING),y)
-$(error "Refusing to build qemu-user: target Linux version newer than host's.")
-endif # BR_BUILDING
 HOST_QEMU_OPTS += --disable-linux-user