aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rini <tom_rini@mentor.com>2010-10-04 14:48:36 -0700
committerTom Rini <tom_rini@mentor.com>2010-10-04 15:22:52 -0700
commita44217d83e940dc1d94908d9c4759bdd9121d166 (patch)
tree70aca62bc1f1f9353e59def77ca903346e635ac3
parent9975b23563cf5b32565de70f6395f5faa155d4aa (diff)
downloadopenembedded-a44217d83e940dc1d94908d9c4759bdd9121d166.zip
openembedded-a44217d83e940dc1d94908d9c4759bdd9121d166.tar.gz
openembedded-a44217d83e940dc1d94908d9c4759bdd9121d166.tar.bz2
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@mentor.com>
-rw-r--r--recipes/gdb/gdb-cross-sdk.inc4
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
}