diff options
author | Andrea Adami <andrea.adami@gmail.com> | 2012-05-03 22:30:51 +0000 |
---|---|---|
committer | Koen Kooi <koen@dominion.thruhere.net> | 2012-05-10 16:38:13 +0200 |
commit | 32d316edae416b88159472a3b4f904a830090000 (patch) | |
tree | 401a180f31a56e32121e121fae37b0042805a07b /meta-initramfs/recipes-devtools/klibc/klibc_1.5.26.bb | |
parent | 1beefee9cd3fb01def4af8131d65291b4cd83c28 (diff) | |
download | meta-openembedded-32d316edae416b88159472a3b4f904a830090000.tar.gz |
klibc: upgrade from 1.5.25 to 1.5.26
* minor updates, still waiting for release 2.0
* v2 adds another (sometimes) missing header
Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Diffstat (limited to 'meta-initramfs/recipes-devtools/klibc/klibc_1.5.26.bb')
-rw-r--r-- | meta-initramfs/recipes-devtools/klibc/klibc_1.5.26.bb | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/meta-initramfs/recipes-devtools/klibc/klibc_1.5.26.bb b/meta-initramfs/recipes-devtools/klibc/klibc_1.5.26.bb new file mode 100644 index 0000000000..c583fdc4f9 --- /dev/null +++ b/meta-initramfs/recipes-devtools/klibc/klibc_1.5.26.bb @@ -0,0 +1,46 @@ +PR = "${INC_PR}.0" + +export INST = "${D}" + +do_compile_prepend() { + + # after kernel 3.1 the headers are moved in /generated + if [ ! -e ${STAGING_KERNEL_DIR}/arch/${TARGET_ARCH}/include/asm/bitsperlong.h ] + then + ln -sf ${STAGING_KERNEL_DIR}/arch/${TARGET_ARCH}/include/generated/asm/bitsperlong.h ${STAGING_KERNEL_DIR}/arch/${TARGET_ARCH}/include/asm/bitsperlong.h + ln -sf ${STAGING_KERNEL_DIR}/arch/${TARGET_ARCH}/include/generated/asm/errno.h ${STAGING_KERNEL_DIR}/arch/${TARGET_ARCH}/include/asm/errno.h + ln -sf ${STAGING_KERNEL_DIR}/arch/${TARGET_ARCH}/include/generated/asm/ioctl.h ${STAGING_KERNEL_DIR}/arch/${TARGET_ARCH}/include/asm/ioctl.h + ln -sf ${STAGING_KERNEL_DIR}/arch/${TARGET_ARCH}/include/generated/asm/poll.h ${STAGING_KERNEL_DIR}/arch/${TARGET_ARCH}/include/asm/poll.h + ln -sf ${STAGING_KERNEL_DIR}/arch/${TARGET_ARCH}/include/generated/asm/resource.h ${STAGING_KERNEL_DIR}/arch/${TARGET_ARCH}/include/asm/resource.h + fi + +} + +do_install() { + + oe_runmake install + + # the crosscompiler is packaged by klcc-cross + # remove klcc + rm ${D}${base_bindir}/klcc + # remove now empty dir + rmdir ${D}${base_bindir} + + # remove Linux headers .install and ..install.cmd files + find ${D}${base_libdir}/klibc/include -name '.install' -delete + find ${D}${base_libdir}/klibc/include -name '..install.cmd' -delete + + install -d ${D}${base_libdir} + install -m 755 usr/klibc/klibc-*.so ${D}${base_libdir} + (cd ${D}${base_libdir}; ln -s klibc-*.so klibc.so) + +} + +PACKAGES = "libklibc libklibc-staticdev libklibc-dev" +FILES_libklibc = "${base_libdir}/klibc-*.so" +FILES_libklibc-staticdev = "${base_libdir}/klibc/lib/libc.a" +FILES_libklibc-dev = "${base_libdir}/klibc.so \ + ${base_libdir}/klibc/lib/* \ + ${base_libdir}/klibc/include/* \ + " +require klibc.inc |