From patchwork Sun Sep 26 14:51:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Morgan Smith X-Patchwork-Id: 33315 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 C2C0527BBE1; Sun, 26 Sep 2021 15:53:24 +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 F35CB27BBE5 for ; Sun, 26 Sep 2021 15:53:23 +0100 (BST) Received: from localhost ([::1]:57626 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mUVWt-0001gE-0H for patchwork@mira.cbaines.net; Sun, 26 Sep 2021 10:53:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34286) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mUVWa-0001ED-UV for guix-patches@gnu.org; Sun, 26 Sep 2021 10:53:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55209) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mUVWa-0006qa-MH for guix-patches@gnu.org; Sun, 26 Sep 2021 10:53:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mUVWa-0004OK-LY for guix-patches@gnu.org; Sun, 26 Sep 2021 10:53:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48767] [PATCH 2/6] gnu: Add gcc-msp430. 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:04 +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.163266794216758 (code B ref 48767); Sun, 26 Sep 2021 14:53:04 +0000 Received: (at 48767) by debbugs.gnu.org; 26 Sep 2021 14:52:22 +0000 Received: from localhost ([127.0.0.1]:38511 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUVVu-0004M8-62 for submit@debbugs.gnu.org; Sun, 26 Sep 2021 10:52:22 -0400 Received: from mail-dm6nam10olkn2016.outbound.protection.outlook.com ([40.92.41.16]:58465 helo=NAM10-DM6-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUVVp-0004Kx-LP for 48767@debbugs.gnu.org; Sun, 26 Sep 2021 10:52:18 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=d4CiUVyudLDPjSiNG+oacLJ1nHaudxJfS8WrRgxyCAKQ7zWD4uxgW6WLUSoMt4pNMMq2Qum+W04iet0PQICZH677jhTI4L48AcSyAl98U7i8TOaLPshen1wurH3jeQiT/qoyXX4CLWXhQ6Wd6oppIf4OKrMzs2xpre1IT1CYRPolGRl70n6JaB8xBrRrWV/NkY9l06MqR+mPj7Gqnc4BeuilSN1WgsocmjOmVNGAgbnBrG2q3X/Q6HyJPfaZp7KN90h1mEltT66tQvgqIz3RhP0mNDU8AhdTDgCjoIsUWG4Ko1zFnyKMjOlDkMuBd6tveJuqQaODgwbKuMfC27zQaw== 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=dQzSZZoIbOlAvdsMzJP9LTd89fYJ02y6zgk6iWAdKc0=; b=QSm1ul/7sKlGWMyKOSzFGkGb1zZiFe7oQaHsCj0W7r8Yey09/iH2Cml7/1yNoxf+XzwsdzsN++lWntHXseu0i8SaDeohjblHkfA4A/uKpcBp1q/MH+V4moXAP+FsSAx9a3yQC/Xz/xQ0M8UTSW/eGWrSTsCTc+VwGHeAkpSgy4Kx5fjR1mPLKsdJdFBM+i/bI17T5iiqAV6yZ9e1Qnnx/3at5cU6NxzOxBKukJWno7La59arGwNNUWSLFzgIqSqre7rHKL1BtZjP+xe0N6cB87iPQog47Ard5Ge9Jk7WyTYAwCusNchrn46OnGUHuZRZgaJi7BkveIlZmxIkRJxOxw== 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=dQzSZZoIbOlAvdsMzJP9LTd89fYJ02y6zgk6iWAdKc0=; b=soJsoPjoS4k2dvQSZNxcX6XMERPgKrlKGr9FM1KyscRApfNtBEVtEdLbGFYqr2NgbEhAYpfgutNIjVZiF3VSZ9rsai4wg7Qux+8JRK0fFveNI31YmOUaYzXx5730I6B/0akrD0ebO0xgsi3wS5dVlLgpNvaGH2O0j1is3PZbAxo5X4cj64qt0bUNa5W6u+7bfORHq0rKWLt0gkkwtK4Md8aGRtN+yFoaiD76j3/NecQ7TotbR4V6Tg0EqxtUlcVZUgu8x6STOaIZZPQ4F9FkzeVR3D+s2vsJk6eT7MzoPnV5Vx+AVHfdFVdOIMhWJnRgvaca7Kh8CJveqt1JbXjnJA== 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:06 +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:06 +0000 From: Morgan.J.Smith@outlook.com Date: Sun, 26 Sep 2021 10:51:51 -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: [6Fda6xy35UnQeEPNqvQk9SwO32jtAy9t] 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-2-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:05 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c6b617ca-090d-4c47-3303-08d980fd3503 X-MS-Exchange-SLBlob-MailProps: q+fD6XS3/UIAJF/k4bgfswkTEY4F7udz0AqcIDPzZZpaIAoda0YspddgLbYb7zI6XvzHu4RSNoWW1ZDt/wwbL0fyf7FR4h0HaAWSdvSZexs02eCQ+GVdDYlxM1OpJF6Zy8ccZtL1LcoNqI95ULEwGwHU2phXBjFhc5NF9NfA01rdaZSZqqpcV+HZUqaikwS1ASwzxR+g9grdDrKDyq2CAW/fMEldSrR1frvO8YbFflGW8PQoi9LIOKe8RP2ngvoV6s7V3tc3C18A++suz80iUDFaelQ6mcyoISRurpdrM7ieJbdmAw7FEKDsfe8zhMFnUNTuv41Rdl/8Ms5DP/5TEqrMGVgf1JLANAroNezmGr0yFYXb5UZiEa9LE5zVkpBxrRIVXyDokIyxbmV1HV1CkjXwzT/V0wMaKlzsts++9BtS9/wU8bEnGFQ/II8O0KbrwybFcJpLyq730+ryNi6sRvA32ayLw/CX7U16ieKGPcGloW6aJewI57KbnqjXrLDRMaT7gJ+8YfYPFG/ocTY4rzKgQDy1RrBJ5HSAXZEq269M5phAOoe/8jNfHfO4rGrMF/Ro7dY/x1KECPnpkmneizvum6aTr1CLNVrXG4zQ7Ng3fF5AON3Xj+vLmBbCqahHM8KFNeR3JE9zWI6egJZaCQOIlPGg2fen4r5YQcb0nNEfvpbdI8O8XFi5BtPaxvtkXh9rvO12r00MDh8iFteJrQ== X-MS-TrafficTypeDiagnostic: SA1PR05MB8344: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: YR2wMq+ofb6zfY//AGpo9E2I9O1YxlX9D5NpOgRDghBifnWqrJtoS8e/RTpbAn9GPSN6i54y0AAiV2AfQTT/RcKbNRxYw2iGADglOkeswwwRm/00M0cm9vnQIH5mW4RHHG0v2S80FIM3wLdQWbLWObAoGUBOX459tfPlG87K4LS2Zb7QF/HO/A/D0N3apc1XVf9Motk3rLyylVmKheDBiH1W25INFK6acKmwdtZHLpYHsm1ugg1goVoYTrKLizF1paK7lZQh2E0544gl7yadyuc34oyQxyzn+5uCkt2rQAqYhYlb0axlQvxk0XO5GEDLP8w4dij/MjgB0cPMhaX+TMsH716TM/m6RkBojIJ3xl5sMFkQiPPCjcCBLdAwtxWbAmoC98hYM3Ew7vwzPB0GRE/LjWkIt5sa7zC1GeUbjPKDQ7eFiBEdm+qEBB4r3gGP X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: diLZCmVrR9b2QUlhLUhNE06xjB8BUOPT0FOVNE3SjCYiUW+MhDfQLmnaizfveIWKepEf39xttzeHAjkzqNQ6cw5D+Yq0thkrk/NC7kz0vc1DpIjByYCJQfnoLl1Ze9buxn1vAP1ojOkJh4EUajqQLQ== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c6b617ca-090d-4c47-3303-08d980fd3503 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:06.2014 (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 (gcc-msp430): New variable. --- gnu/packages/bootstrap.scm | 1 + gnu/packages/embedded.scm | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) diff --git a/gnu/packages/bootstrap.scm b/gnu/packages/bootstrap.scm index c598cedc0a..54a028e977 100644 --- a/gnu/packages/bootstrap.scm +++ b/gnu/packages/bootstrap.scm @@ -311,6 +311,7 @@ or false to signal an error." ((string=? system "arm-eabi") "no-ld.so") ((string=? system "xtensa-elf") "no-ld.so") ((string=? system "avr") "no-ld.so") + ((string=? system "msp430-elf") "no-ld.so") ((string=? system "propeller-elf") "no-ld.so") ((string=? system "i686-mingw") "no-ld.so") ((string=? system "x86_64-mingw") "no-ld.so") diff --git a/gnu/packages/embedded.scm b/gnu/packages/embedded.scm index f1f17e83a7..7073168b57 100644 --- a/gnu/packages/embedded.scm +++ b/gnu/packages/embedded.scm @@ -530,6 +530,39 @@ languages are C and C++.") `(("unzip" ,unzip))) (license license:bsd-3))) +(define-public gcc-msp430 + (let ((xgcc (cross-gcc "msp430-elf" + #:xgcc gcc-9 + #:xbinutils (cross-binutils "msp430-elf")))) + (package + (inherit xgcc) + (name "gcc-msp430") + (arguments + (substitute-keyword-arguments (package-arguments xgcc) + ((#:phases phases) + `(modify-phases ,phases + (add-after 'set-paths 'augment-CPLUS_INCLUDE_PATH + (lambda* (#:key inputs #:allow-other-keys) + (let ((gcc (assoc-ref inputs "gcc"))) + ;; Remove the default compiler from CPLUS_INCLUDE_PATH to + ;; prevent header conflict with the GCC from native-inputs. + (setenv "CPLUS_INCLUDE_PATH" + (string-join + (delete (string-append gcc "/include/c++") + (string-split (getenv "CPLUS_INCLUDE_PATH") + #\:)) + ":")) + (format #t + "environment variable `CPLUS_INCLUDE_PATH' changed to ~a~%" + (getenv "CPLUS_INCLUDE_PATH"))))))))) + (native-search-paths + (list (search-path-specification + (variable "CROSS_C_INCLUDE_PATH") + (files '("msp430-elf/include"))) + (search-path-specification + (variable "CROSS_LIBRARY_PATH") + (files '("msp430-elf/lib")))))))) + (define-public libjaylink (package (name "libjaylink")