mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH v2] cp210x-cfg: new package
@ 2026-04-30 15:44 Bruno Thomsen
  0 siblings, 0 replies; only message in thread
From: Bruno Thomsen @ 2026-04-30 15:44 UTC (permalink / raw)
  To: ptxdist; +Cc: Bruno Thomsen

Signed-off-by: Bruno Thomsen <bruno.thomsen@gmail.com>
---
v1-v2:
fix typo in SoB

 rules/cp210x-cfg.in   | 12 ++++++++
 rules/cp210x-cfg.make | 65 +++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 77 insertions(+)
 create mode 100644 rules/cp210x-cfg.in
 create mode 100644 rules/cp210x-cfg.make

diff --git a/rules/cp210x-cfg.in b/rules/cp210x-cfg.in
new file mode 100644
index 000000000..48daa9479
--- /dev/null
+++ b/rules/cp210x-cfg.in
@@ -0,0 +1,12 @@
+## SECTION=shell_and_console
+
+config CP210X_CFG
+	tristate
+	prompt "cp210x-cfg"
+	select LIBUSB
+	help
+	  CLI utility for programming CP210x (USB->UART bridge)
+
+	  Change VID, PID, serial and more during manufacturing.
+
+# vim: ft=kconfig tw=80
diff --git a/rules/cp210x-cfg.make b/rules/cp210x-cfg.make
new file mode 100644
index 000000000..73765bbb8
--- /dev/null
+++ b/rules/cp210x-cfg.make
@@ -0,0 +1,65 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2026 by Bruno Thomsen <bruno.thomsen@gmail.com>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_CP210X_CFG) += cp210x-cfg
+
+#
+# Paths and names
+#
+CP210X_CFG_VERSION		:= 2017-01-05-g424deb715e629
+CP210X_CFG_MD5			:= c02ac3df91822f335bac5e0b3beeb446
+CP210X_CFG			:= cp210x-cfg-$(CP210X_CFG_VERSION)
+CP210X_CFG_SUFFIX		:= tar.gz
+CP210X_CFG_URL			:= https://github.com/DiUS/cp210x-cfg/archive/${CP210X_CFG_VERSION}.${CP210X_CFG_SUFFIX}
+CP210X_CFG_SOURCE		:= $(SRCDIR)/$(CP210X_CFG).$(CP210X_CFG_SUFFIX)
+CP210X_CFG_DIR			:= $(BUILDDIR)/$(CP210X_CFG)
+CP210X_CFG_LICENSE		:= BSD-3-Clause
+CP210X_CFG_LICENSE_FILES	:= \
+	file://src/main.c;startline=1;endline=32;md5=d8a77d4d4b9f12f02c9c8356e2468e91
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+CP210X_CFG_CONF_TOOL	:= NO
+CP210X_CFG_MAKE_ENV	:= $(CROSS_ENV)
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/cp210x-cfg.install:
+	@$(call targetinfo)
+	@$(call world/execute, CP210X_CFG, \
+		install -v -m755 -t $(CP210X_CFG_PKGDIR)/usr/bin \
+			$(CP210X_CFG_DIR)/cp210x-cfg)
+	@$(call touch)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/cp210x-cfg.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, cp210x-cfg)
+	@$(call install_fixup, cp210x-cfg,PRIORITY,optional)
+	@$(call install_fixup, cp210x-cfg,SECTION,base)
+	@$(call install_fixup, cp210x-cfg,AUTHOR,"Bruno Thomsen <bruno.thomsen@gmail.com>")
+	@$(call install_fixup, cp210x-cfg,DESCRIPTION,missing)
+
+	@$(call install_copy, cp210x-cfg, 0, 0, 0750, -, /usr/bin/cp210x-cfg)
+
+	@$(call install_finish, cp210x-cfg)
+
+	@$(call touch)
+
+# vim: ft=make

base-commit: 95f4dc82aa9c947b15cebbd45f032153625b21cc
-- 
2.54.0




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-04-30 15:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-04-30 15:44 [ptxdist] [PATCH v2] cp210x-cfg: new package Bruno Thomsen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox