Subject: [bug#48767] [PATCH 1/7] gnu: Add gcc-msp430-support-files.

From: [email-masked]
Date: Mon, 31 May 2021 23:09:46 -0400

From: Morgan Smith <[email-masked]>

* gnu/packages/embedded.scm (gcc-msp430-support-files): New variable.
---
 gnu/packages/embedded.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/embedded.scm b/gnu/packages/embedded.scm
index 8109ec24a1..3e66382eed 100644
--- a/gnu/packages/embedded.scm
+++ b/gnu/packages/embedded.scm
@@ -33,6 +33,7 @@ (define-module (gnu packages embedded)
   #:use-module (guix git-download)
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (guix build-system cmake)
+  #:use-module (guix build-system copy)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system python)
   #:use-module (guix build-system trivial)
@@ -501,6 +502,34 @@ (define-public gdb-arm-none-eabi
                            "--disable-nls")
      ,@(package-arguments gdb)))))
 
+(define-public gcc-msp430-support-files
+  (package
+    (name "gcc-msp430-support-files")
+    (version "1.211")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "https://software-dl.ti.com/msp430/msp430_public_sw/"
+                                  "mcu/msp430/MSPGCC/9_3_1_1/export/"
+                                  "msp430-gcc-support-files-" version ".zip"))
+
+              (sha256
+               (base32
+                "0lb30aff4jq4g332ckj0phpahd483qkjazjz7ggpmm4j46vryn07"))))
+    (build-system copy-build-system)
+    (home-page "https://www.ti.com/tool/MSP430-GCC-OPENSOURCE")
+    (synopsis "GCC headers and linker scripts for MSP430 microcontrollers")
+    (description "GCC headers and linker scripts for MSP430 microcontrollers")
+    (native-search-paths
+     (list (search-path-specification
+            (variable "CROSS_C_INCLUDE_PATH")
+            (files '("include")))
+           (search-path-specification
+            (variable "CROSS_LIBRARY_PATH")
+            (files '("include")))))
+    (native-inputs
+     `(("unzip" ,unzip)))
+    (license license:bsd-3)))
+
 (define-public libjaylink
   (package
     (name "libjaylink")
-- 
2.31.1