gdb-common.inc 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. SUMMARY = "GNU debugger"
  2. HOMEPAGE = "http://www.gnu.org/software/gdb/"
  3. DESCRIPTION = "GDB, the GNU Project debugger, allows you to see what is going on inside another program while it executes -- or what another program was doing at the moment it crashed."
  4. SECTION = "devel"
  5. DEPENDS = "expat gmp zlib ncurses virtual/libiconv ${LTTNGUST} bison-native"
  6. LTTNGUST = "lttng-ust"
  7. LTTNGUST:arc = ""
  8. LTTNGUST:aarch64 = ""
  9. LTTNGUST:mipsarch = ""
  10. LTTNGUST:sh4 = ""
  11. inherit autotools texinfo
  12. UPSTREAM_CHECK_GITTAGREGEX = "gdb\-(?P<pver>.+)\-release"
  13. B = "${WORKDIR}/build-${TARGET_SYS}"
  14. EXPAT = "--with-expat --with-libexpat-prefix=${STAGING_DIR_HOST}"
  15. EXTRA_OECONF = "--disable-gdbtk --disable-x --disable-werror \
  16. --with-curses --disable-multilib --disable-sim \
  17. --without-guile \
  18. ${GDBPROPREFIX} ${EXPAT} \
  19. ${@bb.utils.contains('DISTRO_FEATURES', 'multiarch', '--enable-64-bit-bfd', '', d)} \
  20. --disable-rpath \
  21. --disable-gas --disable-binutils \
  22. --disable-ld --disable-gold \
  23. --disable-gprof \
  24. --with-libgmp-prefix=${STAGING_EXECPREFIXDIR} \
  25. "
  26. PACKAGECONFIG ??= "readline ${@bb.utils.filter('DISTRO_FEATURES', 'debuginfod', d)} python"
  27. # Use --without-system-readline to compile with readline 5.
  28. PACKAGECONFIG[readline] = "--with-system-readline,--without-system-readline,readline"
  29. PACKAGECONFIG[python] = "--with-python=${WORKDIR}/python,--without-python,python3,python3-codecs"
  30. PACKAGECONFIG[babeltrace] = "--with-babeltrace,--without-babeltrace,babeltrace"
  31. PACKAGECONFIG[tui] = "--enable-tui,--disable-tui,,ncurses-terminfo-base"
  32. PACKAGECONFIG[xz] = "--with-lzma --with-liblzma-prefix=${STAGING_DIR_HOST},--without-lzma,xz"
  33. PACKAGECONFIG[debuginfod] = "--with-debuginfod, --without-debuginfod, elfutils"
  34. GDBPROPREFIX = "--program-prefix=''"
  35. DISABLE_STATIC = ""
  36. do_configure () {
  37. # override this function to avoid the autoconf/automake/aclocal/autoheader
  38. # calls for now
  39. (cd ${S} && gnu-configize) || die "failure in running gnu-configize"
  40. oe_runconf
  41. }
  42. # we don't want gdb to provide bfd/iberty/opcodes, which instead will override the
  43. # right bits installed by binutils. Same for bfd.info -- also from binutils.
  44. do_install:append() {
  45. rm -rf ${D}${libdir}
  46. rm -rf ${D}${includedir}
  47. rm -rf ${D}${datadir}/locale
  48. rm -f ${D}${infodir}/bfd.info
  49. rm -f ${D}${infodir}/sframe-spec.info
  50. }
  51. RRECOMMENDS:gdb:append:linux = " glibc-thread-db "
  52. RRECOMMENDS:gdb:append:linux-gnueabi = " glibc-thread-db "
  53. RRECOMMENDS:gdbserver:append:linux = " glibc-thread-db "
  54. RRECOMMENDS:gdbserver:append:linux-gnueabi = " glibc-thread-db "