]> code.ossystems Code Review - openembedded-core.git/commitdiff
gdb: Rationalise PACKAGECONFIG
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 14 Feb 2016 14:33:23 +0000 (14:33 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 15 Feb 2016 16:28:24 +0000 (16:28 +0000)
Having two separate PACKAGECONFIG defaults and settings in two separate
files is confusing. Move all to the common inc file.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/gdb/gdb-common.inc
meta/recipes-devtools/gdb/gdb_7.10.1.bb

index 06272a99a314e8e0ff8cd77cdbea9b28a474fec7..0d28ee4eef9cfb8b2d131fbba676338d0b1f3ae1 100644 (file)
@@ -45,6 +45,8 @@ EXTRA_OECONF = "--disable-gdbtk --disable-tui --disable-x --disable-werror \
 PACKAGECONFIG ??= "readline"
 # Use --without-system-readline to compile with readline 5.
 PACKAGECONFIG[readline] = "--with-system-readline,--without-system-readline,readline"
+PACKAGECONFIG[python] = "--with-python=${WORKDIR}/python,--without-python,python,python python-codecs"
+PACKAGECONFIG[babeltrace] = "--with-babeltrace,--without-babeltrace,babeltrace"
 
 GDBPROPREFIX = "--program-prefix=''"
 
index cd52e27d5698d5fc5d9dbb3115399fc34fbabd88..f897e1213ef8401755052038f5dbb3d7eb4a8c4f 100644 (file)
@@ -3,10 +3,6 @@ require gdb-${PV}.inc
 
 inherit python-dir
 
-PACKAGECONFIG ??= ""
-PACKAGECONFIG[python] = "--with-python=${WORKDIR}/python,--without-python,python,python python-codecs"
-PACKAGECONFIG[babeltrace] = "--with-babeltrace,--without-babeltrace,babeltrace"
-
 do_configure_prepend() {
        if [ -n "${@bb.utils.contains('PACKAGECONFIG', 'python', 'python', '', d)}" ]; then
                cat > ${WORKDIR}/python << EOF