summaryrefslogtreecommitdiffstats
path: root/meta-initramfs/recipes-devtools/klibc/klibc_2.0.13.bb
blob: 8dda9a8cdccba9ddf1cb3655f019e460d6572542 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
SUMMARY = "klibc, a small C library for use with initramfs"

do_install() {
    oe_runmake install
    # the crosscompiler is packaged by klcc-cross
    # remove klcc
    rm ${D}${bindir}/klcc
    # remove now empty dir
    rmdir ${D}${bindir}
    install -d ${D}${libdir}
    install -m 755 usr/klibc/klibc-*.so ${D}${libdir}
    (cd  ${D}${libdir}; ln -s klibc-*.so klibc.so)
    rm -rf ${D}${exec_prefix}/man
    rm -rf ${D}${libdir}/klibc/bin
}

PACKAGES = "libklibc libklibc-staticdev libklibc-dev"

FILES:libklibc = "${libdir}/klibc-*.so"
FILES:libklibc-staticdev = "${libdir}/klibc/lib/libc.a"
FILES:libklibc-dev = "${libdir}/klibc.so \
                      ${libdir}/klibc/lib/* \
                      ${libdir}/klibc/include/* \
                      "

require klibc.inc