Files
Khem Raj a1d94f9fdc switchtec-user: include switchtec-endian.h for musl htole32/le32toh
lib/cap-cli-main.c uses htole32()/le32toh() from <endian.h> without
including it directly; pull it in via the project's own endian
compat header.

AI-Generated: Uses Claude Code

Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
2026-09-29 09:57:22 -07:00

23 lines
815 B
BlitzBasic

SUMMARY = "Easy to use CLI and C library for communicating with Microsemi's Switchtec management interface"
HOMEPAGE = "https://github.com/Microsemi/switchtec-user"
SECTION = "console/utils"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3d6b07c89629cff2990d2e8e1f4c2382"
DEPENDS = "ncurses openssl"
SRC_URI = "git://github.com/Microsemi/switchtec-user.git;protocol=https;branch=master;tag=v${PV} \
file://0001-lib-diag-do-not-use-a-variable-length-array-in-a-str.patch \
file://0002-lib-cap-cli-main-include-switchtec-endian.h-for-mus.patch \
"
SRCREV = "d995512f3bf1ceb98eefada813642d5ba5d62cd1"
inherit autotools-brokensep pkgconfig
EXTRA_OEMAKE = "DESTDIR='${D}' PREFIX='${prefix}' LDCONFIG='true' LIBDIR='${D}${libdir}'"
do_install () {
oe_runmake install
}