summaryrefslogtreecommitdiffstats
path: root/meta-initramfs/recipes-devtools/klibc/klibc_2.0.10.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-initramfs/recipes-devtools/klibc/klibc_2.0.10.bb')
-rw-r--r--meta-initramfs/recipes-devtools/klibc/klibc_2.0.10.bb26
1 files changed, 26 insertions, 0 deletions
diff --git a/meta-initramfs/recipes-devtools/klibc/klibc_2.0.10.bb b/meta-initramfs/recipes-devtools/klibc/klibc_2.0.10.bb
new file mode 100644
index 000000000..8dda9a8cd
--- /dev/null
+++ b/meta-initramfs/recipes-devtools/klibc/klibc_2.0.10.bb
@@ -0,0 +1,26 @@
1SUMMARY = "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