From patchwork Wed Feb 6 09:15:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Duskett X-Patchwork-Id: 1037372 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="M2lGfqAq"; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 43vbQW1551z9sDL for ; Wed, 6 Feb 2019 20:15:47 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 3A900880CC; Wed, 6 Feb 2019 09:15:44 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Z7h34m31-T4M; Wed, 6 Feb 2019 09:15:42 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id F28818817C; Wed, 6 Feb 2019 09:15:41 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id B16231BF398 for ; Wed, 6 Feb 2019 09:15:39 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id AE0E830ED1 for ; Wed, 6 Feb 2019 09:15:39 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8YE2FWJUeB1w for ; Wed, 6 Feb 2019 09:15:38 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-it1-f195.google.com (mail-it1-f195.google.com [209.85.166.195]) by silver.osuosl.org (Postfix) with ESMTPS id 4A7262E3E4 for ; Wed, 6 Feb 2019 09:15:38 +0000 (UTC) Received: by mail-it1-f195.google.com with SMTP id a6so4615941itl.4 for ; Wed, 06 Feb 2019 01:15:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=HbyQ1C5y0cj+z9NTLu+yK+c3ZkQfYDZwrEljJHX3Rjg=; b=M2lGfqAqBtVg0JadrjiWesWzDEGw8iig1t1Aiw+PVSkxR9hFiSmOSl5oJjc7eeKLe+ BL4RG9wEf9jGT1jlwujtdqbYZ9TBg+V52z45lvfGIsEuGhKplPmcKCjX95vTGIsUHldB tPsNjqem6h07rxVEGm6/3V3P8RP5qVTk3h+5YkUiN39SpeFGNfz4fQyNfjXI8niXxyRp sDPGgBiA9uc7hRIZBmtJm/SzZoMG0n0G3iGHmA5wbZmctTVLzgBDRf0UnBC1dasAHDTW r8SxYrQnJYC5NtQQ/2G2YwF1RcJ7C1raGNRWmIZzUfBidSQ4tu8ghNPxeCpSu629VZe9 EuOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=HbyQ1C5y0cj+z9NTLu+yK+c3ZkQfYDZwrEljJHX3Rjg=; b=hdnck9xX83Ubrw1Tc9/wwicYVBSQ9b/fVtUG4O7qCbNGU1f4rLbYPcXbsUCUIvkiq/ 5KaQmhyq0SdsnqjMN4pNG1Zbl5FheIFfx3ozMSG3Mv4xOi3Su4T2vcjBuLbuTAG+MBgy 6vQGcvAx4DaWtxL7CbpHGezVctFbeByTyPiqwJ+D/6R7i/YteKnKHmIu4JpCbyiN9w8O yt8sPSIgpVAUTgn1sw7N7bz/B8ELXJ17lzDtnrNPmewTY/zx5b+uqK9n8zKZNou5d/Ul vgSi3vou5WNxSb2EO6/tTYtig00zJHY34NVdSCAtHIN75O6xYCA1kqLkEwFQQeqMcaVH Cx6Q== X-Gm-Message-State: AHQUAuYvqbI+Y7fVyqmIPUoHmxmr3Ztr64AavGhozN9VMfgGdHB1MljI aoLA/IgSMnHrQoA89I6l9/NRNAq8pcg= X-Google-Smtp-Source: AHgI3IYNaCzkPYp+zIXYKDrBXNswmUJmTN5pMIcmvYiJoYnDCnGOg9j3I6MEFEdnaxEDeNW64r7qbQ== X-Received: by 2002:a5d:8e02:: with SMTP id e2mr5085200iod.215.1549444537359; Wed, 06 Feb 2019 01:15:37 -0800 (PST) Received: from localhost.localdomain (68-188-149-81.dhcp.aldl.mi.charter.com. [68.188.149.81]) by smtp.gmail.com with ESMTPSA id e141sm3678246itc.40.2019.02.06.01.15.36 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 06 Feb 2019 01:15:36 -0800 (PST) From: aduskett@gmail.com To: buildroot@buildroot.org Date: Wed, 6 Feb 2019 04:15:28 -0500 Message-Id: <20190206091531.104591-3-aduskett@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190206091531.104591-1-aduskett@gmail.com> References: <20190206091531.104591-1-aduskett@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v10 3/6] package/qemu: drop host kernel version check X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Adam Duskett Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Adam Duskett 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 --- Changes v1 -> v10: - Add this patch to the series. package/qemu/qemu.mk | 22 ---------------------- 1 file changed, 22 deletions(-) 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") endif -# 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 }') -HOST_QEMU_COMPARE_VERSION = $(shell test $(HOST_QEMU_HOST_SYSTEM_VERSION) -ge $(HOST_QEMU_TARGET_SYSTEM_VERSION) && echo OK) - -# -# 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) -ifneq ($(HOST_QEMU_COMPARE_VERSION),OK) -$(error "Refusing to build qemu-user: target Linux version newer than host's.") -endif -endif # BR_BUILDING - else # BR2_PACKAGE_HOST_QEMU_LINUX_USER_MODE HOST_QEMU_OPTS += --disable-linux-user endif # BR2_PACKAGE_HOST_QEMU_LINUX_USER_MODE