]> code.ossystems Code Review - openembedded-core.git/commitdiff
gdb-cross: use PACKAGECONFIG for python and readline
authorJonathan Liu <net147@gmail.com>
Fri, 25 Mar 2016 11:33:26 +0000 (22:33 +1100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 26 Mar 2016 22:49:35 +0000 (22:49 +0000)
Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/gdb/gdb-cross.inc

index 6e44778cd3465601e1186fda06581899c4b0eea1..2468d23037d721bd4c0872446adf932fd060fee9 100644 (file)
@@ -1,10 +1,13 @@
 require gdb-common.inc
 
-DEPENDS = "expat-native ncurses-native readline-native python-native"
+DEPENDS = "expat-native ncurses-native"
 
 inherit pythonnative
 
-EXTRA_OECONF += "--with-python=${STAGING_BINDIR_NATIVE}/python-native/python"
+# Overrides PACKAGECONFIG variables in gdb-common.inc
+PACKAGECONFIG ??= "python readline"
+PACKAGECONFIG[python] = "--with-python=${STAGING_BINDIR_NATIVE}/python-native/python,--without-python,python-native"
+PACKAGECONFIG[readline] = "--with-system-readline,--without-system-readline,readline-native"
 
 do_compile_prepend() {
     export BUILD_SYS="${BUILD_SYS}"