gdb-common.inc 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. SUMMARY = "GNU debugger"
  2. HOMEPAGE = "http://www.gnu.org/software/gdb/"
  3. SECTION = "devel"
  4. DEPENDS = "expat zlib ncurses virtual/libiconv ${LTTNGUST} bison-native"
  5. LTTNGUST = "lttng-ust"
  6. LTTNGUST_arc = ""
  7. LTTNGUST_aarch64 = ""
  8. LTTNGUST_mipsarch = ""
  9. LTTNGUST_sh4 = ""
  10. inherit autotools texinfo
  11. UPSTREAM_CHECK_GITTAGREGEX = "gdb\-(?P<pver>.+)\-release"
  12. B = "${WORKDIR}/build-${TARGET_SYS}"
  13. EXPAT = "--with-expat --with-libexpat-prefix=${STAGING_DIR_HOST}"
  14. EXTRA_OECONF = "--disable-gdbtk --disable-x --disable-werror \
  15. --with-curses --disable-multilib --disable-sim \
  16. --without-lzma --without-guile \
  17. ${GDBPROPREFIX} ${EXPAT} \
  18. ${@bb.utils.contains('DISTRO_FEATURES', 'multiarch', '--enable-64-bit-bfd', '', d)} \
  19. --disable-rpath \
  20. --disable-gas --disable-binutils \
  21. --disable-ld --disable-gold \
  22. --disable-gprof \
  23. "
  24. PACKAGECONFIG ??= "readline"
  25. # Use --without-system-readline to compile with readline 5.
  26. PACKAGECONFIG[readline] = "--with-system-readline,--without-system-readline,readline"
  27. PACKAGECONFIG[python] = "--with-python=${WORKDIR}/python,--without-python,python3,python3 python3-codecs"
  28. PACKAGECONFIG[babeltrace] = "--with-babeltrace,--without-babeltrace,babeltrace"
  29. # ncurses is already a hard DEPENDS, but would be added here if it weren't
  30. PACKAGECONFIG[tui] = "--enable-tui,--disable-tui"
  31. GDBPROPREFIX = "--program-prefix=''"
  32. DISABLE_STATIC = ""
  33. do_configure () {
  34. # override this function to avoid the autoconf/automake/aclocal/autoheader
  35. # calls for now
  36. (cd ${S} && gnu-configize) || die "failure in running gnu-configize"
  37. oe_runconf
  38. }
  39. # we don't want gdb to provide bfd/iberty/opcodes, which instead will override the
  40. # right bits installed by binutils. Same for bfd.info -- also from binutils.
  41. do_install_append() {
  42. rm -rf ${D}${libdir}
  43. rm -rf ${D}${includedir}
  44. rm -rf ${D}${datadir}/locale
  45. rm -f ${D}${infodir}/bfd.info
  46. }
  47. RRECOMMENDS_gdb_append_linux = " glibc-thread-db "
  48. RRECOMMENDS_gdb_append_linux-gnueabi = " glibc-thread-db "
  49. RRECOMMENDS_gdbserver_append_linux = " glibc-thread-db "
  50. RRECOMMENDS_gdbserver_append_linux-gnueabi = " glibc-thread-db "