diff options
Diffstat (limited to 'meta/recipes-core/musl/musl_git.bb')
-rw-r--r-- | meta/recipes-core/musl/musl_git.bb | 58 |
1 files changed, 58 insertions, 0 deletions
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" | ||