blob: bc80f382fe1e090368c92dd57356629685881010 [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001SUMMARY = "klibc, a small C library for use with initramfs"
2
3do_install() {
4 oe_runmake install
5 # the crosscompiler is packaged by klcc-cross
6 # remove klcc
7 rm ${D}${bindir}/klcc
8 # remove now empty dir
9 rmdir ${D}${bindir}
10 install -d ${D}${libdir}
11 install -m 755 usr/klibc/klibc-*.so ${D}${libdir}
12 (cd ${D}${libdir}; ln -s klibc-*.so klibc.so)
13}
14
15PACKAGES = "libklibc libklibc-staticdev libklibc-dev"
16
17FILES_libklibc = "${libdir}/klibc-*.so"
18FILES_libklibc-staticdev = "${libdir}/klibc/lib/libc.a"
19FILES_libklibc-dev = "${libdir}/klibc.so \
20 ${libdir}/klibc/lib/* \
21 ${libdir}/klibc/include/* \
22 "
23
24require klibc.inc