Kaynağa Gözat

Add MSP430 support files

k4be 2 hafta önce
ebeveyn
işleme
d0fd7a9158

+ 1 - 0
cross-msp430-elf/msp430-gcc-support-files/Manifest

@@ -0,0 +1 @@
+DIST msp430-gcc-support-files-1.212.zip 22257819 BLAKE2B f30b1cc53cbd68db7a146ebb1c57908e38958448da5226ef7331be50d656150515e3f38fe58e5508a14981cc326c9f5608d924d6a36f3671ec9a9f5f898e4d1b SHA512 33cc17aa32f1cddbca8ff2d074d0dff3d5773197ec30c81e1de666128a8b57f6cb6b33e7fd820fd7ef6c8875898a896cb9e27b7154a030d4f62b370867f5d8c3

+ 15 - 0
cross-msp430-elf/msp430-gcc-support-files/metadata.xml

@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person">
+		<email>k4be@pirc.pl</email>
+		<name>k4be</name>
+	</maintainer>
+	<longdescription>
+		Texas Instruments MSP430-GCC support files: device headers
+		(msp430.h, msp430f6721a.h, ...), per-device linker scripts and
+		devices.csv.  Installs them into /usr/msp430-elf so that a crossdev
+		msp430-elf toolchain can build for any MSP430 device with
+		-mmcu=&lt;device&gt; without extra -I/-L flags.
+	</longdescription>
+</pkgmetadata>

+ 31 - 0
cross-msp430-elf/msp430-gcc-support-files/msp430-gcc-support-files-1.212.ebuild

@@ -0,0 +1,31 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="TI MSP430 device headers, linker scripts and devices.csv for msp430-elf-gcc"
+HOMEPAGE="https://www.ti.com/tool/MSP430-GCC-OPENSOURCE"
+SRC_URI="https://dr-download.ti.com/software-development/ide-configuration-compiler-or-debugger/MD-LlCjWuAbzH/9.3.1.2/msp430-gcc-support-files-${PV}.zip"
+
+# Device headers are BSD-3-Clause licensed by Texas Instruments.
+LICENSE="BSD"
+SLOT="0"
+# 'amd64' is a blessed placeholder for crossdev, see bug #620316#c5.
+KEYWORDS="amd64"
+
+BDEPEND="app-arch/unzip"
+RDEPEND="sys-devel/crossdev"
+
+S="${WORKDIR}/msp430-gcc-support-files"
+
+src_install() {
+	# <msp430.h> and <msp430*.h> must be on the default include path.
+	insinto /usr/msp430-elf/include
+	doins include/*.h include/devices.csv
+
+	# Per-device linker scripts (and their *_symbols.ld) are found via -L.
+	insinto /usr/msp430-elf/lib
+	doins include/*.ld
+
+	dodoc Revisions_Header.txt
+}

+ 1 - 0
profiles/categories

@@ -1,5 +1,6 @@
 app-text
 cross-avr
+cross-msp430-elf
 dev-util
 sys-kernel
 sys-power