From patchwork Wed Mar 27 23:07:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 161280 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp1545jan; Wed, 27 Mar 2019 16:07:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqxU4+ycWR3Ia78kAdi2d0NFpittwdq5zgFcs/LBKqOFN8DXY2PaLdvrTSC0GF2bhjfPYUhf X-Received: by 2002:a65:6107:: with SMTP id z7mr23118159pgu.313.1553728040409; Wed, 27 Mar 2019 16:07:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553728040; cv=none; d=google.com; s=arc-20160816; b=B+75nvTgZyUpzVf0byUq6iDa5wlqYHC05x5PqisCYG4wLm3fOye13zCRjPxAzc/UfK G9WScA93bzZyRI25FLbvUe2YJTFZJqOWN6roDrKPbTb5tLhOFZgEmkEagCqpY96DFSDM 0eLz8a8kcf5x+8VILl7Jnpc6PXh4o7f9qzBANRxbiyBp1j4KspTs6JE7N3Pghz0/1E1f grvoR3C7d7x/Hd+scHELnbdg1QRqb9OVgdy2mjR/xD1r80Wd1RbdWxII6Zz6/jX0/F2w FqlmqJD6FA2JbMsDeRhVO3hAPV3ZxUEaDFLwmpe2XZKFQIeY6ltdvlfF8yBOrzuQJrdj S2sQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-signature :delivered-to; bh=ryqEanA21fHUQOP340quZgV7kAwyESLFqsQV8AgfzGI=; b=BgAOWuW7zhQQJaX60sZhvLO/FB09ZfNM9FgoKkqf8Jibw9yxQtkQyTzOAVKggRH/OH ViErQxr9qKI7CnEs8CKHaVXNtrVe/MNIj7iuBOKmJRvyxZ8D3UA2XAGbPIrorzROt9lZ AIFxie+EufpaW1nHZG75+LUxnLKYjlwTA2cfiZiuzJrTlFGz/iFFP6hDldR86b5TrIzL ly6VlzRUmRF9gDKyLLSyp4xK1mgGYme0FIFyqiwAACaL2Qfc92ijeMRoN7QOGcfvdLaR lEqHxH09Ch0Hwnxc9W3l5TFHudtBXu5vYy2xuG8cGW8TrZyIndUIntsO1yGmswX3eZYq BLDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b="csolycW/"; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id s5si3192568plr.307.2019.03.27.16.07.19; Wed, 27 Mar 2019 16:07:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-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=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b="csolycW/"; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.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 8FFC96C376; Wed, 27 Mar 2019 23:07:16 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) by mail.openembedded.org (Postfix) with ESMTP id D47716C376 for ; Wed, 27 Mar 2019 23:07:14 +0000 (UTC) Received: by mail-wm1-f47.google.com with SMTP id z11so1667674wmi.0 for ; Wed, 27 Mar 2019 16:07:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id; bh=UJcIxH16Y5VYKi4mR67I6FD62BzkynTwGkSlKHGEjms=; b=csolycW/K+qDx1L6jycne7aDZAl/a938DYgbVMzUucLzb37fzb5IqqG9gAdSHgbBIo /O0/2MtQag/oEQB+tbO9zVlVmPspR3HNvnHXx3bNxwI/sfbNfTWYAKpzyNyy1Mztxznn 02x/KtT593h2uqpf+QdJMYFYo+F9ZxSDBQEUB3+kkOAIriwM0ur68FCIrmcAuI/zUERt CfG/uJWRe63wMQgZMNXj8DMLwPGFowZSm6WxQW5A8He9giqIOJQPRUSnXsHkB/RoM4WQ HWqZ8crFLlXeZmgd31D8X9ZFFpNNUkAVBd09oTBZj0JRRXsiIM8wd0k5WVbI8zrP06Z/ U91A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=UJcIxH16Y5VYKi4mR67I6FD62BzkynTwGkSlKHGEjms=; b=BpJS+ePlTkUvTZKE52FXQH1D5yGYz8ijussTCtIKLSITeNsWsLvnO6pdQTf5lnKw5g b+P+7+m8km4rpeGpHT5fJ8YSXwS9B4YfRkB/PfE4OJckil7K8azQXXIcEk1rhHd7egJJ LLGZaXJ9lQAk6h0k/uZxSclZkgUfuicPE24xw8UMv01UoKsgvS9QT0ohCFkgJ6lRzrvo Z+1JqJq73YMD3TbaEbv+vSq4tBJqMMccLm6/gDUCE/yGtLz2HkSOnBca0J/oeLlpabAH JfbkCx78fgRt5htD7WU5/iXaaUZcbGYx7NRpECXuR1YkrZSRNbiTf9tZcqfQvdCYZXtL BKmA== X-Gm-Message-State: APjAAAWuqUyCgR8MpujNJO8fR5ouNOayldw9ZeV1IwPnlHtU5LmUbm6Z UcFTcXWt6plr5j9UykODweHQ8wK4kPw= X-Received: by 2002:a1c:9609:: with SMTP id y9mr11322016wmd.27.1553728035283; Wed, 27 Mar 2019 16:07:15 -0700 (PDT) Received: from flashheart.burtonini.com (35.106.2.81.in-addr.arpa. [81.2.106.35]) by smtp.gmail.com with ESMTPSA id t24sm1263617wmi.10.2019.03.27.16.07.14 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Mar 2019 16:07:14 -0700 (PDT) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Wed, 27 Mar 2019 23:07:11 +0000 Message-Id: <20190327230712.4930-1-ross.burton@intel.com> X-Mailer: git-send-email 2.11.0 Subject: [OE-core] [PATCH 1/2] llvm: doesn't actually need pythonnative X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org LLVM doesn't actually need pythonnative, the host Python2 is sufficient but cmake's executable searching currently isn't reliable in cross-compilations. Convince cmake by setting PYTHON_EXECUTABLE to point at python2 in the HOSTTOOLS directory. Note that currently LLVM *needs* python2 currently: https://github.com/llvm-mirror/llvm/blob/master/CMakeLists.txt#L670 Signed-off-by: Ross Burton --- meta/recipes-devtools/llvm/llvm_git.bb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.11.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-devtools/llvm/llvm_git.bb b/meta/recipes-devtools/llvm/llvm_git.bb index d2ea927651d..31abadcace5 100644 --- a/meta/recipes-devtools/llvm/llvm_git.bb +++ b/meta/recipes-devtools/llvm/llvm_git.bb @@ -12,7 +12,7 @@ DEPENDS = "libffi libxml2 zlib ninja-native llvm-native" RDEPENDS_${PN}_append_class-target = " ncurses-terminfo" -inherit perlnative pythonnative cmake pkgconfig +inherit perlnative cmake pkgconfig PROVIDES += "llvm${PV}" @@ -74,6 +74,7 @@ EXTRA_OECMAKE += "-DLLVM_ENABLE_ASSERTIONS=OFF \ -DFFI_INCLUDE_DIR=$(pkg-config --variable=includedir libffi) \ -DLLVM_OPTIMIZED_TABLEGEN=ON \ -DLLVM_TARGETS_TO_BUILD='${LLVM_TARGETS}' \ + -DPYTHON_EXECUTABLE=${HOSTTOOLS_DIR}/python2 \ -G Ninja" EXTRA_OECMAKE_append_class-target = "\