diff options
Diffstat (limited to 'meta-microblaze/recipes-devtools/gdb/gdb-cross.inc')
-rw-r--r-- | meta-microblaze/recipes-devtools/gdb/gdb-cross.inc | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/meta-microblaze/recipes-devtools/gdb/gdb-cross.inc b/meta-microblaze/recipes-devtools/gdb/gdb-cross.inc new file mode 100644 index 00000000..9f9675c1 --- /dev/null +++ b/meta-microblaze/recipes-devtools/gdb/gdb-cross.inc | |||
@@ -0,0 +1,31 @@ | |||
1 | require gdb-common.inc | ||
2 | |||
3 | DEPENDS = "expat-native gmp-native ncurses-native flex-native bison-native" | ||
4 | |||
5 | inherit python3native pkgconfig | ||
6 | |||
7 | # Overrides PACKAGECONFIG variables in gdb-common.inc | ||
8 | PACKAGECONFIG ??= "python readline ${@bb.utils.filter('DISTRO_FEATURES', 'debuginfod', d)}" | ||
9 | PACKAGECONFIG[python] = "--with-python=${PYTHON},--without-python,python3-native" | ||
10 | PACKAGECONFIG[readline] = "--with-system-readline,--without-system-readline,readline-native" | ||
11 | PACKAGECONFIG[debuginfod] = "--with-debuginfod, --without-debuginfod, elfutils-native" | ||
12 | |||
13 | do_compile:prepend() { | ||
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 | |||
25 | # Ignore how TARGET_ARCH is computed. | ||
26 | TARGET_ARCH[vardepvalue] = "${TARGET_ARCH}" | ||
27 | |||
28 | inherit cross | ||
29 | inherit gettext | ||
30 | |||
31 | datadir .= "/gdb-${TARGET_SYS}${TARGET_VENDOR}-${TARGET_OS}" | ||