From patchwork Sun Sep 26 14:51:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Morgan Smith X-Patchwork-Id: 33316 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 7559627BBE3; Sun, 26 Sep 2021 15:53:30 +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 DC95327BBE1 for ; Sun, 26 Sep 2021 15:53:29 +0100 (BST) Received: from localhost ([::1]:58174 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mUVWz-00022n-0J for patchwork@mira.cbaines.net; Sun, 26 Sep 2021 10:53:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34284) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mUVWa-0001DA-IA for guix-patches@gnu.org; Sun, 26 Sep 2021 10:53:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55208) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mUVWa-0006qH-A3 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-0004OC-94 for guix-patches@gnu.org; Sun, 26 Sep 2021 10:53:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48767] [PATCH 6/6] gnu: Add msp430lib. 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.163266794216751 (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]:38509 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUVVt-0004M1-EU for submit@debbugs.gnu.org; Sun, 26 Sep 2021 10:52:22 -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 1mUVVo-0004Kr-AT for 48767@debbugs.gnu.org; Sun, 26 Sep 2021 10:52:17 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=loWMXYjpk9aP5fVSGIdCqpgOpGkNmtunXt9QB8DlqHeAlYx6WInik9cZZcv1C0ZLPYlSwB3FAOTm2fQ22b6V0AI+SgACcgA0RmDOkJ9gof4Q4tfYSEC0fFBzSsQGgmZVM/fPPZ7F1mMnl5n4FM/wxD14oRUZIwJ59G4PKgQ9/neicWfjwk+eSSIydWYJCmXC986vmZYx6qCHs/DW+GcwNwv4EIDLi18QwdZ8Cq3sRdrX9lgOPHOUmHEivj1GTQXNvYRyHmbZ72vSThTybReDQq4lqACat3GwxtXZcRvNFT2fvWblcTPyZcjxro0f7YhIv3CroBLS5mEW4DnsjzGhtw== 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=lUSZoKXukFJybiKY+enp8dJm9h3UBoHDkspud1c+J5U=; b=e96fiIGIxWiI5cOfQtw7BQdMMXL+igCDV3sCv8cZvD8P8fYS1FACBrzhw/uV+CPPbg6v7vs3lKBvsEllATon6/rtSsnl28dYyjiYhA0c29BCbabPG34EGwjJGU/PwpvforJdF3ZpBaR8guilEHq4IcwPV2IyWWixhk1B/0yvkM8qxSPlyVoOyA+WzGZ7DeLOEAvAoAbEzNiA5QxamM2pcvDttVtlG5eoLg/FQvZIFtgxPcICpOVSXgpawmRUUdejqDpk/MBdONcdpafFX8xJ3x5WyRM9hjsCm7D/NfIceoGxT9ElFVnkPEjb+vVjPeCtf1ScIX/B7bQj46nH1GvdoQ== 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=lUSZoKXukFJybiKY+enp8dJm9h3UBoHDkspud1c+J5U=; b=VpYrKDWcfbX40jk+Iz698owETB6og76Sr6t6RSbxDgtIKW7pHIK+vJJJdgxzLjiunvWQ2ne6Au1zIYtSE+8bcPWdjhnbxj688bmg1qSHHLGApzNE/qsFjgIs12Mm6ZrWn+3Xn4kNMCcohhHIYgFb+Vgie23aNf6tzI1SuRhURGhq9Lp5ZDf0NLcmy+R403n8hJT85AlAzN/Ln137eeMsC7JXX7YHMuwZn41Gt6axNpnO/np9hPEODkD7RxrQrAgkjFMDN6Krt8nKesG/PVVIEXNOJ2k9M7odoIzh2h9OaLoNKyGpNsV+cDAA8IME12DyT6QRNmZ1L2SUmGqjyvoHVQ== 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:09 +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:09 +0000 From: Morgan.J.Smith@outlook.com Date: Sun, 26 Sep 2021 10:51:55 -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: [Cbp/cw46rZCSg9kT3AlOiMJu59hpETqy] 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-6-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:09 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 584d1b87-0642-4361-7d99-08d980fd375e X-MS-Exchange-SLBlob-MailProps: gjx25WM8ZNWLGUKWLgTOPy/PES8jMJOBfcDK9kjF9vjhljjGXbZ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ywXkbAkyi0wmuEisOtPtdCXQWe2Pwhk8MZEzdb2JNcHcz1EdgnVVDWuO7ECv7MyDxUlD+LklEkDyhc8/0cepX1cZ9qAdFFjdwjJrYkFFEFvX4RxNpkebPXHkasmt4idozPgP2YI0zcD+Jshdt+1JfazX4lsY/RX3szPElQUUS/6L9ak54FItAjvpRcmHChBiY7Kk/XESSVnwfJY+WIhctA== X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: AVWKs89LwH8U6w9e3fnqbdgJlGS5F7JaMleDJHfha3KUWIQEfWLHa5aib9EOx/wi6gWIphGnWKqtMRcFbog0lHn17OrIqAB4OOoSG0JmWW2Ke5aPp3QHJ8mfJ9lcmwlN9l5zEyIIi1LPlh1R42CAvQ== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 584d1b87-0642-4361-7d99-08d980fd375e 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:09.6804 (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/debug.scm (msp430lib): New variable. --- gnu/packages/debug.scm | 57 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/gnu/packages/debug.scm b/gnu/packages/debug.scm index 7363d45c43..263a72e5ce 100644 --- a/gnu/packages/debug.scm +++ b/gnu/packages/debug.scm @@ -36,6 +36,7 @@ #:use-module (gnu packages autotools) #:use-module (gnu packages base) #:use-module (gnu packages bash) + #:use-module (gnu packages boost) #:use-module (gnu packages bison) #:use-module (gnu packages c) #:use-module (gnu packages check) @@ -789,3 +790,59 @@ debugger with support for programming, disassembly and reverse engineering.") (home-page "https://github.com/dlbeer/mspdebug") (license license:gpl2+))) + +(define (version-with-underscores version) + (string-map (lambda (x) (if (eq? x #\.) #\_ x)) version)) + +(define-public msp430lib + (package + (name "msp430lib") + (version "3.15.1.1") + (source (origin + (method url-fetch/zipbomb) + (uri (string-append + "https://software-dl.ti.com/msp430/msp430_public_sw/mcu/msp430/MSPDS/" + (version-with-underscores (version-major+minor+point version)) + "_001/export/MSPDebugStack_OS_Package_" + (version-with-underscores version) ".zip")) + (sha256 + (base32 + "1j5sljqwc20zrb50mrji4mnmw5i680qc7n0lb0pakrrxqjc9m9g3")))) + (build-system gnu-build-system) + (arguments + `(#:make-flags + (list + (string-append "BOOST_DIR=" (assoc-ref %build-inputs "boost")) + (string-append "HIDOBJ=-I" (assoc-ref %build-inputs "hidapi") "/include/hidapi" + " -lhidapi-libusb")) + #:tests? #f + #:phases + (modify-phases %standard-phases + (delete 'configure) + (add-before 'build 'fix-hidapi-includes + (lambda _ + (substitute* + '("ThirdParty/BSL430_DLL/BSL430_DLL/Physical_Interfaces/MSPBSL_PhysicalInterfaceUSB.h" + "DLL430_v3/src/TI/DLL430/HidUpdateManager.cpp") + (("hidapi.h") "hidapi/hidapi.h")))) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (install-file "libmsp430.so" + (string-append (assoc-ref outputs "out") "/lib"))))))) + (inputs + `(("boost" ,boost) + ("hidapi" ,hidapi) + ("libusb" ,libusb))) + (native-search-paths + (list (search-path-specification + ;; Used by mspdebug. mspdebug has a few different drivers it can + ;; use to interact with MSP430's so this is an optional dependency + (variable "MSPDEBUG_TILIB_PATH") + (files '("lib"))))) + (home-page "https://www.ti.com/tool/MSPDS") + (synopsis "Library used to program and debug MSP430 microcontrollers") + (description "This library facilitates communication between a host computer and certain +MSP430 debuggers. It is also know as @acronym{MSPDS, MSP430 Debug Stack}. +This is an optional dependency of mspdebug (which calls this library +@code{tilib})") + (license license:bsd-3)))