diff options
author | Khem Raj <raj.khem@gmail.com> | 2015-11-19 00:07:58 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-12-12 23:42:55 +0000 |
commit | fd21402148903c1658df56bc9a1fbe032eb39fcc (patch) | |
tree | 687caef322c69f02b65b5683702b43c07602fd52 /meta/recipes-core/musl | |
parent | 781d34f9dbec27c09bc47e29591342ba65a246bb (diff) | |
download | poky-fd21402148903c1658df56bc9a1fbe032eb39fcc.tar.gz |
musl: Add recipe
musl is posix compliant C library for linux
(From OE-Core rev: cab51a83f833001dfce538a385d304e49377c189)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/musl')
-rw-r--r-- | meta/recipes-core/musl/musl.inc | 26 | ||||
-rw-r--r-- | meta/recipes-core/musl/musl_git.bb | 58 |
2 files changed, 84 insertions, 0 deletions
diff --git a/meta/recipes-core/musl/musl.inc b/meta/recipes-core/musl/musl.inc new file mode 100644 index 0000000000..c3fd5c874a --- /dev/null +++ b/meta/recipes-core/musl/musl.inc | |||
@@ -0,0 +1,26 @@ | |||
1 | # Copyright (C) 2014 Khem Raj <raj.khem@gmail.com> | ||
2 | # Released under the MIT license (see COPYING.MIT for the terms) | ||
3 | |||
4 | SUMMARY = "An implementation of the standard library for Linux-based systems" | ||
5 | DESCRIPTION = "A new standard library to power a new generation of Linux-based devices. \ | ||
6 | musl is lightweight, fast, simple, free, and strives to be correct in the sense of \ | ||
7 | standards-conformance and safety." | ||
8 | |||
9 | HOMEPAGE = "http://www.musl-libc.org/" | ||
10 | LICENSE = "MIT" | ||
11 | SECTION = "libs" | ||
12 | LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=bccdfe36b123d1b0757d8025278d86ba" | ||
13 | |||
14 | PATH_prepend = "${STAGING_BINDIR_TOOLCHAIN}.${STAGINGCC}:" | ||
15 | TOOLCHAIN_OPTIONS = " --sysroot=${STAGING_DIR_TCBOOTSTRAP}" | ||
16 | |||
17 | INHIBIT_DEFAULT_DEPS = "1" | ||
18 | |||
19 | STAGINGCC = "gcc-cross-initial-${TARGET_ARCH}" | ||
20 | STAGINGCC_class-nativesdk = "gcc-crosssdk-initial-${TARGET_ARCH}" | ||
21 | |||
22 | |||
23 | FILES_SOLIBSDEV = "" | ||
24 | FILES_${PN} += "${libdir}/lib*${SOLIBSDEV}" | ||
25 | INSANE_SKIP_${PN} = "dev-so" | ||
26 | |||
diff --git a/meta/recipes-core/musl/musl_git.bb b/meta/recipes-core/musl/musl_git.bb new file mode 100644 index 0000000000..1feb436667 --- /dev/null +++ b/meta/recipes-core/musl/musl_git.bb | |||
@@ -0,0 +1,58 @@ | |||
1 | # Copyright (C) 2014 Khem Raj <raj.khem@gmail.com> | ||
2 | # Released under the MIT license (see COPYING.MIT for the terms) | ||
3 | |||
4 | require musl.inc | ||
5 | |||
6 | SRCREV = "6c5cad2aa56745302c1d42d2c8baf6424d29c0f3" | ||
7 | |||
8 | PV = "1.1.11+git${SRCPV}" | ||
9 | |||
10 | # mirror is at git://github.com/bminor/musl.git | ||
11 | |||
12 | SRC_URI = "git://git.musl-libc.org/musl \ | ||
13 | " | ||
14 | |||
15 | S = "${WORKDIR}/git" | ||
16 | |||
17 | PROVIDES += "virtual/libc virtual/${TARGET_PREFIX}libc-for-gcc virtual/libiconv virtual/libintl" | ||
18 | |||
19 | DEPENDS = "virtual/${TARGET_PREFIX}binutils \ | ||
20 | virtual/${TARGET_PREFIX}gcc-initial \ | ||
21 | libgcc-initial \ | ||
22 | " | ||
23 | |||
24 | export CROSS_COMPILE="${TARGET_PREFIX}" | ||
25 | |||
26 | EXTRA_OEMAKE = "" | ||
27 | |||
28 | LDFLAGS += "-Wl,-soname,libc.so" | ||
29 | |||
30 | CONFIGUREOPTS = " \ | ||
31 | --prefix=${prefix} \ | ||
32 | --exec-prefix=${exec_prefix} \ | ||
33 | --bindir=${bindir} \ | ||
34 | --libdir=${libdir} \ | ||
35 | --includedir=${includedir} \ | ||
36 | --syslibdir=${base_libdir} \ | ||
37 | " | ||
38 | |||
39 | do_configure() { | ||
40 | ${S}/configure ${CONFIGUREOPTS} | ||
41 | } | ||
42 | |||
43 | do_compile() { | ||
44 | oe_runmake | ||
45 | } | ||
46 | |||
47 | do_install() { | ||
48 | oe_runmake install DESTDIR='${D}' | ||
49 | |||
50 | install -d ${D}${bindir} | ||
51 | ln -s ${libdir}/libc.so ${D}${bindir}/ldd | ||
52 | } | ||
53 | |||
54 | RDEPENDS_${PN}-dev = "linux-libc-headers-dev" | ||
55 | RPROVIDES_${PN}-dev += "libc-dev virtual-libc-dev" | ||
56 | RPROVIDES_${PN} += "ldd libsegfault rtld(GNU_HASH)" | ||
57 | |||
58 | LEAD_SONAME = "libc.so" | ||