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