From patchwork Thu Feb 13 05:52:29 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suniel Mahesh X-Patchwork-Id: 1237309 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.a=rsa-sha256 header.s=google header.b=Poyi3EUt; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48J5yD0ShFz9sPJ for ; Thu, 13 Feb 2020 17:21:56 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id CD93586C7E; Thu, 13 Feb 2020 06:21:53 +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 29pqWjGqJf5E; Thu, 13 Feb 2020 06:21:52 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id D892186CC5; Thu, 13 Feb 2020 06:21:52 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 184491BF2BB for ; Thu, 13 Feb 2020 06:21:51 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 146C287C9A for ; Thu, 13 Feb 2020 06:21:51 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uAcKgcm4FGMw for ; Thu, 13 Feb 2020 06:21:50 +0000 (UTC) X-Greylist: delayed 00:21:13 by SQLgrey-1.7.6 Received: from mail-oi1-f194.google.com (mail-oi1-f194.google.com [209.85.167.194]) by hemlock.osuosl.org (Postfix) with ESMTPS id 1B16A870A1 for ; Thu, 13 Feb 2020 06:21:50 +0000 (UTC) Received: by mail-oi1-f194.google.com with SMTP id p125so4660484oif.10 for ; Wed, 12 Feb 2020 22:21:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=n0Tk0Us2NBf9HXf8e0iWLqzsN4cqOMK7nAR8n/V8KnU=; b=Poyi3EUtPUv/YKCGMo+lVMvZDhOhzClVu/m7MPgNdJ+wS1ZHGfgK1Srbw+eVVlMdtm OP0RO/wZqer6Ydg7nWNYKo3AAJyfqshgfTQhkO/rB+ae2A5d52GogTk5RjRAxPW40fkh vy8MuUj5q2m/LBRv7zg94RTzMdEIJXnCJnZsY= 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=n0Tk0Us2NBf9HXf8e0iWLqzsN4cqOMK7nAR8n/V8KnU=; b=HOxwUGUVQwrJIoy5h04Qn5fDI3Ps0Xr8cN6TgTG3qCqhFSq7awTRGucpIidZK7cvnK xB0aoFd976FIpopVAAUsOIAAULIrh/euyBWOaqCoTV6Q5cK02jkEJkIl8Y/kP4LtCtYo ojPVLYbKXKclD/WvvgxClMvLY12j0VhEr1dHTQIMayv0KfKkZAnze/83jS/m80LRfNsL Puy/BV/b4id1G4cMKDVm0XvW496ut1CIaMx+0LmV91Pdle7lrpnWG7XisYlcvZR6F6bc IoJ/VynuvOh4YCKnYOL6+5765qbmFQEbnVODbpqoBfG7xIF+ARpm2C94EQXwaInXKfdr Tcjg== X-Gm-Message-State: APjAAAXWr2IBmvrI59Yly67c7HWFr7nUWuVad6aAK5jny9HzcVMniMGr b411dk6HNwVuQYlcL5iWLCpN0Wm/SDz3Yg== X-Google-Smtp-Source: APXvYqxMN6WDW6vNEn17PrTA3MpUrtckVnTs68/nH0TRjmSbaVQo4BowuY1P02cNDsFMBVPJES99Zg== X-Received: by 2002:a17:90a:8806:: with SMTP id s6mr2981267pjn.141.1581573203370; Wed, 12 Feb 2020 21:53:23 -0800 (PST) Received: from localhost.localdomain ([49.204.228.83]) by smtp.gmail.com with ESMTPSA id l29sm1038075pgb.86.2020.02.12.21.53.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 12 Feb 2020 21:53:22 -0800 (PST) From: sunil@amarulasolutions.com To: buildroot@buildroot.org Date: Thu, 13 Feb 2020 11:22:29 +0530 Message-Id: <1581573151-18943-3-git-send-email-sunil@amarulasolutions.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1581573151-18943-1-git-send-email-sunil@amarulasolutions.com> References: <1581573151-18943-1-git-send-email-sunil@amarulasolutions.com> Subject: [Buildroot] [PATCH 2/4] package/arm-gnu-a-toolchain: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter@korsgaard.com, jagan@amarulasolutions.com, thomas.petazzoni@bootlin.com, Suniel Mahesh MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Suniel Mahesh arm trusted firmware requires a bare metal toolchain for its build. Add pre-built cross-compilation ARM-A bare metal toolchain for Arm Cortex-A family processors to avoid the following build error. make[3]: arm-none-eabi-gcc: Command not found pre-built bate metal ARM GNU-A toolchain installs into the host file system folder /opt/gcc-arm-none-eabi. https://developer.arm.com/-/media/Files/downloads/gnu-a/9.2-2019.12/binrel/gcc-arm-9.2-2019.12-x86_64-arm-none-eabi.tar.xz Signed-off-by: Suniel Mahesh --- .../arm-gnu-a-toolchain/arm-gnu-a-toolchain.hash | 3 +++ package/arm-gnu-a-toolchain/arm-gnu-a-toolchain.mk | 27 ++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 package/arm-gnu-a-toolchain/arm-gnu-a-toolchain.hash create mode 100644 package/arm-gnu-a-toolchain/arm-gnu-a-toolchain.mk diff --git a/package/arm-gnu-a-toolchain/arm-gnu-a-toolchain.hash b/package/arm-gnu-a-toolchain/arm-gnu-a-toolchain.hash new file mode 100644 index 0000000..aa0a23a --- /dev/null +++ b/package/arm-gnu-a-toolchain/arm-gnu-a-toolchain.hash @@ -0,0 +1,3 @@ +# Locally calculated +#sha256 bb17109f0ee697254a5d4ae6e5e01440e3ea8f0277f2e8169bf95d07c7d5fe69 gcc-arm-none-eabi-7-2018-q2-update-linux.tar.bz2 +sha256 ac952d89ae0fc3543e81099e7d34917efc621f5def112eee843fd1ce755eca8c gcc-arm-9.2-2019.12-x86_64-arm-none-eabi.tar.xz diff --git a/package/arm-gnu-a-toolchain/arm-gnu-a-toolchain.mk b/package/arm-gnu-a-toolchain/arm-gnu-a-toolchain.mk new file mode 100644 index 0000000..74e0bee --- /dev/null +++ b/package/arm-gnu-a-toolchain/arm-gnu-a-toolchain.mk @@ -0,0 +1,27 @@ +################################################################################ +# +# arm-gnu-a-toolchain +# +################################################################################ + +ARM_GNU_A_TOOLCHAIN_SITE = https://developer.arm.com/-/media/Files/downloads/gnu-a/9.2-2019.12/binrel +ARM_GNU_A_TOOLCHAIN_VERSION = 9.2-2019.12 +ARM_GNU_A_TOOLCHAIN_SOURCE = gcc-arm-$(ARM_GNU_A_TOOLCHAIN_VERSION)-x86_64-arm-none-eabi.tar.xz +ARM_GNU_A_TOOLCHAIN_LICENSE = GPL-3.0+ +ARM_GNU_A_TOOLCHAIN_LICENSE_FILES = + +HOST_ARM_GNU_A_TOOLCHAIN_INSTALL_DIR = $(HOST_DIR)/opt/gcc-arm-none-eabi + +define HOST_ARM_GNU_A_TOOLCHAIN_INSTALL_CMDS + rm -rf $(HOST_ARM_GNU_A_TOOLCHAIN_INSTALL_DIR) + mkdir -p $(HOST_ARM_GNU_A_TOOLCHAIN_INSTALL_DIR) + cp -rf $(@D)/* $(HOST_ARM_GNU_A_TOOLCHAIN_INSTALL_DIR) + + cd $(HOST_DIR)/bin && \ + for i in $(HOST_DIR)/opt/gcc-arm-none-eabi/bin/*; do \ + ln -sf $$(echo $$i | sed 's%^$(HOST_DIR)%..%') .; \ + done + +endef + +$(eval $(host-generic-package))