[oe-commits] Phil Blundell : gdb-cross: Adjust ${datadir} to avoid file conflicts in sysroot
git at git.openembedded.org
git at git.openembedded.org
Mon Apr 29 13:40:30 UTC 2013
Module: openembedded-core.git
Branch: master
Commit: 3e87aba1ee2ca0e39ba66fb7cba52e48df499c23
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=3e87aba1ee2ca0e39ba66fb7cba52e48df499c23
Author: Phil Blundell <pb at pbcl.net>
Date: Wed Apr 24 16:15:54 2013 +0100
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 at gnu.org>
Signed-off-by: Saul Wold <sgw at linux.intel.com>
---
meta/recipes-devtools/gdb/gdb-cross.inc | 2 ++
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 33feb58..a92d032 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}"
More information about the Openembedded-commits
mailing list