summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2021-06-12 12:43:14 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-06-14 15:05:11 +0100
commitc54865c1257f58854619846b9be4a618a4355949 (patch)
treee4662d45f17534062ab916323823739649a05402 /meta/recipes-core
parent29c42cf24da05abb499936556dad1902e110c5a7 (diff)
downloadpoky-c54865c1257f58854619846b9be4a618a4355949.tar.gz
gcompat: Add recipe
This is a compat library which helps running pre-compiled binaries which were compiled for glibc but needs to run on musl systems, this is quite common case where pre-existing binaries are supplied and can not be recompiled immediately (From OE-Core rev: 5efe7c06c8555672b535adae587596f65bff4fc5) Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r--meta/recipes-core/musl/gcompat_git.bb42
1 files changed, 42 insertions, 0 deletions
diff --git a/meta/recipes-core/musl/gcompat_git.bb b/meta/recipes-core/musl/gcompat_git.bb
new file mode 100644
index 0000000000..6792c0be70
--- /dev/null
+++ b/meta/recipes-core/musl/gcompat_git.bb
@@ -0,0 +1,42 @@
1# Copyright (C) 2021 Khem Raj <raj.khem@gmail.com>
2# Released under the MIT license (see COPYING.MIT for the terms)
3
4SUMMARY = "A library which provides glibc-compatible APIs for use on musl libc systems"
5HOMEPAGE = "https://git.adelielinux.org/adelie/gcompat"
6
7LICENSE = "NCSA"
8LIC_FILES_CHKSUM = "file://LICENSE;md5=eb33ef4af05a9c7602843afb7adfe792"
9
10SRC_URI = "git://git.adelielinux.org/adelie/gcompat.git;protocol=https;branch=current"
11
12PV = "1.0.0+1.1+git${SRCPV}"
13SRCREV = "af5a49e489fdc04b9cf02547650d7aeaccd43793"
14
15S = "${WORKDIR}/git"
16
17inherit pkgconfig linuxloader
18
19DEPENDS += "musl-obstack"
20
21GLIBC_LDSO = "${@get_glibc_loader(d)}"
22MUSL_LDSO = "${@get_musl_loader(d)}"
23
24EXTRA_OEMAKE = "LINKER_PATH=${MUSL_LDSO} LOADER_NAME=`basename ${@get_glibc_loader(d)}`"
25
26do_configure () {
27 :
28}
29
30do_compile () {
31 oe_runmake
32}
33
34do_install () {
35 oe_runmake install 'DESTDIR=${D}'
36}
37#
38# We will skip parsing for non-musl systems
39#
40COMPATIBLE_HOST = ".*-musl.*"
41
42UPSTREAM_CHECK_COMMITS = "1"