Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | require gdb-common.inc |
| 2 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 3 | DEPENDS = "expat-native ncurses-native flex-native bison-native" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 4 | |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 5 | inherit python3native |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 6 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 7 | # Overrides PACKAGECONFIG variables in gdb-common.inc |
Andrew Geissler | 0903674 | 2021-06-25 14:25:14 -0500 | [diff] [blame] | 8 | PACKAGECONFIG ??= "python readline ${@bb.utils.filter('DISTRO_FEATURES', 'debuginfod', d)}" |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 9 | PACKAGECONFIG[python] = "--with-python=${PYTHON},--without-python,python3-native" |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 10 | PACKAGECONFIG[readline] = "--with-system-readline,--without-system-readline,readline-native" |
Andrew Geissler | 0903674 | 2021-06-25 14:25:14 -0500 | [diff] [blame] | 11 | PACKAGECONFIG[debuginfod] = "--with-debuginfod, --without-debuginfod, elfutils-native" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 12 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 13 | do_compile:prepend() { |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 14 | export STAGING_LIBDIR="${STAGING_LIBDIR_NATIVE}" |
| 15 | export STAGING_INCDIR="${STAGING_INCDIR_NATIVE}" |
| 16 | } |
| 17 | |
| 18 | #EXTRA_OEMAKE += "LDFLAGS='${BUILD_LDFLAGS}'" |
| 19 | |
| 20 | GDBPROPREFIX = "" |
| 21 | |
| 22 | PN = "gdb-cross-${TARGET_ARCH}" |
| 23 | BPN = "gdb" |
| 24 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 25 | # Ignore how TARGET_ARCH is computed. |
| 26 | TARGET_ARCH[vardepvalue] = "${TARGET_ARCH}" |
| 27 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 28 | inherit cross |
| 29 | inherit gettext |
| 30 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 31 | datadir .= "/gdb-${TARGET_SYS}${TARGET_VENDOR}-${TARGET_OS}" |