From patchwork Mon Aug 20 18:59:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 144658 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp4325253ljj; Mon, 20 Aug 2018 12:00:40 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwXz1XfBaMY3YJzP7O1JnJrX/F8g0hDkXdown1y8ZEUA95qgR2rhuaJYcCcsnc0XcGIMqkx X-Received: by 2002:a63:d613:: with SMTP id q19-v6mr44249242pgg.327.1534791640285; Mon, 20 Aug 2018 12:00:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534791640; cv=none; d=google.com; s=arc-20160816; b=ACfMhfUZyKMF+YaoJGua6amPrAXhdpBs4E4cW5j+SRkt8agvCauNhb18RJtaCVN5Sx 5qUzSUteZa1TyU9Bl2WOWWAUPDTiNB9I+PrjV1S/OaA1TLbd7LRmELWqb47x3hIda8Tm smC+CuiW+C+OABD6Bwl5oDicjTV5V3Ok/LnVqnTSnc+QG4bJoHhqohnF2aoTXmFNy11J WZzSaYy11QAOoI86twuYOr65IbOPy89WXbk72sysOL/4ow05sU/Pppqv3B2t6K4KlJAD Wmio4+TWWXbOgDJ3ZFmotiB1Elhg/jrrW+BvJ3C1vpPqL3cH6T/TozXUzYaZQ0Gca53s 6BJQ== 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:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=H0rubBsQ0IQBDP7uHgR1cAtxpz3Dj31QNPpwxQ9ZA8E=; b=T0CxOEVcR3YdsmlNWI6l8YNbd7JlDKO3diq6P9YNRMlKyXLy+wXN99eTMylg81F9Kb AjZsZ2rWAKZfdJZOqP7bSi/DQt/SoMQOX2iRtQauKXcU4EdtQ1bAQywNFGyYK3oDdyPE VeeCG1cjDvB/yjC1xRnHujhqtaP7ZADN4cwvBp4rlvJP0J0Twj0N0Kv+izDYw6aawZ7I B6jO+e2thOPxr3EvSrJPQLDgWSwij9LhmIRZ1//iDHzHHXPBIRPSCwZ2QVm04qQzaXKR YT567iUDjm/TBq7eRf3FISRMtnBrNNOT4+jOInYIcFoUe/SVF+ZxH00rcGakCd24i4Hh czgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=f2hG+TQ4; 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=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 c6-v6si9655066pgd.81.2018.08.20.12.00.39; Mon, 20 Aug 2018 12:00:40 -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=@gmail.com header.s=20161025 header.b=f2hG+TQ4; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from layers.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 4B3E37913B; Mon, 20 Aug 2018 19:00:23 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pf1-f174.google.com (mail-pf1-f174.google.com [209.85.210.174]) by mail.openembedded.org (Postfix) with ESMTP id 05AE579133 for ; Mon, 20 Aug 2018 19:00:02 +0000 (UTC) Received: by mail-pf1-f174.google.com with SMTP id u24-v6so7212136pfn.13 for ; Mon, 20 Aug 2018 12:00:03 -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; bh=hlOu/LqJXrQmznLLLaunjMMCkg8wJHX/AM4qVPbpTL8=; b=f2hG+TQ4L7Hqi6aZRb30l8pavInD3mvT2/VYU8q+2WLhxrM9Lfyz+bV8pSTbAp9y23 Kxf8SrljfSi4paLVUYFBi2sV3mKM9Rj0Lu7tAL9lBb0j1DUlTYNkvzlebYnUA/h2HdGr nHu499YNr8nuN+Su/O5eat2kGSslX1gFHS3iAgO71UadsZic9ZIpyW3ezaXllykXthqc ee1dC37Fgu/6VxwQhc+YER1J54ge485+9GCBwbCX2zrnSJQ/FG5KExcGOP9ZreXGdzJP HfZHyZwFRHtK7SCR6FSmMp6x18E8ShoN3pPQnMP4DaF8x+mxfhKrj6PldBW7hDehflf5 u9DQ== 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; bh=hlOu/LqJXrQmznLLLaunjMMCkg8wJHX/AM4qVPbpTL8=; b=ouOXAy54dopZkZQ/aZBPjTRsJLeRyfJ0+BH6VFJGNVfh0IxbGefkGMxY39lvsTg+/p X+mFgb4r9/tGlIP8QlqleBh/t0DncR73XJWhjFF8iX/furANzTzecWo9J3754aw5JSP0 odei7YKfrCwkUysXBN9dgjiq0dBPIEua0SfeShuaBF14qLhtpi6XP1fcigMfhqF4gPXk E49ZqBRfGssIrp80U9ZPpUrh/1Maaf/1vyQ+7LS0WR+a3JF9DLRMELNX8fhv4TXeVZ69 iYKXAqY/QiFM1n62V29RAEHFXa4uRJrTb+ykKLsAU4+WBGDEEa5MpwwJBwzVoiDiSbuk xujQ== X-Gm-Message-State: AOUpUlFd5sDugiQwMLnH+SipiXhgNna/3668QKDgMIs8CwU46K5Y5cPt zJbWGYGCUxZcahRx97v8KQuIuW15 X-Received: by 2002:a62:2ac8:: with SMTP id q191-v6mr49555902pfq.139.1534791602912; Mon, 20 Aug 2018 12:00:02 -0700 (PDT) Received: from localhost.localdomain ([2601:646:877f:9499::4add]) by smtp.gmail.com with ESMTPSA id j27-v6sm18773223pfj.91.2018.08.20.12.00.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Aug 2018 12:00:02 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Mon, 20 Aug 2018 11:59:51 -0700 Message-Id: X-Mailer: git-send-email 2.18.0 In-Reply-To: References: Subject: [OE-core] [PATCH 5/5] llvm: Use HOST_ARCH in LLVM_TARGETS_TO_BUILD for builds 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_TARGETS_TO_BUILD is needed to represent HOST_ARCH for builds and target specific additions should use class-target override Signed-off-by: Khem Raj --- meta/recipes-devtools/llvm/llvm_git.bb | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) -- 2.18.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 d853d4151d..df7c1dddd3 100644 --- a/meta/recipes-devtools/llvm/llvm_git.bb +++ b/meta/recipes-devtools/llvm/llvm_git.bb @@ -44,14 +44,15 @@ def get_llvm_arch(bb, d, arch_var): else: raise bb.parse.SkipRecipe("Cannot map '%s' to a supported LLVM architecture" % a) -def get_llvm_target_arch(bb, d): - return get_llvm_arch(bb, d, 'TARGET_ARCH') +def get_llvm_host_arch(bb, d): + return get_llvm_arch(bb, d, 'HOST_ARCH') + # # Default to build all OE-Core supported target arches (user overridable). # -LLVM_TARGETS ?= "${@get_llvm_target_arch(bb, d)}" -LLVM_TARGETS_prepend_x86 = "AMDGPU;" -LLVM_TARGETS_prepend_x86-64 = "AMDGPU;" +LLVM_TARGETS ?= "${@get_llvm_host_arch(bb, d)}" +LLVM_TARGETS_prepend_class-target_x86 = "AMDGPU;" +LLVM_TARGETS_prepend_class-target_x86-64 = "AMDGPU;" ARM_INSTRUCTION_SET_armv5 = "arm" ARM_INSTRUCTION_SET_armv4t = "arm"