musl-rpmatch_git.bb: add new recipe to provide rpmatch() for musl libc builds

Musl does not provide rpmatch() while glibc does. This is a standalone
implementation for musl libc based systems.

Using it for a recipe is as simple as adding the dependency and adding
-lrpmatch to the LDFLAGS for linking. An example for plymouth is
provided as follow up patch.

Signed-off-by: Stefan Schmidt <stefan.schmidt@huawei.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Stefan Schmidt
2021-03-18 20:32:35 +01:00
committed by Khem Raj
parent 60d58ceb8f
commit ad220639dd
@@ -0,0 +1,12 @@
SUMMARY = "Implementation of rpmatch(3) for musl libc."
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://COPYING;md5=81a81bf31abecc50c20862fc8a716329"
SRC_URI = "gitsm://github.com/pullmoll/musl-rpmatch.git;protocol=https"
PV = "1.0+git${SRCPV}"
SRCREV = "46267b154987d3e1f25d3a75423faa62bb5ee342"
inherit autotools
S = "${WORKDIR}/git"