From: Bruno Thomsen <bruno.thomsen@gmail.com>
To: ptxdist@pengutronix.de
Cc: Bruno Thomsen <bruno.thomsen@gmail.com>,
Bruno Thomsen <brunot.thomsen@gmail.com>
Subject: [ptxdist] [PATCH] cp210x-cfg: new package
Date: Thu, 30 Apr 2026 17:35:30 +0200 [thread overview]
Message-ID: <20260430153530.8600-1-bruno.thomsen@gmail.com> (raw)
Signed-off-by: Bruno Thomsen <brunot.thomsen@gmail.com>
---
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
reply other threads:[~2026-04-30 15:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20260430153530.8600-1-bruno.thomsen@gmail.com \
--to=bruno.thomsen@gmail.com \
--cc=brunot.thomsen@gmail.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