summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Blundell <pb@pbcl.net>2013-04-24 16:15:54 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-04-29 14:43:50 +0100
commit3e87aba1ee2ca0e39ba66fb7cba52e48df499c23 (patch)
tree85a98f601e21bd5639b892cfa715435790662aa2
parent9263a2192ccf8ca513cbf7f2f88473e267e6b945 (diff)
downloadopenembedded-core-3e87aba1ee2ca0e39ba66fb7cba52e48df499c23.tar.gz
openembedded-core-3e87aba1ee2ca0e39ba66fb7cba52e48df499c23.tar.bz2
openembedded-core-3e87aba1ee2ca0e39ba66fb7cba52e48df499c23.zip
gdb-cross: Adjust ${datadir} to avoid file conflicts in sysroot
GDB wants to install a bunch of files in ${datadir}/gdb/python/gdb and ${datadir}/gdb/syscalls. These pathnames are invariant with TARGET_ARCH which means that if you build gdb multiple times for different targets they will all try to write to the same location and you get a lot of warning spew about manifest conflicts. Prevent this by factoring the target specification into ${datadir} so that different copies of GDB install their files into different paths. Signed-off-by: Phil Blundell <philb@gnu.org> Signed-off-by: Saul Wold <sgw@linux.intel.com>
-rw-r--r--meta/recipes-devtools/gdb/gdb-cross.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gdb/gdb-cross.inc b/meta/recipes-devtools/gdb/gdb-cross.inc
index 33feb581aa..a92d03222b 100644
--- a/meta/recipes-devtools/gdb/gdb-cross.inc
+++ b/meta/recipes-devtools/gdb/gdb-cross.inc
@@ -10,3 +10,5 @@ GDBPROPREFIX = ""
inherit cross
inherit gettext
+
+datadir .= "/gdb-${TUNE_PKGARCH}${TARGET_VENDOR}-${TARGET_OS}"