blob: 2468d23037d721bd4c0872446adf932fd060fee9 [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
5inherit pythonnative
6
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05007# Overrides PACKAGECONFIG variables in gdb-common.inc
8PACKAGECONFIG ??= "python readline"
9PACKAGECONFIG[python] = "--with-python=${STAGING_BINDIR_NATIVE}/python-native/python,--without-python,python-native"
10PACKAGECONFIG[readline] = "--with-system-readline,--without-system-readline,readline-native"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050011
12do_compile_prepend() {
13 export BUILD_SYS="${BUILD_SYS}"
14 export HOST_SYS="${HOST_SYS}"
15 export STAGING_LIBDIR="${STAGING_LIBDIR_NATIVE}"
16 export STAGING_INCDIR="${STAGING_INCDIR_NATIVE}"
17}
18
19#EXTRA_OEMAKE += "LDFLAGS='${BUILD_LDFLAGS}'"
20
21GDBPROPREFIX = ""
22
23PN = "gdb-cross-${TARGET_ARCH}"
24BPN = "gdb"
25
26inherit cross
27inherit gettext
28
29datadir .= "/gdb-${TUNE_PKGARCH}${TARGET_VENDOR}-${TARGET_OS}"