* [PATCH] gdb: Rationalise PACKAGECONFIG
@ 2016-02-14 14:33 Richard Purdie
2016-03-25 6:28 ` Jonathan Liu
0 siblings, 1 reply; 2+ messages in thread
From: Richard Purdie @ 2016-02-14 14:33 UTC (permalink / raw)
To: openembedded-core
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>
diff --git a/meta/recipes-devtools/gdb/gdb-common.inc b/meta/recipes-devtools/gdb/gdb-common.inc
index 06272a9..0d28ee4 100644
--- a/meta/recipes-devtools/gdb/gdb-common.inc
+++ b/meta/recipes-devtools/gdb/gdb-common.inc
@@ -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=''"
diff --git a/meta/recipes-devtools/gdb/gdb_7.10.1.bb b/meta/recipes-devtools/gdb/gdb_7.10.1.bb
index cd52e27..f897e12 100644
--- a/meta/recipes-devtools/gdb/gdb_7.10.1.bb
+++ b/meta/recipes-devtools/gdb/gdb_7.10.1.bb
@@ -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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] gdb: Rationalise PACKAGECONFIG
2016-02-14 14:33 [PATCH] gdb: Rationalise PACKAGECONFIG Richard Purdie
@ 2016-03-25 6:28 ` Jonathan Liu
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Liu @ 2016-03-25 6:28 UTC (permalink / raw)
To: Richard Purdie; +Cc: openembedded-core
Hi Richard,
On 15 February 2016 at 01:33, Richard Purdie
<richard.purdie@linuxfoundation.org> wrote:
> 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>
>
> diff --git a/meta/recipes-devtools/gdb/gdb-common.inc b/meta/recipes-devtools/gdb/gdb-common.inc
> index 06272a9..0d28ee4 100644
> --- a/meta/recipes-devtools/gdb/gdb-common.inc
> +++ b/meta/recipes-devtools/gdb/gdb-common.inc
> @@ -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=''"
>
> diff --git a/meta/recipes-devtools/gdb/gdb_7.10.1.bb b/meta/recipes-devtools/gdb/gdb_7.10.1.bb
> index cd52e27..f897e12 100644
> --- a/meta/recipes-devtools/gdb/gdb_7.10.1.bb
> +++ b/meta/recipes-devtools/gdb/gdb_7.10.1.bb
> @@ -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
>
>
This change causes Python support to not be enabled properly in
gdb-cross and gdb-cross-canadian as --without-python is now added to
the EXTRA_OECONF after --with-python=...
I have submitted patches to the mailing list to fix this.
Regards,
Jonathan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-03-25 6:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-14 14:33 [PATCH] gdb: Rationalise PACKAGECONFIG Richard Purdie
2016-03-25 6:28 ` Jonathan Liu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox