From 275beede7c0ae0473082e6b42587e80a4b1469bd Mon Sep 17 00:00:00 2001 From: Eugen Zagorodniy Date: Mon, 27 Apr 2020 00:54:06 +0300 Subject: [PATCH] New package: libmsp430-3.15.0.1 --- common/shlibs | 1 + srcpkgs/libmsp430/patches/hidapi.patch | 48 ++++++++++++++++++++++++++ srcpkgs/libmsp430/template | 22 ++++++++++++ 3 files changed, 71 insertions(+) create mode 100644 srcpkgs/libmsp430/patches/hidapi.patch create mode 100644 srcpkgs/libmsp430/template diff --git a/common/shlibs b/common/shlibs index f2d70191f11460..b9abfa5fd3f88e 100644 --- a/common/shlibs +++ b/common/shlibs @@ -3977,3 +3977,4 @@ libselinux.so.1 libselinux-3.0_1 libsepol.so.1 libsepol-3.0_1 libfrrcares.so.0 libfrr-7.3.1_1 libhugetlbfs.so.0 libhugetlbfs-2.22_1 +libmsp430.so libmsp430-3.15.0.1_1 diff --git a/srcpkgs/libmsp430/patches/hidapi.patch b/srcpkgs/libmsp430/patches/hidapi.patch new file mode 100644 index 00000000000000..721298f0d8a37f --- /dev/null +++ b/srcpkgs/libmsp430/patches/hidapi.patch @@ -0,0 +1,48 @@ +diff --git DLL430_v3/src/TI/DLL430/HidUpdateManager.cpp DLL430_v3/src/TI/DLL430/HidUpdateManager.cpp +index 5b74a2a..e1358df 100644 +--- DLL430_v3/src/TI/DLL430/HidUpdateManager.cpp ++++ DLL430_v3/src/TI/DLL430/HidUpdateManager.cpp +@@ -38,7 +38,7 @@ + #include + #include "HidUpdateManager.h" + +-#include ++#include + + #include + #include +diff --git Makefile Makefile +index a4cfbed..7c65736 100644 +--- Makefile ++++ Makefile +@@ -55,7 +55,7 @@ ifeq ($(PLATFORM),Linux) + LIBS += -lusb-1.0 + endif + +- LIBS += -lusb-1.0 -lrt -lpthread ++ LIBS += -lusb-1.0 -lrt -lpthread -lhidapi-libusb + + ifdef BOOST_DIR + INCLUDES += -I$(BOOST_DIR) +@@ -66,7 +66,7 @@ ifeq ($(PLATFORM),Linux) + BSTATIC := -Wl,-Bstatic + BDYNAMIC := -Wl,-Bdynamic + +- HIDOBJ := $(LIBTHIRD)/hid-libusb.o ++ HIDOBJ := + else + CXX:= clang++ + +diff --git ThirdParty/BSL430_DLL/BSL430_DLL/Physical_Interfaces/MSPBSL_PhysicalInterfaceUSB.h ThirdParty/BSL430_DLL/BSL430_DLL/Physical_Interfaces/MSPBSL_PhysicalInterfaceUSB.h +index 37825c6..d1105ed 100644 +--- ThirdParty/BSL430_DLL/BSL430_DLL/Physical_Interfaces/MSPBSL_PhysicalInterfaceUSB.h ++++ ThirdParty/BSL430_DLL/BSL430_DLL/Physical_Interfaces/MSPBSL_PhysicalInterfaceUSB.h +@@ -38,7 +38,7 @@ + + #pragma once + +-#include ++#include + + #include "MSPBSL_PhysicalInterface.h" + diff --git a/srcpkgs/libmsp430/template b/srcpkgs/libmsp430/template new file mode 100644 index 00000000000000..728d50cf5f24c8 --- /dev/null +++ b/srcpkgs/libmsp430/template @@ -0,0 +1,22 @@ +# Template file for 'libmsp430' +pkgname=libmsp430 +version=3.15.0.1 +revision=1 +archs="x86_64 i686 x86_64-musl" +create_wrksrc=yes +makedepends="boost-devel hidapi-devel" +short_desc="Static library & embedded firmware for MSP430 & MSP432 devices" +maintainer="Eugen Zagorodniy " +license=BSD-3-Clause +homepage=https://www.ti.com/tool/MSPDS +distfiles="http://software-dl.ti.com/msp430/msp430_public_sw/mcu/msp430/MSPDS/3_15_0_000/export/MSPDebugStack_OS_Package_${version//./_}.zip" +checksum=31f8f66ce9f9156bcb550adf3937ebf44ad7995bef2517f2b09e408be947c4c5 + +do_build() { + make +} + +do_install() { + vinstall $pkgname.so 755 /usr/lib + vlicense MSPDebugStackOpenSourcePackage_manifest.html +}