From patchwork Thu Mar 19 10:46:50 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suniel Mahesh X-Patchwork-Id: 1258106 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.133; helo=hemlock.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=fj8bpA5V; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48jkBx4Wk1z9sRY for ; Thu, 19 Mar 2020 21:47:53 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 2323588350; Thu, 19 Mar 2020 10:47:52 +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 78HAMOljKjOC; Thu, 19 Mar 2020 10:47:51 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 3D5BF8832F; Thu, 19 Mar 2020 10:47:51 +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 EB02F1BF2EF for ; Thu, 19 Mar 2020 10:47:49 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id E281987DA4 for ; Thu, 19 Mar 2020 10:47:49 +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 BjfCWL8mFYvZ for ; Thu, 19 Mar 2020 10:47:46 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pj1-f67.google.com (mail-pj1-f67.google.com [209.85.216.67]) by whitealder.osuosl.org (Postfix) with ESMTPS id 1E03387D81 for ; Thu, 19 Mar 2020 10:47:46 +0000 (UTC) Received: by mail-pj1-f67.google.com with SMTP id bo3so840244pjb.5 for ; Thu, 19 Mar 2020 03:47:46 -0700 (PDT) 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=pOy0PGz97fhqe+kGHcWRilU1CkNQhqjXjSjnq9lOxPE=; b=fj8bpA5V8hwnz+reZziy87XFbXdde4fcgMFUxkWSNFRke8N0RQFYrVOhkYNgP0tr3s GoINE69AyCf3zr1m3q/AUilyhW0osGafYYjCp0tgUat29S/1/pU1Uzw3CU0TRNUzYwKT 8IOEN+DPM90OThksHcBpDgcS022WeFrbioJMo= 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=pOy0PGz97fhqe+kGHcWRilU1CkNQhqjXjSjnq9lOxPE=; b=U8FVK/UOCSuMMKPTNnQscYoR6bSV6AMvweXpgRcrNoUY34AxOHKjVvsf/nrc4LweEa Oqfx7hUzCTAdXRaeJWR7jbjOdlBC7Y9B3cpTf5L+3bg+88BMx+k9BjxmVX4VJfMg7Lch 7anTJK2aR2/xzVJxf4Vcdzg2pJGWO9Qz40NbbZpnse9ev+l29yQaVOeHLEhZlQYPeKcz NUpGBkxraNUrmWgyN9IbCoOMzTHNPQWmtmwTpd7Ss7NY5MeTd358C8fMgm0uUlT0E8be UhY8PGwD1sXN2N/RJGDE/yCFyvC1ZGc28iYMflJ+1ueliElrYwZE5VtDdbBg+zMtKFB/ /Sfw== X-Gm-Message-State: ANhLgQ1dZSL27UmCA/9EnolZlEbz57s3oSnFHyFKK+v2aH17iecb0Hz3 c6VsP+cSJEEggT/cUQHM0oESZ5Ah1us= X-Google-Smtp-Source: ADFU+vvuy0f8e6Cjlc5B5IhUZvTfQ1ABASC/pXAeSdqI0sXmPOaetKsvAsBsoinepV11WmxdTNb1tw== X-Received: by 2002:a17:90a:604f:: with SMTP id h15mr2931235pjm.183.1584614865304; Thu, 19 Mar 2020 03:47:45 -0700 (PDT) Received: from localhost.localdomain ([183.83.203.61]) by smtp.gmail.com with ESMTPSA id jz19sm1681443pjb.48.2020.03.19.03.47.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 19 Mar 2020 03:47:44 -0700 (PDT) From: sunil@amarulasolutions.com To: buildroot@buildroot.org Date: Thu, 19 Mar 2020 16:16:50 +0530 Message-Id: <1584614812-20061-3-git-send-email-sunil@amarulasolutions.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1584614812-20061-1-git-send-email-sunil@amarulasolutions.com> References: <20200318215216.187d07bd@windsurf.home> <1584614812-20061-1-git-send-email-sunil@amarulasolutions.com> Subject: [Buildroot] [PATCH v4 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: thomas.petazzoni@bootlin.com, peter@korsgaard.com, jagan@amarulasolutions.com, heiko.thiery@gmail.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 to build Rockchip rk3399 platform and rk3399 has a cortex-m0 core. 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 --- Changes for v4: - Upated DEVELOPERS file as suggested by Heiko Thiery and Thomas Pettazoni Changes for v3: - no change Changes for v2: - Added lines in description regarding why bare metal toolchain is required, as suggested by Jagan and pointed out by Sergey DEVELOPERS | 3 +++ .../arm-gnu-a-toolchain/arm-gnu-a-toolchain.hash | 3 +++ package/arm-gnu-a-toolchain/arm-gnu-a-toolchain.mk | 27 ++++++++++++++++++++++ 3 files changed, 33 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/DEVELOPERS b/DEVELOPERS index 98220a9..a90ad78 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -2370,6 +2370,9 @@ N: Steven Noonan F: package/hwloc/ F: package/powertop/ +N: Suniel Mahesh +F: package/arm-gnu-a-toolchain + N: Sven Haardiek F: package/lcdproc/ F: package/python-influxdb/ 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..55dce4d --- /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))