Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 1 | SUMMARY = "klibc, a small C library for use with initramfs" |
| 2 | |
| 3 | do_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 | |
| 17 | PACKAGES = "libklibc libklibc-staticdev libklibc-dev" |
| 18 | |
| 19 | FILES_libklibc = "${libdir}/klibc-*.so" |
| 20 | FILES_libklibc-staticdev = "${libdir}/klibc/lib/libc.a" |
| 21 | FILES_libklibc-dev = "${libdir}/klibc.so \ |
| 22 | ${libdir}/klibc/lib/* \ |
| 23 | ${libdir}/klibc/include/* \ |
| 24 | " |
| 25 | |
| 26 | require klibc.inc |