|
|
@@ -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
|
|
|
+}
|