Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [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 | } |
| 14 | |
| 15 | PACKAGES = "libklibc libklibc-staticdev libklibc-dev" |
| 16 | |
| 17 | FILES_libklibc = "${libdir}/klibc-*.so" |
| 18 | FILES_libklibc-staticdev = "${libdir}/klibc/lib/libc.a" |
| 19 | FILES_libklibc-dev = "${libdir}/klibc.so \ |
| 20 | ${libdir}/klibc/lib/* \ |
| 21 | ${libdir}/klibc/include/* \ |
| 22 | " |
| 23 | |
| 24 | require klibc.inc |