Andrew Geissler | aaf90cd | 2021-02-12 15:29:51 -0600 | [diff] [blame^] | 1 | require gdb-common.inc |
| 2 | |
| 3 | DEPENDS = "expat-native ncurses-native flex-native bison-native" |
| 4 | |
| 5 | inherit python3native |
| 6 | |
| 7 | # Overrides PACKAGECONFIG variables in gdb-common.inc |
| 8 | PACKAGECONFIG ??= "python readline" |
| 9 | PACKAGECONFIG[python] = "--with-python=${PYTHON},--without-python,python3-native" |
| 10 | PACKAGECONFIG[readline] = "--with-system-readline,--without-system-readline,readline-native" |
| 11 | |
| 12 | do_compile_prepend() { |
| 13 | export STAGING_LIBDIR="${STAGING_LIBDIR_NATIVE}" |
| 14 | export STAGING_INCDIR="${STAGING_INCDIR_NATIVE}" |
| 15 | } |
| 16 | |
| 17 | #EXTRA_OEMAKE += "LDFLAGS='${BUILD_LDFLAGS}'" |
| 18 | |
| 19 | GDBPROPREFIX = "" |
| 20 | |
| 21 | PN = "gdb-cross-${TARGET_ARCH}" |
| 22 | BPN = "gdb" |
| 23 | |
| 24 | # Ignore how TARGET_ARCH is computed. |
| 25 | TARGET_ARCH[vardepvalue] = "${TARGET_ARCH}" |
| 26 | |
| 27 | inherit cross |
| 28 | inherit gettext |
| 29 | |
| 30 | datadir .= "/gdb-${TARGET_SYS}${TARGET_VENDOR}-${TARGET_OS}" |