From patchwork Sun Dec 29 18:44:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 182591 Delivered-To: patch@linaro.org Received: by 2002:a92:815a:0:0:0:0:0 with SMTP id e87csp5506560ild; Sun, 29 Dec 2019 10:45:24 -0800 (PST) X-Google-Smtp-Source: APXvYqyj4nQvaIy3On72YJikTfFaQ+r8H9ryvQ0C+kSkqGwLhZxqL/RB+o5db98qI65wl/7qs9KG X-Received: by 2002:a17:902:8ec4:: with SMTP id x4mr49397015plo.234.1577645124153; Sun, 29 Dec 2019 10:45:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577645124; cv=none; d=google.com; s=arc-20160816; b=y8ERKR0bjec3aCMNqseF9xtaNTidYC473nFOhiC5QJXGSNvLfv9jjVesPO2MqCBdgB gRdn21C15Z/TQsdDfjlnZqncDryZI8UB7yPDaGXme5odx2xdBnwWLxhrsZJf8lZ+l702 yoEcHSuMcVJ5NMrxTzGNh05Njdr7FDXLGkNOOLkb/438a1RdH+67woBO7Xpc7mIZ9fBb FOo1nXrerOEfShq0YQOCC1r+AcjqrtLdSPHEyjYwRghI/OKl1HP4qeBhpHqV7nYAvt7x LPMqH3tL0lpQu1jqaL2Zjriwssi9VdeSGEydwvxJhHD1El9IINwiGuz3PIXyd6Z6zWlo 2lHw== 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:references:in-reply-to:message-id:date:to:from :dkim-signature:delivered-to; bh=P0tL35cdkbARCA6FlcUXvA/m+XmWqizdP0N04A0esSo=; b=dD6VDOB7gOrTy1bN93CIuK3119uHMF0ZgPnfr7J4Ps2yYo+kloG96sPdYDjRLN8fb4 H9ZDBa6IVzVA0bKaZuqAWfMft7csIhww4HiTFtqp3X8h4hLIg7v+Om5iGCYPdL8DK4vf 1iAer07HNN1Oq0N4CuRNoOXY+M86Mi1bZi6WVAiX5p4ThBxeubem7d67nNuqfS7zvhoy f334tc/vhbtsvNH8aw3dJgFxeZkMEfLi+SCmAecBPStKj6jMC7KI2q7910p/qZe5LYsL T+pScPA/bkPsp5mdrOrWrJiafFFHmJMethI1JxuDA3RD8KauC3fwq8otuRvIDy0IwuAB FFUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=aSmxQMec; 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 190si35456184pga.16.2019.12.29.10.45.23; Sun, 29 Dec 2019 10:45:24 -0800 (PST) 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=aSmxQMec; 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 ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 753697F8D3; Sun, 29 Dec 2019 18:44:54 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pl1-f196.google.com (mail-pl1-f196.google.com [209.85.214.196]) by mail.openembedded.org (Postfix) with ESMTP id 99BE67F887 for ; Sun, 29 Dec 2019 18:44:33 +0000 (UTC) Received: by mail-pl1-f196.google.com with SMTP id c13so13816880pls.0 for ; Sun, 29 Dec 2019 10:44:35 -0800 (PST) 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=6NNHeqLa3slz23Ly9y3mCzqLipV4Ksf7xe0I0ZH7+FE=; b=aSmxQMecSGNvtMnH7V2GpZw8zyqZQg9LQgLhImHeAm/GMGEeaf4UGCqT8L/C+XsM4l tiysvfn4UCKZmPmaqhFKuCuw4S4oGhRQZ0gdHqcuPjwDzlr9eNxCapWUMUK4/0Dfpxhj ZSTjnigOE33XSP7cLy/4tVdcYMNpJxC+eqFIVkU+447wlo+AIPnaDhQFZZuCGkCx5fYC JlSeNw8yl7vhsPNcTIX68kyYJNlMj3aHNlhU2826ej777L2P+NHNq8egOQw3BCqHbleb 14ui3zmeTdKAI1N8h/fhr55O5kUiAAvRF/ZuHeAr613d9Z9fSD7oLRf9o7K3f+qbO00A 1Bzw== 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=6NNHeqLa3slz23Ly9y3mCzqLipV4Ksf7xe0I0ZH7+FE=; b=ggeFATGHM5Q2egUZQgwYll3JSpRSuAbqlNJg2s7tTHpi4TNBrKFOfwglpG2Kklj+7w ElY/5ms/yDkX9xTMhCZqJYvCEuu05VJR3eTuxP9OPpn5iKDkRqU25DHOefadGTltITks CT4uFjWLBWZTPauBjcgsGv4Y1jNJl3Ss6fB+PLSb0XW1ERsDUzMP/yJ/VVrMHnxPSP1Z q3USwm8m35akbbRZI37mRpD1CkzFu4ZgjHRYTcW6dKsNpaWscN9EiZWAYkitnU/NHVYE LYcyAOMFhp0HjyL+qXokT2p3ztzMJm5IDe4KIcdYWTU0koNyeFkC/+DQ9rIRG+u6GmPH L37Q== X-Gm-Message-State: APjAAAWzTGYKHQwoyrJzofi8THk9IK8S02opazaFLXZSOkGbbt+V3WaG j45Phh8zpe9PdvtDVTnmgOMcbwhk9bg= X-Received: by 2002:a17:90b:46cf:: with SMTP id jx15mr42333043pjb.2.1577645074621; Sun, 29 Dec 2019 10:44:34 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:9200:4e0::2f83]) by smtp.gmail.com with ESMTPSA id bo19sm21257085pjb.25.2019.12.29.10.44.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Dec 2019 10:44:33 -0800 (PST) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Sun, 29 Dec 2019 10:44:03 -0800 Message-Id: <20191229184415.19514-7-raj.khem@gmail.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191229184415.19514-1-raj.khem@gmail.com> References: <20191229184415.19514-1-raj.khem@gmail.com> MIME-Version: 1.0 Subject: [OE-core] [PATCH 07/19] powerpc, powerpc64: Append little-endianness to tune arch 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: , Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org This helps in constructing right arch for target tuple name for Little-endian ppc Signed-off-by: Khem Raj --- meta/conf/machine/include/powerpc/arch-powerpc.inc | 3 ++- meta/conf/machine/include/powerpc/arch-powerpc64.inc | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) -- 2.24.1 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/conf/machine/include/powerpc/arch-powerpc.inc b/meta/conf/machine/include/powerpc/arch-powerpc.inc index 8c0c943044..ef18e9ac8b 100644 --- a/meta/conf/machine/include/powerpc/arch-powerpc.inc +++ b/meta/conf/machine/include/powerpc/arch-powerpc.inc @@ -15,7 +15,8 @@ TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "bigendian", " -mbig-endia TUNEVALID[m32] = "Power ELF32 standard ABI" TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'm32', ' -m32', '', d)}" -TUNE_ARCH .= "${@bb.utils.contains('TUNE_FEATURES', 'm32', 'powerpc', '', d)}" +TUNE_ARCH .= "${@bb.utils.contains('TUNE_FEATURES', 'm32', 'powerpc${ENDIAN_SFX}', '', d)}" +ENDIAN_SFX = "${@bb.utils.contains('TUNE_FEATURES', 'bigendian', '', 'le', d)}" TUNEVALID[fpu-hard] = "Use hardware FPU." TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'fpu-hard', ' -mhard-float', '', d)}" diff --git a/meta/conf/machine/include/powerpc/arch-powerpc64.inc b/meta/conf/machine/include/powerpc/arch-powerpc64.inc index 4bc5983087..cf5c3ef8e6 100644 --- a/meta/conf/machine/include/powerpc/arch-powerpc64.inc +++ b/meta/conf/machine/include/powerpc/arch-powerpc64.inc @@ -5,7 +5,7 @@ require conf/machine/include/powerpc/arch-powerpc.inc TUNEVALID[m64] = "Power ELF64 standard ABI" TUNECONFLICTS[m64] = "m32 nf" TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'm64', ' -m64', '', d)}" -TUNE_ARCH .= "${@bb.utils.contains('TUNE_FEATURES', [ 'm64' ], 'powerpc64', '', d)}" +TUNE_ARCH .= "${@bb.utils.contains('TUNE_FEATURES', [ 'm64' ], 'powerpc64${ENDIAN_SFX}', '', d)}" # musl only supports elfv2 ABI for ppc64 TUNE_CCARGS .= "${@['', ' -mabi=elfv2']['libc-musl' in d.getVar('OVERRIDES').split(':')]}"