Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | require gdb-common.inc |
| 2 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 3 | DEPENDS = "expat-native ncurses-native" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 4 | |
| 5 | inherit pythonnative |
| 6 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 7 | # Overrides PACKAGECONFIG variables in gdb-common.inc |
| 8 | PACKAGECONFIG ??= "python readline" |
| 9 | PACKAGECONFIG[python] = "--with-python=${STAGING_BINDIR_NATIVE}/python-native/python,--without-python,python-native" |
| 10 | PACKAGECONFIG[readline] = "--with-system-readline,--without-system-readline,readline-native" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 11 | |
| 12 | do_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 | |
| 21 | GDBPROPREFIX = "" |
| 22 | |
| 23 | PN = "gdb-cross-${TARGET_ARCH}" |
| 24 | BPN = "gdb" |
| 25 | |
| 26 | inherit cross |
| 27 | inherit gettext |
| 28 | |
| 29 | datadir .= "/gdb-${TUNE_PKGARCH}${TARGET_VENDOR}-${TARGET_OS}" |