From: ezag <ezag@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: libmsp430-3.15.0.1
Date: Tue, 28 Apr 2020 02:45:57 +0200 [thread overview]
Message-ID: <20200428004557.JiLko2noWi_GEPg2V62y81aoobIa9TCyStGNwLFcEnw@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-21360@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 940 bytes --]
There is an updated pull request by ezag against master on the void-packages repository
https://github.com/ezag/void-packages libmsp430
https://github.com/void-linux/void-packages/pull/21360
New package: libmsp430-3.15.0.1
Allows to use [mspdebug](https://github.com/void-linux/void-packages/tree/master/srcpkgs/mspdebug) with `tilib` driver, solving following error:
```
$ mspdebug tilib
MSPDebug version 0.25 - debugging tool for MSP430 MCUs
Copyright (C) 2009-2017 Daniel Beer <dlbeer@gmail.com>
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Chip info database from MSP430.dll v3.3.1.4 Copyright (C) 2013 TI, Inc.
tilib_api: can't find libmsp430.so: libmsp430.so: cannot open shared object file: No such file or directory
```
A patch file from https://github.com/void-linux/void-packages/pull/21360.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libmsp430-21360.patch --]
[-- Type: text/x-diff, Size: 3475 bytes --]
From 4eb65aac58240c6314d6787347b0952b6d267c08 Mon Sep 17 00:00:00 2001
From: Eugen Zagorodniy <e.zagorodniy@gmail.com>
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 | 24 +++++++++++++
3 files changed, 73 insertions(+)
create mode 100644 srcpkgs/libmsp430/patches/hidapi.patch
create mode 100644 srcpkgs/libmsp430/template
diff --git a/common/shlibs b/common/shlibs
index 60ad7fb85d5..a526e68e5b2 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3862,3 +3862,4 @@ libtagparser.so.9 tagparser-9.1.2_1
libqtutilities.so.6 qtutilities-6.0.4_1
libkdsoap.so.1.9.0 KDSoap-1.9.0_1
libstoken.so.1 stoken-0.92_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 00000000000..721298f0d8a
--- /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 <pch.h>
+ #include "HidUpdateManager.h"
+
+-#include <hidapi.h>
++#include <hidapi/hidapi.h>
+
+ #include <BSL430_DLL/Connections/MSPBSL_Connection5xxUSB.h>
+ #include <BSL430_DLL/MSPBSL_Factory.h>
+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 <hidapi.h>
++#include <hidapi/hidapi.h>
+
+ #include "MSPBSL_PhysicalInterface.h"
+
diff --git a/srcpkgs/libmsp430/template b/srcpkgs/libmsp430/template
new file mode 100644
index 00000000000..5f52db63fb1
--- /dev/null
+++ b/srcpkgs/libmsp430/template
@@ -0,0 +1,24 @@
+# Template file for 'libmsp430'
+pkgname=libmsp430
+version=3.15.0.1
+revision=1
+short_desc="Static library & embedded firmware for MSP430 & MSP432 devices"
+maintainer="Eugen Zagorodniy <e.zagorodniy@gmail.com>"
+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
+create_wrksrc=yes
+archs="x86_64 i686 x86_64-musl"
+
+makedepends="boost-devel hidapi-devel"
+
+do_build() {
+ make
+}
+
+do_install() {
+ vinstall $pkgname.so 755 /usr/lib
+ vlicense MSPDebugStackOpenSourcePackage_manifest.html
+}
next prev parent reply other threads:[~2020-04-28 0:45 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-26 22:24 [PR PATCH] " ezag
2020-04-26 23:36 ` [PR PATCH] [Updated] " ezag
2020-04-28 0:45 ` ezag [this message]
2021-11-06 22:31 ` abenson
2021-11-06 22:31 ` [PR PATCH] [Closed]: " abenson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200428004557.JiLko2noWi_GEPg2V62y81aoobIa9TCyStGNwLFcEnw@z \
--to=ezag@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).