mirror of
https://github.com/thead-yocto-mirror/meta-openembedded
synced 2026-09-09 23:54:39 +02:00
I need (some of) the gpiod tools in my initramfs. That, of course, pulls in the workhorse in the form of the libgpiod C library. But it also pulls in the C++ library which is cobundled with libgpiod, which in turn means that libstdc++ gets pulled in, adding about 2.5MB to the initramfs. Fix that by splitting the C++ library to its own package. Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk> Signed-off-by: Khem Raj <raj.khem@gmail.com>
20 lines
525 B
PHP
20 lines
525 B
PHP
SUMMARY = "C library and tools for interacting with the linux GPIO character device"
|
|
|
|
LICENSE = "LGPLv2.1+"
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=2caced0b25dfefd4c601d92bd15116de"
|
|
|
|
SRC_URI = "https://www.kernel.org/pub/software/libs/libgpiod/${BP}.tar.xz"
|
|
|
|
inherit autotools pkgconfig
|
|
|
|
PACKAGECONFIG[tests] = "--enable-tests,--disable-tests,kmod udev"
|
|
|
|
EXTRA_OECONF = "--enable-tools"
|
|
|
|
PACKAGES =+ " ${PN}-tools"
|
|
|
|
FILES_${PN}-tools = "${bindir}/*"
|
|
|
|
PACKAGES =+ "libgpiodcxx"
|
|
FILES_libgpiodcxx = "${libdir}/libgpiodcxx.so.*"
|