From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 4M6FFpVuZmRggQEASxT56A (envelope-from ) for ; Thu, 18 May 2023 20:29:41 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id MEg/FpVuZmQTaAAAauVa8A (envelope-from ) for ; Thu, 18 May 2023 20:29:41 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 1C3BA2FBA5 for ; Thu, 18 May 2023 20:29:41 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pziN8-0005IH-Mk; Thu, 18 May 2023 14:29:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pziN6-0005Fk-6i for guix-patches@gnu.org; Thu, 18 May 2023 14:29:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pziN5-0003XT-LV for guix-patches@gnu.org; Thu, 18 May 2023 14:29:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pziN5-0002l7-Gs for guix-patches@gnu.org; Thu, 18 May 2023 14:29:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63576] [PATCH v1 3/4] gnu: Add aarch64-none-elf-newlib. Resent-From: Denis 'GNUtoo' Carikli Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 18 May 2023 18:29:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63576 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 63576@debbugs.gnu.org Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= , Efraim Flashner , Denis 'GNUtoo' Carikli Received: via spool by 63576-submit@debbugs.gnu.org id=B63576.168443452610561 (code B ref 63576); Thu, 18 May 2023 18:29:03 +0000 Received: (at 63576) by debbugs.gnu.org; 18 May 2023 18:28:46 +0000 Received: from localhost ([127.0.0.1]:54517 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pziMn-0002kA-Cn for submit@debbugs.gnu.org; Thu, 18 May 2023 14:28:45 -0400 Received: from cyberdimension.org ([80.67.179.20]:34922 helo=gnutoo.cyberdimension.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pziMj-0002jY-Be for 63576@debbugs.gnu.org; Thu, 18 May 2023 14:28:42 -0400 Received: from gnutoo.cyberdimension.org (localhost [127.0.0.1]) by cyberdimension.org (OpenSMTPD) with ESMTP id 27e2c094; Thu, 18 May 2023 18:28:37 +0000 (UTC) Received: from localhost.localdomain (localhost [::1]) by gnutoo.cyberdimension.org (OpenSMTPD) with ESMTP id 5a965427; Thu, 18 May 2023 18:28:36 +0000 (UTC) From: Denis 'GNUtoo' Carikli Date: Thu, 18 May 2023 20:28:13 +0200 Message-Id: <20230518182814.15881-3-GNUtoo@cyberdimension.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230518182814.15881-1-GNUtoo@cyberdimension.org> References: <20230518182814.15881-1-GNUtoo@cyberdimension.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1684434581; a=rsa-sha256; cv=none; b=j2JpQ6cIX7dvJzgR4T8HLCTkjYwibIh7r2gKZTgW5aiapY+3F6u0+bbu75MLC4JOYXotaD Apxc7bsJIM5dzhMX0oT3dSTPT/+Q03nE04QgLyD4NB9+77Af00hQRphLCNbE/m5RD/N0HT sG9Lyq7LrXhHQwgoaPBKRIOQT/n7tDrZXH3sGOOcLPKutwDj4k/NqmZ2kkwX6lvvGvyOpx asO9vBkavFZwmeQcNpeQm4eRWGc4FznZojbqyGM5ff+dA2lih/VQRRCyNESUDaImcj9fj+ wWHj6zOFp7DWrgRP4WyQ8gVAyvkS3vGakZiW1B9C0Fa2n0davScqsKhPTOwRZg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1684434581; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=tU2Gdf9gaDoP4t9Pb4QGwEI4bsWrUkOy4XVV1ej2/RQ=; b=afCyb983QStln/geo671jFWLyoaer4CPQQMDwjASj2Me1MvFzd151boRppeYy2+ZbXuGgy 0zLwX2K/2MeCIpR2HwS8eX1tOEjOvBNZSmRzJBYzdeYbE/nj9mEQBJQpngKwrG0rM7TuzA ZNOMbbczEV26M7xCz0+M0TtYj009Q2GLBhElReF4LHsZ9qYpsO04gR/4Ed2c5gzQrZO9hI YIrnEyhDU/iCRzvdaDCxXUaA7nNjQZUaCiPDsXMMzW2l4ElV0H83PuD9h8nNoksEDc+N4B srTQUQ3EIADT1NYAE5VPbBMMKXqdR/8Fauq77BELkp/vFy6FFnlBkniiYuVWjw== X-Migadu-Spam-Score: -0.11 X-Spam-Score: -0.11 X-Migadu-Queue-Id: 1C3BA2FBA5 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-TUID: RLEj/WzHDgCb * gnu/packages/aarch64-none-elf-toolchain.scm (aarch64-none-elf-newlib): New variable. --- gnu/packages/aarch64-none-elf-toolchain.scm | 49 ++++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) diff --git a/gnu/packages/aarch64-none-elf-toolchain.scm b/gnu/packages/aarch64-none-elf-toolchain.scm index 88a2abb1f9..9863e65dad 100644 --- a/gnu/packages/aarch64-none-elf-toolchain.scm +++ b/gnu/packages/aarch64-none-elf-toolchain.scm @@ -17,11 +17,15 @@ ;;; along with GNU Guix. If not, see . (define-module (gnu packages aarch64-none-elf-toolchain) + #:use-module ((guix licenses) #:prefix license:) #:use-module (guix gexp) #:use-module (guix utils) + #:use-module (guix download) #:use-module (guix packages) + #:use-module (guix build-system gnu) #:use-module (gnu packages cross-base) - #:use-module (gnu packages gcc)) + #:use-module (gnu packages gcc) + #:use-module (gnu packages texinfo)) (define-public aarch64-none-elf-binutils (package @@ -81,3 +85,46 @@ (define aarch64-none-elf-gcc (native-inputs `(("gcc" ,gcc) ,@(package-native-inputs xgcc)))))) + +(define-public aarch64-none-elf-newlib + (package + (name "aarch64-none-elf-newlib") + (version "2.4.0") + (source (origin + (method url-fetch) + (uri (string-append "ftp://sourceware.org/pub/newlib/newlib-" + version ".tar.gz")) + (sha256 + (base32 + "01i7qllwicf05vsvh39qj7qp5fdifpvvky0x95hjq39mbqiksnsl")))) + (build-system gnu-build-system) + (arguments + `(#:out-of-source? #t + ;; The configure flags are identical to the flags used by the "GCC ARM + ;; embedded" project. + #:configure-flags '("--target=aarch64-none-elf" + "--enable-newlib-io-long-long" + "--enable-newlib-register-fini" + "--disable-newlib-supplied-syscalls" + "--disable-nls") + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'fix-references-to-/bin/sh + (lambda _ + (substitute* '("libgloss/aarch64/cpu-init/Makefile.in" + "libgloss/aarch64/Makefile.in" + "libgloss/libnosys/Makefile.in" + "libgloss/Makefile.in") + (("/bin/sh") (which "sh"))) + #t))))) + (native-inputs + `(("xbinutils" ,(cross-binutils "aarch64-none-elf")) + ("xgcc" ,aarch64-none-elf-gcc) + ("texinfo" ,texinfo))) + (home-page "https://www.sourceware.org/newlib/") + (synopsis "C library for use on embedded systems") + (description "Newlib is a C library intended for use on embedded +systems. It is a conglomeration of several library parts that are easily +usable on embedded products.") + (license (license:non-copyleft + "https://www.sourceware.org/newlib/COPYING.NEWLIB")))) -- 2.40.1