diff options
author | Khem Raj <raj.khem@gmail.com> | 2021-06-12 12:43:14 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-06-14 15:05:11 +0100 |
commit | c54865c1257f58854619846b9be4a618a4355949 (patch) | |
tree | e4662d45f17534062ab916323823739649a05402 /meta/recipes-core | |
parent | 29c42cf24da05abb499936556dad1902e110c5a7 (diff) | |
download | poky-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.bb | 42 |
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 | |||
4 | SUMMARY = "A library which provides glibc-compatible APIs for use on musl libc systems" | ||
5 | HOMEPAGE = "https://git.adelielinux.org/adelie/gcompat" | ||
6 | |||
7 | LICENSE = "NCSA" | ||
8 | LIC_FILES_CHKSUM = "file://LICENSE;md5=eb33ef4af05a9c7602843afb7adfe792" | ||
9 | |||
10 | SRC_URI = "git://git.adelielinux.org/adelie/gcompat.git;protocol=https;branch=current" | ||
11 | |||
12 | PV = "1.0.0+1.1+git${SRCPV}" | ||
13 | SRCREV = "af5a49e489fdc04b9cf02547650d7aeaccd43793" | ||
14 | |||
15 | S = "${WORKDIR}/git" | ||
16 | |||
17 | inherit pkgconfig linuxloader | ||
18 | |||
19 | DEPENDS += "musl-obstack" | ||
20 | |||
21 | GLIBC_LDSO = "${@get_glibc_loader(d)}" | ||
22 | MUSL_LDSO = "${@get_musl_loader(d)}" | ||
23 | |||
24 | EXTRA_OEMAKE = "LINKER_PATH=${MUSL_LDSO} LOADER_NAME=`basename ${@get_glibc_loader(d)}`" | ||
25 | |||
26 | do_configure () { | ||
27 | : | ||
28 | } | ||
29 | |||
30 | do_compile () { | ||
31 | oe_runmake | ||
32 | } | ||
33 | |||
34 | do_install () { | ||
35 | oe_runmake install 'DESTDIR=${D}' | ||
36 | } | ||
37 | # | ||
38 | # We will skip parsing for non-musl systems | ||
39 | # | ||
40 | COMPATIBLE_HOST = ".*-musl.*" | ||
41 | |||
42 | UPSTREAM_CHECK_COMMITS = "1" | ||