blob: 9f9675c1b324a0bee8177e625ab525eca470cd76 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001require gdb-common.inc
2
Andrew Geissler595f6302022-01-24 19:11:47 +00003DEPENDS = "expat-native gmp-native ncurses-native flex-native bison-native"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05004
Andrew Geissler5199d832021-09-24 16:47:35 -05005inherit python3native pkgconfig
Patrick Williamsc124f4f2015-09-15 14:41:29 -05006
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05007# Overrides PACKAGECONFIG variables in gdb-common.inc
Andrew Geissler09036742021-06-25 14:25:14 -05008PACKAGECONFIG ??= "python readline ${@bb.utils.filter('DISTRO_FEATURES', 'debuginfod', d)}"
Patrick Williamsc0f7c042017-02-23 20:41:17 -06009PACKAGECONFIG[python] = "--with-python=${PYTHON},--without-python,python3-native"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050010PACKAGECONFIG[readline] = "--with-system-readline,--without-system-readline,readline-native"
Andrew Geissler09036742021-06-25 14:25:14 -050011PACKAGECONFIG[debuginfod] = "--with-debuginfod, --without-debuginfod, elfutils-native"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050012
Patrick Williams213cb262021-08-07 19:21:33 -050013do_compile:prepend() {
Patrick Williamsc124f4f2015-09-15 14:41:29 -050014 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
Brad Bishop6e60e8b2018-02-01 10:27:11 -050025# Ignore how TARGET_ARCH is computed.
26TARGET_ARCH[vardepvalue] = "${TARGET_ARCH}"
27
Patrick Williamsc124f4f2015-09-15 14:41:29 -050028inherit cross
29inherit gettext
30
Brad Bishop6e60e8b2018-02-01 10:27:11 -050031datadir .= "/gdb-${TARGET_SYS}${TARGET_VENDOR}-${TARGET_OS}"