From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id YDb4L+CgUGFAsAAAgWs5BA (envelope-from ) for ; Sun, 26 Sep 2021 18:33:36 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id UCllK+CgUGFvTAAAbx9fmQ (envelope-from ) for ; Sun, 26 Sep 2021 16:33:36 +0000 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 62E9F2EEE8 for ; Sun, 26 Sep 2021 18:33:36 +0200 (CEST) Received: from localhost ([::1]:48478 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mUX5r-0006nl-JR for larch@yhetil.org; Sun, 26 Sep 2021 12:33:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44044) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mUX5K-0006mD-6L for guix-patches@gnu.org; Sun, 26 Sep 2021 12:33:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55286) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mUX5J-000563-Um for guix-patches@gnu.org; Sun, 26 Sep 2021 12:33:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mUX5J-0006rs-Ls for guix-patches@gnu.org; Sun, 26 Sep 2021 12:33:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48767] [PATCH 6/6] gnu: Add msp430lib. Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 26 Sep 2021 16:33:01 +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: Morgan.J.Smith@outlook.com, 48767@debbugs.gnu.org Received: via spool by 48767-submit@debbugs.gnu.org id=B48767.163267392426333 (code B ref 48767); Sun, 26 Sep 2021 16:33:01 +0000 Received: (at 48767) by debbugs.gnu.org; 26 Sep 2021 16:32:04 +0000 Received: from localhost ([127.0.0.1]:38599 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUX4N-0006qf-Et for submit@debbugs.gnu.org; Sun, 26 Sep 2021 12:32:03 -0400 Received: from xavier.telenet-ops.be ([195.130.132.52]:54548) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUX4L-0006qF-45 for 48767@debbugs.gnu.org; Sun, 26 Sep 2021 12:32:02 -0400 Received: from ptr-bvsjgyjmffd7q9timvx.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:aaf1:9810:a0b8:a55d]) by xavier.telenet-ops.be with bizsmtp id ygXy2500g0mfAB401gXzVn; Sun, 26 Sep 2021 18:31:59 +0200 Message-ID: From: Maxime Devos Date: Sun, 26 Sep 2021 18:31:44 +0200 In-Reply-To: References: <20210926145155.966-1-Morgan.J.Smith@outlook.com> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-vZvVxKiPPp+Qtl3rp7ig" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r21; t=1632673919; bh=+17p2ZCJIjnca5gjR1pVr2NUKIFBiKB43yMnbfp0PMM=; h=Subject:From:To:Date:In-Reply-To:References; b=TJ44uU6Z8Z4c/BOQLSfdyi/4aeEDLuN9tgBdd9pmihO9jXwGvZKuxa856WrcS+HHw FC9T9AIXAscYb+m3HjCgzrHvohcAbeTx67mtXsOGA6gG0bGUWrrzlF+udv6kDfzLCd qYDnubFj6gmL5yzRVLvXLdSPebDKzJ8Af57wbPoJVR49oU5BaP4zJwUa9d9qqlwqnU +ZoIG+DjFeKe5iyS56RVTw3hal0E71kU4dQ15I1HXQYqCipAAgjyPL+MI/eOGzFbgn MYWsFPwD1cgG8FzJ0mbBmVQTWhiLeF3BaUQawMfYuibz2Gdij6FSyMFoxxbA5xWOkD 4RCbtVXb6GpSg== 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1632674016; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: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: dkim-signature; bh=+17p2ZCJIjnca5gjR1pVr2NUKIFBiKB43yMnbfp0PMM=; b=Ofe6VuMcUuL34qHQP74SRqigOawyg0fmSzZqXvamsPHnNVQ8xvhw9TjpfZe1C0dHF6NZME gw76diLZxDR1BIZGGrhGJqoywulYMlXq0pWgnaXjHGBJyg52tPzDnPKo239aCigZeJ16QJ jaWUaRy7sJ46SOlTy+HYY7eo+Q5hsiEaB/bieKHpPaGy1i5qM9rCNSF1IBzLag5cypdiYx 93/fSB1xVaEhywdgSlEpQT9/YsgLt8QrmTZ2gIT0zARtNzYoWRopvzL4Eco8AXqtqhBa1f DF/AsJ0ntI3a52pmaIghFsMj3UnQrUdyh5J4L90hlsEAF8vYo22SXhE5zL4AAQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1632674016; a=rsa-sha256; cv=none; b=dM/F/lNYiRsx9uLlbPZDX/DYrRyP9ohRQG0S5wtCml0/nGUX4okABK1pHpp2RHi7qNAaTz dEhd58iSrBFbSXn7h67o6cEh1ZsueAjr0b9XJxNetAGTtwmKLMytPhPuqZmjSbYNXDXVlb 83yeBomX13CmF6mZK3ac1szJw0iNwI0VEZOjW5Sxl0U5UwqNMpiSx44B6wqMO/eT+YkIT0 SHG1ixq2MxBrUQufMPLB8iDJgMMuqf4wEOnwZ0EpZ4Xq/4oEOOkCAa7VIRjNMGUpEzCAuS vq9EvVQuUd/4AdhcvsZx87IRmEV5p3Wc0CLtfrEI7wv5jMAqJ98dmSh/aOgO9A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r21 header.b=TJ44uU6Z; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -3.39 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r21 header.b=TJ44uU6Z; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 62E9F2EEE8 X-Spam-Score: -3.39 X-Migadu-Scanner: scn0.migadu.com X-TUID: 7sYNzv+SxOSr --=-vZvVxKiPPp+Qtl3rp7ig Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Morgan.J.Smith@outlook.com schreef op zo 26-09-2021 om 10:51 [-0400]: > From: Morgan Smith >=20 > * gnu/packages/debug.scm (msp430lib): New variable. > --- > gnu/packages/debug.scm | 57 ++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 57 insertions(+) >=20 > 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 a= nd 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=3D" (assoc-ref %build-inputs "boost")) > + (string-append "HIDOBJ=3D-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") "/li= b"))))))) > + (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 depe= ndency > + (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))) I downloaded the ZIP and opened MSPDebugStackOpenSourcePackage_manifest.htm= l, and noted: [...] No reverse engineering, decompilation, or disassembly of this softwar= e is permitted with respect to any [...] which isn't BSD-3, and isn't free software. I also see BSD-3 in that file. We would need to carefully check what conditions apply to the parts of MSPD= S that are used here, and remove the non-free components. I noticed PLATFORM :=3D $(shell uname -s) and ifeq ($(PLATFORM),Linux) in a= Makefile. I expect that won't work on the Hurd. Maybe make that unconditional. I al= so noticed CXX:=3Dg++. Possibly some substitutions or (setenv "CXX" (cxx-for-target))= are required to make the package cross-compilable. There is a blob in Bios/include/UifBiosCore.h. Possibly it can simply be r= emoved. Greetings, Maxime --=-vZvVxKiPPp+Qtl3rp7ig Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYVCgcBccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7sROAQCZ5ZBY+0xiwNgh1cx8aH6HK29h 6OsF+K0o4m9MwinNfgD/WGb/AwMrMWsidP7TsjpUnQlp6rtmLqzPx0OPpGodCAc= =yVDZ -----END PGP SIGNATURE----- --=-vZvVxKiPPp+Qtl3rp7ig--