From patchwork Tue Mar 14 18:30:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Filippov X-Patchwork-Id: 738858 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3vjNc60WdCz9s1h for ; Wed, 15 Mar 2017 05:31:34 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="feE4RBQm"; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 4825D88893; Tue, 14 Mar 2017 18:31:29 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ypxV3URAVUr6; Tue, 14 Mar 2017 18:31:27 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id AC175888D6; Tue, 14 Mar 2017 18:31:27 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 20EAA1BFCC3 for ; Tue, 14 Mar 2017 18:31:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 1B84C898D8 for ; Tue, 14 Mar 2017 18:31:23 +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 TIIa2UcFTG6P for ; Tue, 14 Mar 2017 18:31:22 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pg0-f66.google.com (mail-pg0-f66.google.com [74.125.83.66]) by whitealder.osuosl.org (Postfix) with ESMTPS id BE834898B3 for ; Tue, 14 Mar 2017 18:31:22 +0000 (UTC) Received: by mail-pg0-f66.google.com with SMTP id m5so1359850pgk.3 for ; Tue, 14 Mar 2017 11:31:22 -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=855yigheOjd2mvT21F7pmx31HrdbC/3LmRjcVxJhJoA=; b=feE4RBQm/yBDxT/zKiyr22VInbGsKDETKD+2y6h9iPpsHdPnEUMM2zc5uBF5Pk0XGp /6QEGnXEGVEM3Fvvj+1Llm0lX2W9b0vzwJwwdbLLdfG4WQ3Fz6sUtIAg5kF0MmASg3tQ SVMaVhIy+UHgSa7xmBAgcccKgW6fUL8bLCHP6lSNnP7a8le6WrhmncGgkNcD6ONcf5dj 7BDHwSgNmWHCPKjdhuL4twdZhkBnlizWZXvxua2URfsTCnQQBDq2fhspxSQjhZ35MYsZ 0VOMRzQ5bn3TPdirGVnEgAAQMgVyr94HoHG1pcge/NOj+bbHjl1/Xrty0D27PkRIU1Rv nsUQ== 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=855yigheOjd2mvT21F7pmx31HrdbC/3LmRjcVxJhJoA=; b=QJ74XM+bTy6Q7suNXT3VaPQchqRZPiyRBt74bJb641AMONiT+Aj6t77TUHPh46hNe0 6nQQdOXaxSNF75U6wAv+NZuqSYjMHhHmvZn6ez2FjrVAPrU4C//TrVb3yvHqnGN8mA8B CDl5J1ch/udywZZ0K/U/12shhnA04uFF/1B8M8wM6Bz1Zqdp4XetxWSCbbg7FuhMmJFW sEH0CtX8RyWqVXBg7pSihZIsXcrWG+1fpG0s3dgFrB9CIzWys3m4q0v0GvgMa2DVdmhQ ToOPKyShEURLRARhgKD/+MmR1AkNAuqEAcD9kvgl6ZEdjnKLpIwbVhh85986sme9HmoV qYvg== X-Gm-Message-State: AMke39kck3ARlbTglusuZOCMbz4VdhWJ1evT10kfkXb1hlpOiB9d+0raEzX8hlfPCvxMFg== X-Received: by 10.84.177.164 with SMTP id x33mr57204991plb.75.1489516282147; Tue, 14 Mar 2017 11:31:22 -0700 (PDT) Received: from octofox.metropolis (corp.Cadence.COM. [158.140.1.28]) by smtp.gmail.com with ESMTPSA id e13sm40192470pgn.38.2017.03.14.11.31.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 14 Mar 2017 11:31:21 -0700 (PDT) From: Max Filippov To: buildroot@uclibc.org Date: Tue, 14 Mar 2017 11:30:31 -0700 Message-Id: <1489516252-3803-3-git-send-email-jcmvbkbc@gmail.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1489516252-3803-1-git-send-email-jcmvbkbc@gmail.com> References: <1489516252-3803-1-git-send-email-jcmvbkbc@gmail.com> Cc: Thomas Petazzoni , "Yann E. MORIN" Subject: [Buildroot] [PATCH 02/23] arch/xtensa: add definitions for the Xtensa overlay 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" From: "Yann E. MORIN" Currently, we have four packages that need to use the Xtensa overlay: binutils, gcc-initial, gcc-final and gdb. However, they all use three different ways to check for, and use the overlay. Furthermore, two of them define the same variable: XTENSA_CORE_NAME is defined both by binutils and gdb In order to sanitise that, have the Xtensa architecture export the appropriate variables: the name of the core and the path to the overlay tarball. Packages can then check and use those variables. Signed-off-by: "Yann E. MORIN" Cc: Thomas Petazzoni Signed-off-by: Max Filippov --- arch/arch.mk.xtensa | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 arch/arch.mk.xtensa diff --git a/arch/arch.mk.xtensa b/arch/arch.mk.xtensa new file mode 100644 index 0000000..7c8beb1 --- /dev/null +++ b/arch/arch.mk.xtensa @@ -0,0 +1,15 @@ +################################################################################ +# Those two variables can be used by packages that need to extract the overlay. +# +# ARCH_XTENSA_CORE_NAME is the name of the Xtensa core; empty if none or the +# standard 'fsf' core. +# ARCH_XTENSA_OVERLAY_TAR is the path to the overlay tarball; only valid when +# ARCH_XTENSA_CORE_NAME is not empty. +# +# Example: +# ifneq ($(ARCH_XTENSA_CORE_NAME),) +# tar xf $(ARCH_XTENSA_OVERLAY_TAR) -C $(@D) --strip-components=1 gcc +# endif +################################################################################ +ARCH_XTENSA_CORE_NAME = $(call qstrip,$(BR2_XTENSA_CORE_NAME)) +ARCH_XTENSA_OVERLAY_TAR = $(call qstrip,$(BR2_XTENSA_OVERLAY_DIR))/xtensa_$(ARCH_XTENSA_CORE_NAME).tar