From patchwork Wed Aug 28 03:45:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 172309 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp186012ily; Tue, 27 Aug 2019 20:45:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqyE3YVMDY/Z9HGqstRmcoLfEu+IkYPvJEs4F1SSo/2dJWs33kZbqGX7jMNxh0IeBI4+sMQk X-Received: by 2002:a17:902:be12:: with SMTP id r18mr2131341pls.341.1566963936191; Tue, 27 Aug 2019 20:45:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566963936; cv=none; d=google.com; s=arc-20160816; b=xjPXBooIFtdFpSLUlRI7k/gekbebGqv4VYtZ3Pbcotras8CSdYzYSUNHCcxRCrreL9 OZx0nB/p6LRKLI0D2LWn7cN5YjB1KVVjFvtXz23eQNbcnigUDRWPJ2OLg4DQvXbVcUMv RWk4BOWBizZ5+KLp+ZuzBV8D2STz43HAyHOWMBu8y+ZQKU870Lpsyn5ABGtpQy9cFNO4 Ds89YlptizW5eDSVfsywQ/INio6h5tUkgPx4yUVLvimffi7HdHIEDsKZEuc7gSsygrOK eLXb7tMsAv8pweVozc0UVhpLOlv7uZetFexPtcWMI3kpPVlKJFB1Ske65GWT4czG8FgO cRdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:message-id:date:to:from:dkim-signature:delivered-to; bh=Qvzjp47zwqGPbv6Y4lFAS4QaINd5v2njKT9XtDUbRZc=; b=IWeNzTuIV4yNuuxXzCg8GC5pm6wcK1F3TJVv8wMweCY/cSJN5v/fbuymY8lTH9PZzm mkcUnRxUu7dkTik+rOJhH7wPtuZX02WMDuWgjb6El6Ddb/gYhUKROq9AdawiEz6vj82l HIIlBgkq0EwKIFwWFgSAsRNluZ7V04U5iiNxMyDje77OKxgydh0poMq55dMaxWNp7zcJ a5OOwBo5tebbyAMhT2zdAbvBqneck2Z3p/HupXQsxdQ++RbMxEd7SisBGpG4u2tx4vOK KeBK+MP/gFvxHKl6AAd6cbLhU+MQd5yScY8DRUpS3ugzZERXKSoaQlrEzd7q8vt7sw8l ch3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=W2M4uG3y; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id x16si1116796pgi.312.2019.08.27.20.45.35; Tue, 27 Aug 2019 20:45:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=W2M4uG3y; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 23AB97ED48; Wed, 28 Aug 2019 03:45:34 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pf1-f194.google.com (mail-pf1-f194.google.com [209.85.210.194]) by mail.openembedded.org (Postfix) with ESMTP id 72A2A7E735 for ; Wed, 28 Aug 2019 03:45:33 +0000 (UTC) Received: by mail-pf1-f194.google.com with SMTP id w16so753348pfn.7 for ; Tue, 27 Aug 2019 20:45:34 -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:mime-version :content-transfer-encoding; bh=ZzwvYSzmIBNy+tO6g6n/MsbUEldUXBNVM8yxM5RlaWY=; b=W2M4uG3ybGJ6Cb2u5737VaepPSUgBNlLYQjVUPR6MutN9W7PvkXUb5ErV8kwflChcX RHu/O78TBgOofM1bqQA5Ln9JqB4JjtQZrjM6MOEiweFB53v38jrzF235Iai9++J3NjEA n0vNUtG7M3UsD4zbfrgSp6zKKbEVgfzyPb1tLTyRpGpyqrKu1Kfad1o347cIh480LFhv udfDBhKMV2iLvUkOdufw/LiIGhVno6ZwsQGT6VeAemYrgFFk4J5yffuhNxPL52r9WEgk MRpdp4WbDwe2fNqa5JyhluAIju0teyOtJe7jngoQOvdElKQg/rw1a7c0Irkh/XOxnLAZ dB7g== 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:mime-version :content-transfer-encoding; bh=ZzwvYSzmIBNy+tO6g6n/MsbUEldUXBNVM8yxM5RlaWY=; b=F7Jyuhv+QgSSEk1Hw8Bk+TPiQfqTM8XC5NOQFw/drlB3Lo6IHul/pM+KA2znrt+xQn Jb5FfQ9Zohn59TLOl5cw+gum6FUzbO+NEUGffX+s0JzvgD4JX+9K2ICYd1UmwVzaEKMq R2uvsVb7u/QCj4uNmoHoEMzPOHcV9d1uqw3PucfekWnSMug+MZQ589mXYf3eFA4UmUqq R3REWwaU7dEdupNW65dk9UXOH0xKnrhSQJoLGKeXg3nAsDDnwAaaOCpuC5+WXmva3gCR v6v8TCghT71JAJ+ESK2NsFqs5oSqbQTXZwMIUc1aQRmFhGIHCs9Xq+Yat9hQSzJzwNMI hq7Q== X-Gm-Message-State: APjAAAVrtdrPsxhnPbWAB6dWTRB81Ho/VAhNzClKhQk6a5VMh29SDspv oYEv//Mj575kloBtgU+/8iws+OtzyJM= X-Received: by 2002:a17:90a:974c:: with SMTP id i12mr2193719pjw.12.1566963933844; Tue, 27 Aug 2019 20:45:33 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net (c-73-71-176-3.hsd1.ca.comcast.net. [73.71.176.3]) by smtp.gmail.com with ESMTPSA id s125sm945907pfc.133.2019.08.27.20.45.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Aug 2019 20:45:33 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Tue, 27 Aug 2019 20:45:26 -0700 Message-Id: <20190828034526.16731-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Subject: [oe] [meta-oe][PATCH] kernel-selftest: Warn conditionally about clang-native dependency X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org When meta-clang is in mix then it does the right thing already so no need to warn in that case Signed-off-by: Khem Raj --- meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) -- 2.23.0 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb b/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb index 7370f9fb41..dce33c16c5 100644 --- a/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb +++ b/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb @@ -63,9 +63,10 @@ python __anonymous () { } do_compile() { - bbwarn "clang >= 6.0 with bpf support is needed with kernel 4.18+ so \ -either install it and add it to HOSTTOOLS, or add \ -clang-native from meta-clang to dependency" + if [ ${@bb.utils.contains('DEPENDS', 'clang-native', 'True', 'False', d)} = 'False' ]; then + bbwarn "clang >= 6.0 with bpf support is needed with kernel 4.18+ so +either install it and add it to HOSTTOOLS, or add clang-native from meta-clang to dependency" + fi for i in ${TEST_LIST} do oe_runmake -C ${S}/tools/testing/selftests/${i}