gdb-cross.inc 961 B

12345678910111213141516171819202122232425262728293031
  1. require gdb-common.inc
  2. DEPENDS = "expat-native gmp-native ncurses-native flex-native bison-native"
  3. inherit python3native pkgconfig
  4. # Overrides PACKAGECONFIG variables in gdb-common.inc
  5. PACKAGECONFIG ??= "python readline ${@bb.utils.filter('DISTRO_FEATURES', 'debuginfod', d)}"
  6. PACKAGECONFIG[python] = "--with-python=${PYTHON},--without-python,python3-native"
  7. PACKAGECONFIG[readline] = "--with-system-readline,--without-system-readline,readline-native"
  8. PACKAGECONFIG[debuginfod] = "--with-debuginfod, --without-debuginfod, elfutils-native"
  9. do_compile:prepend() {
  10. export STAGING_LIBDIR="${STAGING_LIBDIR_NATIVE}"
  11. export STAGING_INCDIR="${STAGING_INCDIR_NATIVE}"
  12. }
  13. #EXTRA_OEMAKE += "LDFLAGS='${BUILD_LDFLAGS}'"
  14. GDBPROPREFIX = ""
  15. PN = "gdb-cross-${TARGET_ARCH}"
  16. BPN = "gdb"
  17. # Ignore how TARGET_ARCH is computed.
  18. TARGET_ARCH[vardepvalue] = "${TARGET_ARCH}"
  19. inherit cross
  20. inherit gettext
  21. datadir .= "/gdb-${TARGET_SYS}${TARGET_VENDOR}-${TARGET_OS}"