newlib.inc 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. SUMMARY = "Newlib is a C library intended for use on embedded systems"
  2. HOMEPAGE = "https://sourceware.org/newlib/"
  3. DESCRIPTION = "C library intended for use on embedded systems. It is a conglomeration of several library parts, all under free software licenses that make them easily usable on embedded products."
  4. SECTION = "libs"
  5. LICENSE = "GPLv2 & LGPLv3 & GPLv3 & LGPLv2 & BSD-2-Clause & tcl"
  6. LIC_FILES_CHKSUM = " \
  7. file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \
  8. file://COPYING3.LIB;md5=6a6a8e020838b23406c81b19c1d46df6 \
  9. file://COPYING3;md5=d32239bcb673463ab874e80d47fae504 \
  10. file://COPYING.LIBGLOSS;md5=54b778d585443cd7fbfa1b47cbd63a89 \
  11. file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1 \
  12. file://COPYING.NEWLIB;md5=ac17c68751aad7a5298ce3f249121070 \
  13. file://newlib/libc/posix/COPYRIGHT;md5=103468ff1982be840fdf4ee9f8b51bbf \
  14. file://newlib/libc/sys/linux/linuxthreads/LICENSE;md5=73640207fbc79b198c7ffd4ad4d97aa0 \
  15. "
  16. SRC_URI = "https://sourceware.org/pub/newlib/newlib-${PV}.tar.gz"
  17. SRC_URI[sha256sum] = "58dd9e3eaedf519360d92d84205c3deef0b3fc286685d1c562e245914ef72c66"
  18. INHIBIT_DEFAULT_DEPS = "1"
  19. DEPENDS = "virtual/${TARGET_PREFIX}gcc"
  20. S = "${WORKDIR}/newlib-${PV}"
  21. B = "${WORKDIR}/build"
  22. ## disable stdlib
  23. TARGET_CC_ARCH_append = " -nostdlib"
  24. EXTRA_OECONF = " \
  25. --build=${BUILD_SYS} \
  26. --target=${TARGET_SYS} \
  27. --host=${HOST_SYS} \
  28. --prefix=${prefix} \
  29. --exec-prefix=${exec_prefix} \
  30. --bindir=${bindir} \
  31. --libdir=${libdir} \
  32. --includedir=${includedir} \
  33. --enable-languages=c \
  34. --with-newlib \
  35. --with-gnu-as \
  36. --with-gnu-ld \
  37. --disable-multilib \
  38. --disable-newlib-supplied-syscalls \
  39. "
  40. do_configure[cleandirs] = "${B}"
  41. do_install() {
  42. oe_runmake install DESTDIR='${D}'
  43. }
  44. COMPATIBLE_HOST_libc-musl_class-target = "null"
  45. COMPATIBLE_HOST_libc-glibc_class-target = "null"