mirror of
https://git.yoctoproject.org/poky
synced 2026-05-02 18:32:15 +02:00
As discussed on the mailing lists, using a suffix to package names is hard and has lead to many recipes having to do PKGSUFFIX games. Its looking extremely hard to scale nativesdk much further without hacking many recipes. By comparison, using a prefix like multilib does works much better and doesn't involve "hacking" as many recipes. This change converts nativesdk to use a prefix using the existing multilib infrastructure. (From OE-Core rev: 81813c0e322dc04ce4b069117188d8a54dfddb8c) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
34 lines
1.1 KiB
PHP
34 lines
1.1 KiB
PHP
inherit cross-canadian
|
|
inherit python-dir
|
|
|
|
DESCRIPTION = "cross-canadian gdb for ${TARGET_ARCH} target - GNU debugger"
|
|
PN = "gdb-cross-canadian-${TRANSLATED_TARGET_ARCH}"
|
|
BPN = "gdb"
|
|
|
|
DEPENDS = "nativesdk-ncurses nativesdk-expat nativesdk-gettext nativesdk-readline nativesdk-python"
|
|
RDEPENDS += "nativesdk-python-core nativesdk-python-lang nativesdk-python-re \
|
|
nativesdk-python-codecs nativesdk-python-netclient"
|
|
|
|
EXTRA_OECONF_append = "--with-python=${WORKDIR}/python"
|
|
|
|
do_configure_prepend() {
|
|
cat > ${WORKDIR}/python << EOF
|
|
#! /bin/sh
|
|
case "\$2" in
|
|
--includes) echo "-I${STAGING_INCDIR}/${PYTHON_DIR}/" ;;
|
|
--ldflags) echo "-Wl,-rpath-link,${STAGING_LIBDIR}/.. -Wl,-rpath,${libdir}/.. -lpthread -ldl -lutil -lm -lpython${PYTHON_BASEVERSION}" ;;
|
|
--exec-prefix) echo "${exec_prefix}/bin" ;;
|
|
*) exit 1 ;;
|
|
esac
|
|
exit 0
|
|
EOF
|
|
chmod +x ${WORKDIR}/python
|
|
}
|
|
|
|
# we don't want gdb to provide bfd/iberty/opcodes, which instead will override the
|
|
# right bits installed by binutils.
|
|
do_install_append() {
|
|
rm -rf ${D}${exec_prefix}/lib
|
|
}
|
|
|