From patchwork Sat Jul 8 14:08:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 785841 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3x4YHc0nq8z9s9Y for ; Sun, 9 Jul 2017 00:09:00 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Bi72hY1f"; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 2C2EA88C60; Sat, 8 Jul 2017 14:08:56 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yvsQ7nJjJjki; Sat, 8 Jul 2017 14:08:53 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id F3DB888C52; Sat, 8 Jul 2017 14:08:50 +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 D464F1C1E9A for ; Sat, 8 Jul 2017 14:08:45 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id D00278A1A8 for ; Sat, 8 Jul 2017 14:08:45 +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 tQztSvvqhRJQ for ; Sat, 8 Jul 2017 14:08:45 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr0-f195.google.com (mail-wr0-f195.google.com [209.85.128.195]) by hemlock.osuosl.org (Postfix) with ESMTPS id D15F28A1A7 for ; Sat, 8 Jul 2017 14:08:44 +0000 (UTC) Received: by mail-wr0-f195.google.com with SMTP id 77so13970764wrb.3 for ; Sat, 08 Jul 2017 07:08:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=DW80kfu/C2azNT/JzKsnM5RdLL0Bjtz5GufbmhZuYzE=; b=Bi72hY1fBXtAQEco28ES3hFDRux5TeXLIXPsfy5diqPUfB3D8rW+he+rnFX7V0CGGR q9fhTyjV5gWq1i2qYb+2itkJimQ6xHPimS3+y3DQFIJwJFkYtBgnJGhvVcflKtNxAhEW BhQMYRCHSAN1kmwpnIAaGEVQe1Q3pNVdMqUU1EtixwwznF9FAfzC+2ZCXOuN5TsDP10o UsIYB1KwNrJk7Oalw+tpWKJ1rtUUpd4KXvrN22d/JOW5QGs9lpAWcuD5kGHBF26lq4l7 hxO59/OTITJokv2V2G2qyINSXWxAiUWUsduXgUYpEgC3fF8UlbNyavwslCuWvF6qf2uw 1yug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=DW80kfu/C2azNT/JzKsnM5RdLL0Bjtz5GufbmhZuYzE=; b=FwzbvMV8DOwQ1JvZF8KTbJC/6+0SsTx2y8wHErarHwBvY/B3Yvf8UTHvqEkOMN4vUW uCtPK+2dHr99K6lXMeFEJMwEGzgS4cx4l/Wa0sKLEAtORJCyJMubHEKpn4WogcsfrK4D H1lNtKSPSJqSri3U3qD3TwztmZIDUms0eagdF3uGgEhHXNMZ+wCbFmrI5OxJ9Q3BS1Vh aTZPnuCMnb4GcJLdBXqYWKrt1lGJ2MHjsGt1lQvShU1IxO7VfgWwlEnGluLsvjAaIY3L eofb7v6C38v5h+y/Xpw37lzwsopD6CVKBhaThsQpRkSigPWKBTclUrfirjUPBYSXCFy9 o//Q== X-Gm-Message-State: AIVw112Jd4zyWOhgX5hnpifW/9TJs5+Fd5SZzti7/UrJkmE7/XeVpuOv XQkLOHZmLfFbysT2 X-Received: by 10.28.113.214 with SMTP id d83mr2351457wmi.62.1499522923261; Sat, 08 Jul 2017 07:08:43 -0700 (PDT) Received: from localhost.localdomain (2a01cb088610730028fcbf4515924254.ipv6.abo.wanadoo.fr. [2a01:cb08:8610:7300:28fc:bf45:1592:4254]) by smtp.gmail.com with ESMTPSA id 90sm6277176wrk.38.2017.07.08.07.08.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 08 Jul 2017 07:08:42 -0700 (PDT) From: "Yann E. MORIN" To: buildroot@buildroot.org Date: Sat, 8 Jul 2017 16:08:37 +0200 Message-Id: <0d5c040b902f29f870a4a941f1850d7c29e43144.1499522760.git.yann.morin.1998@free.fr> X-Mailer: git-send-email 2.11.0 In-Reply-To: References: Cc: "Yann E. MORIN" , Cyril Bur Subject: [Buildroot] [PATCH 2/4 v2] package/kvm-unit-tests: introduce _ARCH_SUPPORTS X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Move all architecture options to their own symbol, so that it is easier to add more variants in the future. Signed-off-by: "Yann E. MORIN" Cc: Cyril Bur --- package/kvm-unit-tests/Config.in | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/package/kvm-unit-tests/Config.in b/package/kvm-unit-tests/Config.in index 7eab0c25d6..0283e97dfc 100644 --- a/package/kvm-unit-tests/Config.in +++ b/package/kvm-unit-tests/Config.in @@ -1,15 +1,17 @@ -config BR2_PACKAGE_KVM_UNIT_TESTS - bool "kvm-unit-tests" +config BR2_PACKAGE_KVM_UNIT_TESTS_ARCH_SUPPORTS + bool + default y if BR2_cortex_a7 || BR2_cortex_a12 || \ + BR2_cortex_a15 || BR2_cortex_a17 + default y if BR2_powerpc64 || BR2_powerpc64le # on i386 and x86-64, __builtin_reachable is used, so we need # gcc 4.5 at least. on i386, we use the target gcc, while on # x86-64 we use the host gcc (see .mk file for details) # On ARM, it uses virtualization extensions - depends on BR2_cortex_a7 || BR2_cortex_a12 || \ - BR2_cortex_a15 || BR2_cortex_a17 || \ - (BR2_i386 && BR2_TOOLCHAIN_GCC_AT_LEAST_4_5) || \ - BR2_powerpc64 || \ - BR2_powerpc64le || \ - (BR2_x86_64 && BR2_HOST_GCC_AT_LEAST_4_5) + default y if (BR2_i386 || BR2_x86_64) && BR2_TOOLCHAIN_GCC_AT_LEAST_4_5 + +config BR2_PACKAGE_KVM_UNIT_TESTS + bool "kvm-unit-tests" + depends on BR2_PACKAGE_KVM_UNIT_TESTS_ARCH_SUPPORTS select BR2_HOSTARCH_NEEDS_IA32_COMPILER if BR2_x86_64=y help kvm-unit-tests is a project as old as KVM. As its name