From patchwork Sun Sep 26 14:51:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Morgan Smith X-Patchwork-Id: 33313 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 11E2A27BBE5; Sun, 26 Sep 2021 15:53:23 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 919B527BBE3 for ; Sun, 26 Sep 2021 15:53:22 +0100 (BST) Received: from localhost ([::1]:57534 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mUVWr-0001cr-Kv for patchwork@mira.cbaines.net; Sun, 26 Sep 2021 10:53:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34280) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mUVWZ-0001CR-ML for guix-patches@gnu.org; Sun, 26 Sep 2021 10:53:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55206) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mUVWZ-0006pn-FL for guix-patches@gnu.org; Sun, 26 Sep 2021 10:53:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mUVWZ-0004Nx-Df for guix-patches@gnu.org; Sun, 26 Sep 2021 10:53:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48767] [PATCH 4/6] gnu: Add msp430-toolchain. Resent-From: Morgan.J.Smith@outlook.com Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 26 Sep 2021 14:53:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48767 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 48767@debbugs.gnu.org Cc: Morgan Smith Received: via spool by 48767-submit@debbugs.gnu.org id=B48767.163266794116737 (code B ref 48767); Sun, 26 Sep 2021 14:53:03 +0000 Received: (at 48767) by debbugs.gnu.org; 26 Sep 2021 14:52:21 +0000 Received: from localhost ([127.0.0.1]:38505 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUVVs-0004Lm-Nw for submit@debbugs.gnu.org; Sun, 26 Sep 2021 10:52:21 -0400 Received: from mail-dm6nam10olkn2040.outbound.protection.outlook.com ([40.92.41.40]:34848 helo=NAM10-DM6-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUVVn-0004Kr-Lg for 48767@debbugs.gnu.org; Sun, 26 Sep 2021 10:52:15 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LHGg9/GMqzTAwDN/2pZ3krU3aYaRqvukCGSdUEW8vV5T/Qi0Dis8LRUPRIs+nkQCv3JXJM4PzGjqvvguOuJHT3ZUzDgSKoHsth0haZoV53U3kMPT7P+qMLV+gNjjGwCs04NcjqS7y4RRT1tuI9DPshVkRQHtCyi1qXtRxTGST+GTa6BoexldVdG6SzNtk6IHfJnD6Ck8928N1eTDJzQR9xhgmbFCv6jhVU+7WKIvG9oF3E9Qa4gkEi0ELfgCtQe8ddSO2WfXoaZge9WPr2AXilnQpLnSk95X4DR15juKq1qSzlxc6SDHynW2rg8FaDoyN0wHLny4mTwpmBY+v46kiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=H+stfaf4kAKIutfBgVl1xryw1tCoLSXlb15h/oHLe/Y=; b=HI6kcyOO71g5Fj+jwzQYzh3+SPonPG7/BgRoNcXYHiLRuX2r12dSmqUjAai6e6ruUQfGyjTrnRPwTsCCuMajP5+c4NuvRC6giJyK6JhSpacDhoXQXb77aDL4+j7ov7FpPnD3QKz37r8yh/W/Ds5j2M/FlJIkSJI0rIuc42Bl1HHR1JIicLDS/GVQvJuL2CEn8V7pPsv9Pkb2ZwOwnq6NuVoMyiNEN1u6usbgsWGFJMRqma/PVp6a6LaYM5hPQLIiRU4PECZx+qulppk0/h0/RbBu9a0XK+h0D9Xa+l1VkMJOTG/tOipk+nLZ8ksyTciVvwKNLYq4DKl23vqT8dTGsQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=H+stfaf4kAKIutfBgVl1xryw1tCoLSXlb15h/oHLe/Y=; b=UKqHIjD5ckmDt1nw/JkfkTtvzmbqKkbjpzfsj2bLKpfq+k9nnDeqRsMPtV8EkHv7k+8fgPrLPYf783S22NxuzXQAyhrFFraqlVKQDNdjTZ9z8IG0EGJdwq6Y1bGV7djxfO5jebuqLFaVqPhq+9fOXg93dg1m85+pmEjMxMS8wvktLhwjEyFX+onEf3/1A/Xa5Bl8tQDsMYVaEur1pggQmyn5bD9oIz5lgiSOrTyPez1imQanCedR+syqOfhXMmnQKkvU5+lx9ucKqlqyLJ8XaJ7svJslSaQVRcoAfW8RhRULRtw/bbKQiRRfVdBUR5GpNnPyCJYxvU9lZLwmbpa9pQ== Received: from SN6PR05MB4031.namprd05.prod.outlook.com (2603:10b6:805:17::33) by SA1PR05MB8344.namprd05.prod.outlook.com (2603:10b6:806:1d3::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4544.5; Sun, 26 Sep 2021 14:52:08 +0000 Received: from SN6PR05MB4031.namprd05.prod.outlook.com ([fe80::39d4:1130:ae2e:47bf]) by SN6PR05MB4031.namprd05.prod.outlook.com ([fe80::39d4:1130:ae2e:47bf%7]) with mapi id 15.20.4544.013; Sun, 26 Sep 2021 14:52:08 +0000 From: Morgan.J.Smith@outlook.com Date: Sun, 26 Sep 2021 10:51:53 -0400 Message-ID: X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210926145155.966-1-Morgan.J.Smith@outlook.com> References: <20210926145155.966-1-Morgan.J.Smith@outlook.com> X-TMN: [vApvpOKFW+3IgmUjl0ARn3eCwnnjfBj0] X-ClientProxiedBy: YQBPR01CA0053.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:c01:2::25) To SN6PR05MB4031.namprd05.prod.outlook.com (2603:10b6:805:17::33) X-Microsoft-Original-Message-ID: <20210926145155.966-4-Morgan.J.Smith@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from workpad.hitronhub.home (170.52.80.188) by YQBPR01CA0053.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:c01:2::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4544.13 via Frontend Transport; Sun, 26 Sep 2021 14:52:07 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0215e3da-b764-41fc-2f5d-08d980fd362d X-MS-Exchange-SLBlob-MailProps: q+fD6XS3/UIAJF/k4bgfswkTEY4F7udz+83piO9uZOAFFi0wgn3V7R5umZSd8sRM6n8i5gLSo9i4+dqB1RShofEHX9Yfdi/mLh8DCahAA86cjTEMYI2UjhRNuu6k7Ps3ZsyYAsFyVltOC//jO+LFAGwe8/zPHtMO8Q1m46yFvuEYOtgtbNEkcRy4hH2gyJ+Tsi9F30+uSNCc3NwxWfeOM6HgoQf2fdQQky3OdoJwDg+nsKN/sjJPxVZmMo3KQ+EI8buCU6XIH1AEUZZNAuw3iMSE2qAO4HGihX/czo/m4dd5oid1I25AXaP6HogY0TTZInR807pu6mWOHet13Sxcp+cDHMQvtea778clNUHrA/QztTxhoMrfw1QaBssuw7IlW717HDEquUmm2HVVMdZHvS+U4EKfHIifm3WL8I8NBfCAiKcZqtBbV+/EgjPh61oT0OSfW8uMDEbTjOKMLd09O9Hij3s9pvIzMcrcye8Y1PvoXYMcvOGqURPcZZbVW71ohPBe8/HnR2sI6+IclkDbud3zu46gd9zCiNLk6GVIVW86mo5HKmS4wA1QjC54d+4NQ/UiH3ihplxKHru326x5Swu+a0oajAeom1hpd6ViEklhi7/j+bD2YEq8uO7Xy0Lfuvia34kmgWOuBKPTUi4HJIw4KuCS1aj6xa2KlRj9k0BHN7BAA+Toz2BsIUJHwiPdzdD32iTR5FHYEE4G/P0fGg== X-MS-TrafficTypeDiagnostic: SA1PR05MB8344: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5DK1pAT911XLBKjrJNFQ5eBJXc5A/QIdHVteBHSB+7qeLK4t8kVKvK1+96AcA+n0nylUmsQLII4oCSW6hiExKdGkK8Tubb+GA2IXzCY58Y59r2vhA6o9B64jBSwIWbumQIVtgsavnJbecDMG6XpPVJo+TbAtg5dLWfh3g+bHAeakppUljQFIFb72ypFziEMiIrpIKnPBXDeDi4raSeOcnxRexo7GYo/ZdsjjX8GeujDdQag9X7se7ze1WGSGxzaD4VBwIlcXn732a3PkdLzOFLgDLHpklYyx9WxRTD3F65QzNyXGanMR/PuPjWgLWSzwM8fg+cCoAGxzyVtD4Li5pNJ6rUG6dkKw6k6f0ipSWv7OkkyH/zpnQdJLtB9U2Mt8kvBnG8P+a1aDYecQCDI2wT8CLeS60Az2pJCnJAGrcfhsFTXl4np8ENhjWdFpU50ahkDDd9rdXusBUfZOssFlavOc+x50WZUh8V1g8iEdI78= X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: HJAdU7kyj+Om7XGGfjBQgCTKojCxoF6yfiQAk/UCevtnL9zKawiLKcO0dJ82iVzWX6oZ4vsKenHb0XR2fw3KgQSDs8TXhzwLPssb0Rm8ohpq9CI8v11N7fyv6k2fhJfxQ+pacYEw6SqOGWNqGS+LxA== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0215e3da-b764-41fc-2f5d-08d980fd362d X-MS-Exchange-CrossTenant-AuthSource: SN6PR05MB4031.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Sep 2021 14:52:08.0943 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR05MB8344 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches From: Morgan Smith * gnu/packages/embedded.scm (msp430-toolchain): New variable. --- gnu/packages/embedded.scm | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/gnu/packages/embedded.scm b/gnu/packages/embedded.scm index 49f3eda5fb..8401f68542 100644 --- a/gnu/packages/embedded.scm +++ b/gnu/packages/embedded.scm @@ -598,6 +598,44 @@ usable on embedded products.") (license (license:non-copyleft "https://www.sourceware.org/newlib/COPYING.NEWLIB")))) +(define (make-msp430-toolchain xgcc newlib) + "Produce a cross-compiler toolchain package with the compiler XGCC and the C +library variant NEWLIB." + (let ((newlib-with-xgcc (package (inherit newlib) + (native-inputs + (alist-replace "xgcc" (list xgcc) + (package-native-inputs newlib)))))) + (package + (name "msp430-toolchain") + (version (package-version xgcc)) + (source #f) + (build-system trivial-build-system) + (arguments + '(#:modules ((guix build union)) + #:builder + (begin + (use-modules (ice-9 match) + (guix build union)) + (match %build-inputs + (((names . directories) ...) + (union-build (assoc-ref %outputs "out") + directories) + #t))))) + (propagated-inputs + `(("binutils" ,(cross-binutils "msp430-elf")) + ("gcc" ,xgcc) + ("gcc-msp430-support-files" ,gcc-msp430-support-files) + ("newlib" ,newlib-with-xgcc))) + (synopsis "Complete GCC tool chain for MSP430") + (description "This package provides a complete GCC tool chain for MSP430. +This includes the GCC msp430-elf cross compiler and newlib as the C library. +The supported programming language is C.") + (home-page (package-home-page xgcc)) + (license (package-license xgcc))))) + +(define-public msp430-toolchain + (make-msp430-toolchain gcc-msp430 newlib-msp430)) + (define-public libjaylink (package (name "libjaylink")