gdb-cross-canadian: use PACKAGECONFIG for python and readline

(From OE-Core rev: c5478ed623f9b21d758f49745409a8eaae36baf5)

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Jonathan Liu 2016-03-25 22:33:20 +11:00 committed by Richard Purdie
parent 370a50a27b
commit 1c1e85113f
1 changed files with 7 additions and 5 deletions

View File

@ -5,15 +5,17 @@ SUMMARY = "GNU debugger (cross-canadian gdb for ${TARGET_ARCH} target)"
PN = "gdb-cross-canadian-${TRANSLATED_TARGET_ARCH}"
BPN = "gdb"
DEPENDS = "nativesdk-ncurses nativesdk-expat nativesdk-gettext nativesdk-readline nativesdk-python \
DEPENDS = "nativesdk-ncurses nativesdk-expat nativesdk-gettext \
virtual/${HOST_PREFIX}gcc-crosssdk virtual/${HOST_PREFIX}binutils-crosssdk virtual/nativesdk-${HOST_PREFIX}libc-for-gcc"
RDEPENDS_${PN} += "nativesdk-python-core nativesdk-python-lang nativesdk-python-re \
nativesdk-python-codecs nativesdk-python-netclient"
GDBPROPREFIX = "--program-prefix='${TARGET_PREFIX}'"
EXTRA_OECONF_append = " --with-python=${WORKDIR}/python"
# Overrides PACKAGECONFIG variables in gdb-common.inc
PACKAGECONFIG ??= "python readline"
PACKAGECONFIG[python] = "--with-python=${WORKDIR}/python,--without-python,nativesdk-python, \
nativesdk-python-core nativesdk-python-lang nativesdk-python-re \
nativesdk-python-codecs nativesdk-python-netclient"
PACKAGECONFIG[readline] = "--with-system-readline,--without-system-readline,nativesdk-readline"
SSTATE_DUPWHITELIST += "${STAGING_DATADIR}/gdb"