blob: 7df0b0a3d50cecd80c9145ddb09c68f5e4a458e9 [file] [log] [blame]
Brad Bishop19323692019-04-05 15:28:33 -04001SUMMARY = "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 rm -rf ${D}${exec_prefix}/man
14 rm -rf ${D}${libdir}/klibc/bin
15}
16
17PACKAGES = "libklibc libklibc-staticdev libklibc-dev"
18
19FILES_libklibc = "${libdir}/klibc-*.so"
20FILES_libklibc-staticdev = "${libdir}/klibc/lib/libc.a"
21FILES_libklibc-dev = "${libdir}/klibc.so \
22 ${libdir}/klibc/lib/* \
23 ${libdir}/klibc/include/* \
24 "
25
26require klibc.inc