blob: 5fa7c3367d0201273e0ce7cb282cf927bee08c02 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001require gdb-common.inc
2
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05003DEPENDS = "expat-native ncurses-native"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05004
Patrick Williamsc0f7c042017-02-23 20:41:17 -06005inherit python3native
Patrick Williamsc124f4f2015-09-15 14:41:29 -05006
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05007# Overrides PACKAGECONFIG variables in gdb-common.inc
8PACKAGECONFIG ??= "python readline"
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"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050011
12do_compile_prepend() {
Patrick Williamsc124f4f2015-09-15 14:41:29 -050013 export STAGING_LIBDIR="${STAGING_LIBDIR_NATIVE}"
14 export STAGING_INCDIR="${STAGING_INCDIR_NATIVE}"
15}
16
17#EXTRA_OEMAKE += "LDFLAGS='${BUILD_LDFLAGS}'"
18
19GDBPROPREFIX = ""
20
21PN = "gdb-cross-${TARGET_ARCH}"
22BPN = "gdb"
23
24inherit cross
25inherit gettext
26
27datadir .= "/gdb-${TUNE_PKGARCH}${TARGET_VENDOR}-${TARGET_OS}"