From patchwork Sun Jun 23 21:23:41 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Duskett X-Patchwork-Id: 1120930 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.137; helo=fraxinus.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="CdQR3Bnh"; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 45X55b4CPrz9s4Y for ; Mon, 24 Jun 2019 07:24:03 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id CC0128512E; Sun, 23 Jun 2019 21:24:01 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dVZNKxgl18UN; Sun, 23 Jun 2019 21:24:01 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 0734585617; Sun, 23 Jun 2019 21:24:01 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 8C3571BF3ED for ; Sun, 23 Jun 2019 21:23:53 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 8607286269 for ; Sun, 23 Jun 2019 21:23:53 +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 scAaOpx+KnDK for ; Sun, 23 Jun 2019 21:23:51 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-io1-f67.google.com (mail-io1-f67.google.com [209.85.166.67]) by hemlock.osuosl.org (Postfix) with ESMTPS id 2C54886B58 for ; Sun, 23 Jun 2019 21:23:50 +0000 (UTC) Received: by mail-io1-f67.google.com with SMTP id j6so633468ioa.5 for ; Sun, 23 Jun 2019 14:23:50 -0700 (PDT) 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=0l/0sTHySd0HYarlye1gVkW2kcOughLxqcZw2FzK6Dc=; b=CdQR3BnhSqm+RM+xikGtVufnsBtcrNWMyM9NYDdwNlRKnORRXESXoMkHIN8CB2TJLc Aq+p/Urd+L374cyfS3gWLPkXbQ7PSxSW/3MefM+X4DfpW7cpx3q6Eql/o//Bc77xeNny EnpXZrP2iQRefKlOurIccnWUWDvgeSUsppgoLvc41otvbL4+C2ZXEe2z/Yjpp4TBDnIP QVfks2JA0jb/nq9TCmHsTFCXQ8tqrGY2hEnAHO+rbRgRN0EjqDLSaXfIy//RN2sM9ITx OXN6mc9DzKxVPT5e7/k+RGirRdDlOtM2ErNx/ahG5B5eS6YfBduIWOfiBLthLeGKjJ30 rM4A== 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=0l/0sTHySd0HYarlye1gVkW2kcOughLxqcZw2FzK6Dc=; b=b7hMK90l8sZg0ue/rZMkFYnHScl9v72NuFScHIvC42Cq0YHBtMGlnYFnhPiTupj4uI blKWkmn01D54HqjKk7rwaC8ooJq7nK3KijZ126j1Jsrwe7/6t5DmSnyZkn0BuIgaSXfd OrcEIIhnNtOjHT7UtLltCK4hG+RbvxbD4Bc/CBegefLRpx+Wdr9PHmZKcbKubSGQmP4E nXC57ncqATdmKvJUUXjnwBu8ZB9kh5hkGUlzAAOjcYHZguL1170a5WLskFP9BQAAW0Tj ae12fZ3xrU1qyWObfyvJCRSStox6gKvIcNRqNQhx2WL+kNFm5ihy54GLIK6PI4GX95Qh cqlg== X-Gm-Message-State: APjAAAWmCrHa//OdStB0eFi5EJYA8c/lnD76pPsMNcTDMXUCjl6VrXBE Q+16wBWtek1lO7XAcZmJK2EZNCXG X-Google-Smtp-Source: APXvYqwd9mW6/LKwagrHlG9S9norzYmNFyYBmz109ayaKD2gaVwnHrzqKSljsQRastHID7xazfuOAw== X-Received: by 2002:a02:6996:: with SMTP id e144mr16861588jac.47.1561325029308; Sun, 23 Jun 2019 14:23:49 -0700 (PDT) Received: from localhost.localdomain (68-188-149-81.dhcp.aldl.mi.charter.com. [68.188.149.81]) by smtp.gmail.com with ESMTPSA id p25sm11148250iol.48.2019.06.23.14.23.48 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sun, 23 Jun 2019 14:23:48 -0700 (PDT) From: aduskett@gmail.com To: buildroot@buildroot.org Date: Sun, 23 Jun 2019 17:23:41 -0400 Message-Id: <20190623212342.41809-6-aduskett@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190623212342.41809-1-aduskett@gmail.com> References: <20190623212342.41809-1-aduskett@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v12 5/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: yann.morin.1998@free.fr, 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 v11 - v12: - Re-add this patch to the series as it was missing in V11. 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 73e0778d73..c57126b486 100644 --- a/package/qemu/qemu.mk +++ b/package/qemu/qemu.mk @@ -240,28 +240,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