gdb-cross: Adjust ${datadir} to avoid file conflicts in sysroot
authorPhil Blundell <pb@pbcl.net>
Wed, 24 Apr 2013 15:15:54 +0000 (16:15 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 29 Apr 2013 13:45:06 +0000 (14:45 +0100)
commit32aa04c5a68de094cfaf33388c6b7185563b2a17
treef774afb2bacc2c4f552088fde45de80087c15e4b
parent363e4441670f4fecdd733c3f754e18e13a85a4c8
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.

(From OE-Core rev: 3e87aba1ee2ca0e39ba66fb7cba52e48df499c23)

Signed-off-by: Phil Blundell <philb@gnu.org>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/gdb/gdb-cross.inc