Subject: [bug#48767] [PATCH 4/6] gnu: Add msp430-toolchain.

From: Maxime Devos <[email-masked]>
Date: Sun, 26 Sep 2021 18:08:07 +0200

[email-masked] schreef op zo 26-09-2021 om 10:51 [-0400]:
> From: Morgan Smith <[email-masked]>
> 
> * 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." [...]

There appears to be some duplication with arm-none-eabi-toolchain.
Perhaps arm-none-eabi-toolchain could be extended to support both arm
and msp430?

Greetings,
Maxime.