[oe-commits] Tom Rini : gdb-cross-sdk: Only fixup sim Makefiles that exist

git version control git at git.openembedded.org
Mon Oct 4 22:29:54 UTC 2010


Module: openembedded.git
Branch: org.openembedded.dev
Commit: a44217d83e940dc1d94908d9c4759bdd9121d166
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=a44217d83e940dc1d94908d9c4759bdd9121d166

Author: Tom Rini <tom_rini at mentor.com>
Date:   Mon Oct  4 14:48:36 2010 -0700

gdb-cross-sdk: Only fixup sim Makefiles that exist

This can fail for versions that just pass in --disable-sim

Signed-off-by: Tom Rini <tom_rini at mentor.com>

---

 recipes/gdb/gdb-cross-sdk.inc |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/recipes/gdb/gdb-cross-sdk.inc b/recipes/gdb/gdb-cross-sdk.inc
index bd7f0df..d7bc2ab 100644
--- a/recipes/gdb/gdb-cross-sdk.inc
+++ b/recipes/gdb/gdb-cross-sdk.inc
@@ -13,5 +13,7 @@ do_configure_append () {
 	sed -e 's,-lz, ${STAGING_LIBDIR_NATIVE}/libz.a ,g' -i ${B}/gdb/Makefile
 	sed -e 's,-lexpat, ${STAGING_LIBDIR_NATIVE}/libexpat.a ,g' -i ${B}/gdb/Makefile
 	sed -e 's,libexpat.so,libexpat.a ,g' -i ${B}/gdb/Makefile
-	sed -e 's,-lz, ${STAGING_LIBDIR_NATIVE}/libz.a ,g' -i ${B}/sim/*/Makefile
+	for SIM in ${B}/sim/*/Makefile; do
+		[ -f $SIM ] && sed -e 's,-lz, ${STAGING_LIBDIR_NATIVE}/libz.a ,g' -i $SIM
+	done
 }





More information about the Openembedded-commits mailing list