Module: xenomai-head
Branch: master
Commit: 3ba098b264746515f72653a71d72602c7d2e864e
URL:    
http://git.xenomai.org/?p=xenomai-head.git;a=commit;h=3ba098b264746515f72653a71d72602c7d2e864e

Author: Philippe Gerum <r...@xenomai.org>
Date:   Mon Jan 31 16:36:05 2011 +0100

scripts/prepare-kernel.sh: better catch missing I-pipe support in kernel tree

---

 scripts/prepare-kernel.sh |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/scripts/prepare-kernel.sh b/scripts/prepare-kernel.sh
index 8a33e92..c9f0744 100755
--- a/scripts/prepare-kernel.sh
+++ b/scripts/prepare-kernel.sh
@@ -411,6 +411,10 @@ else
    asm_ipipe_h=`ls $linux_tree/include/asm-{$linux_arch,$xenomai_arch}/ipipe.h 
2>/dev/null|head -n1`
 fi
 
+if test -z "$asm_ipipe_h"; then
+   echo "$me: $linux_tree has no Adeos support for $linux_arch" >&2
+   exit 2
+fi
 adeos_version=`grep '^#define.*IPIPE_ARCH_STRING.*"' $asm_ipipe_h 
2>/dev/null|head -n1|sed -e 's,.*"\(.*\)"$,\1,'`
 
 if test \! "x$adeos_version" = x; then


_______________________________________________
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to