Module: xenomai-gch
Branch: for-head
Commit: a461727ed4ece9a20aa7be654b8c7884f589c0ef
URL:    
http://git.xenomai.org/?p=xenomai-gch.git;a=commit;h=a461727ed4ece9a20aa7be654b8c7884f589c0ef

Author: Gilles Chanteperdrix <gilles.chanteperd...@xenomai.org>
Date:   Sun Dec 20 02:38:19 2009 +0100

build: fix prepare-kernel.sh

for detection of an already patched kernel with a phony
arch/$arch/include/asm/ipipe.h
(I-pipe for 2.6.20 powerpc for instance).

---

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

diff --git a/scripts/prepare-kernel.sh b/scripts/prepare-kernel.sh
index b052ec3..24b1f17 100755
--- a/scripts/prepare-kernel.sh
+++ b/scripts/prepare-kernel.sh
@@ -403,7 +403,8 @@ else
 fi
 
 asm_ipipe_h=unknown
-if test -r $linux_tree/arch/$linux_arch/include/asm/ipipe.h; then
+if test -r $linux_tree/arch/$linux_arch/include/asm/ipipe.h \
+   && grep -q IPIPE $linux_tree/arch/$linux_arch/include/asm/ipipe.h; then
    linux_include_asm=arch/$linux_arch/include/asm
    asm_ipipe_h=$linux_tree/$linux_include_asm/ipipe.h
 else


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

Reply via email to