diff options
Diffstat (limited to 'meta-microblaze/recipes-devtools/gdb/gdb-cross-canadian.inc')
| -rw-r--r-- | meta-microblaze/recipes-devtools/gdb/gdb-cross-canadian.inc | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/meta-microblaze/recipes-devtools/gdb/gdb-cross-canadian.inc b/meta-microblaze/recipes-devtools/gdb/gdb-cross-canadian.inc deleted file mode 100644 index c463574b..00000000 --- a/meta-microblaze/recipes-devtools/gdb/gdb-cross-canadian.inc +++ /dev/null | |||
| @@ -1,44 +0,0 @@ | |||
| 1 | inherit cross-canadian | ||
| 2 | inherit python3-dir | ||
| 3 | inherit pkgconfig | ||
| 4 | |||
| 5 | SUMMARY = "GNU debugger (cross-canadian gdb for ${TARGET_ARCH} target)" | ||
| 6 | PN = "gdb-cross-canadian-${TRANSLATED_TARGET_ARCH}" | ||
| 7 | BPN = "gdb" | ||
| 8 | |||
| 9 | DEPENDS = "nativesdk-ncurses nativesdk-expat nativesdk-gettext nativesdk-gmp \ | ||
| 10 | virtual/${HOST_PREFIX}gcc virtual/${HOST_PREFIX}binutils virtual/nativesdk-libc" | ||
| 11 | |||
| 12 | GDBPROPREFIX = "--program-prefix='${TARGET_PREFIX}'" | ||
| 13 | |||
| 14 | # Overrides PACKAGECONFIG variables in gdb-common.inc | ||
| 15 | PACKAGECONFIG ??= "readline ${@bb.utils.filter('DISTRO_FEATURES', 'debuginfod', d)}" | ||
| 16 | PACKAGECONFIG[python] = "--with-python=${WORKDIR}/python,--without-python,nativesdk-python3, \ | ||
| 17 | nativesdk-python3-core \ | ||
| 18 | nativesdk-python3-codecs nativesdk-python3-netclient \ | ||
| 19 | " | ||
| 20 | PACKAGECONFIG[readline] = "--with-system-readline,--without-system-readline,nativesdk-readline" | ||
| 21 | PACKAGECONFIG[debuginfod] = "--with-debuginfod, --without-debuginfod, nativesdk-elfutils" | ||
| 22 | |||
| 23 | SSTATE_ALLOW_OVERLAP_FILES += "${STAGING_DATADIR}/gdb" | ||
| 24 | |||
| 25 | do_configure:prepend() { | ||
| 26 | cat > ${WORKDIR}/python << EOF | ||
| 27 | #! /bin/sh | ||
| 28 | case "\$2" in | ||
| 29 | --includes) echo "-I${STAGING_INCDIR}/${PYTHON_DIR}${PYTHON_ABI}/" ;; | ||
| 30 | --ldflags) echo "-Wl,-rpath-link,${STAGING_LIBDIR}/.. -Wl,-rpath,${libdir}/.. -lpthread -ldl -lutil -lm -lpython${PYTHON_BASEVERSION}${PYTHON_ABI}" ;; | ||
| 31 | --exec-prefix) echo "${exec_prefix}" ;; | ||
| 32 | *) exit 1 ;; | ||
| 33 | esac | ||
| 34 | exit 0 | ||
| 35 | EOF | ||
| 36 | chmod +x ${WORKDIR}/python | ||
| 37 | } | ||
| 38 | |||
| 39 | # we don't want gdb to provide bfd/iberty/opcodes, which instead will override the | ||
| 40 | # right bits installed by binutils. | ||
| 41 | do_install:append() { | ||
| 42 | rm -rf ${D}${exec_prefix}/lib | ||
| 43 | cross_canadian_bindirlinks | ||
| 44 | } | ||
