mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Alexander Dahl <post@lespocky.de>
To: ptxdist@pengutronix.de
Cc: Alexander Dahl <ada@thorsis.com>
Subject: [ptxdist] [PATCH] libserialport: new package
Date: Wed,  3 Mar 2021 09:00:43 +0100	[thread overview]
Message-ID: <20210303080043.8689-1-post@lespocky.de> (raw)

From: Alexander Dahl <ada@thorsis.com>

Signed-off-by: Alexander Dahl <ada@thorsis.com>
---
 rules/libserialport.in   | 13 ++++++++++++
 rules/libserialport.make | 52 ++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 65 insertions(+)
 create mode 100644 rules/libserialport.in
 create mode 100644 rules/libserialport.make

diff --git a/rules/libserialport.in b/rules/libserialport.in
new file mode 100644
index 000000000..bc5d4b76a
--- /dev/null
+++ b/rules/libserialport.in
@@ -0,0 +1,13 @@
+## SECTION=communication
+
+config LIBSERIALPORT
+	tristate
+	prompt "libserialport"
+	help
+	  libserialport is a minimal library written in C that is
+	  intended to take care of the OS-specific details when writing
+	  software that uses serial ports.
+
+	  https://sigrok.org/wiki/Libserialport
+
+# vim: ft=kconfig noet tw=72 ts=8 sw=8
diff --git a/rules/libserialport.make b/rules/libserialport.make
new file mode 100644
index 000000000..472232911
--- /dev/null
+++ b/rules/libserialport.make
@@ -0,0 +1,52 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2020 by Alexander Dahl <ada@thorsis.com>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_LIBSERIALPORT) += libserialport
+
+#
+# Paths and names
+#
+LIBSERIALPORT_VERSION	:= 0.1.1
+LIBSERIALPORT_MD5	:= b93f0325a6157198152b5bd7e8182b51
+LIBSERIALPORT		:= libserialport-$(LIBSERIALPORT_VERSION)
+LIBSERIALPORT_SUFFIX	:= tar.gz
+LIBSERIALPORT_URL	:= http://sigrok.org/download/source/libserialport/$(LIBSERIALPORT).$(LIBSERIALPORT_SUFFIX)
+LIBSERIALPORT_SOURCE	:= $(SRCDIR)/$(LIBSERIALPORT).$(LIBSERIALPORT_SUFFIX)
+LIBSERIALPORT_DIR	:= $(BUILDDIR)/$(LIBSERIALPORT)
+LIBSERIALPORT_LICENSE	:= LGPL-3.0-or-later
+LIBSERIALPORT_LICENSE_FILES := file://COPYING;md5=e6a600fd5e1d9cbde2d983680233ad02
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+LIBSERIALPORT_CONF_TOOL	:= autoconf
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/libserialport.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, libserialport)
+	@$(call install_fixup, libserialport,PRIORITY,optional)
+	@$(call install_fixup, libserialport,SECTION,base)
+	@$(call install_fixup, libserialport,AUTHOR,"Alexander Dahl <ada@thorsis.com>")
+	@$(call install_fixup, libserialport,DESCRIPTION,missing)
+
+	@$(call install_lib, libserialport, 0, 0, 0644, libserialport)
+
+	@$(call install_finish, libserialport)
+
+	@$(call touch)
+
+# vim: ft=make noet tw=72 ts=8 sw=8
-- 
2.11.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de

             reply	other threads:[~2021-03-03  8:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-03  8:00 Alexander Dahl [this message]
2021-03-14 13:35 ` [ptxdist] [APPLIED] " Michael Olbrich

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=20210303080043.8689-1-post@lespocky.de \
    --to=post@lespocky.de \
    --cc=ada@thorsis.com \
    --cc=ptxdist@pengutronix.de \
    /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