Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

95.7. libserialport-0.1.2

Enumerate and open a serial port, portably

0.1.2-1 · LGPL-3.0-or-later · 0.1 SBU · 144.9 KiB, 6 files · 41_system, 430 of 1047 · ports/core/hardware/libserialport

Homepage: https://sigrok.org/wiki/Libserialport

Why it is in KDOS. The comment above it in script/phases/41_system/packages.d/hardware.txt:

Opening /dev/ttyUSB0 is trivial; knowing it exists, that it is an FTDI, and which of three identical adapters it is, is sysfs walking every bench program would otherwise reimplement. Reachability is the other half: fs/etc/group and fs/etc/udev/rules.d.

Depends on: pkgconf.

Required by (4): amiberry, avrdude, libiio, libsigrok.

Sources: libserialport-0.1.2.tar.gz (459.8 KiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install libserialport'

build.sh:

./configure --prefix=/usr --libdir=/usr/lib --disable-static
make
make DESTDIR=$PKG install

Libraries: libserialport.so.

Directories: /usr/share/licenses/libserialport.