[ewg] [PATCH ofed-1.2.1] ehca: Fix build_env.sh to compiling on rhel-4.5

Stefan Roscher ossrosch at linux.vnet.ibm.com
Mon Jul 23 07:00:48 PDT 2007


This patch adds a check to ensure the asm-ppc directory is present in
/lib/modules/K_VER/build/include/ in order to build ib_ehca on 
rhel-4.5 systems.

Regards Stefan

Signed-off-by: Stefan Roscher <stefan.roscher at de.ibm.com>

---
build_env.sh |   13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletion(-)

--- OFED-1.2_old/build_env.sh	2007-06-21 16:38:41.000000000 +0200
+++ OFED-1.2_new/build_env.sh	2007-07-23 17:45:04.000000000 +0200
@@ -1951,11 +1951,22 @@ set_package_deps()
                         case ${ARCH} in
                             ppc|ppc64|powerpc)
                                 case ${K_VER} in
-                                    2.6.1[6-9]* | 2.6.20* | 2.6.9-55*)
+                                    2.6.1[6-9]* | 2.6.20*)
                                         OFA_KERNEL_PACKAGES=$(echo "$OFA_KERNEL_PACKAGES ib_verbs ib_ehca" | tr -s ' ' '\n' | sort -n | uniq)
                                         OFA_PACKAGES=$(echo "$OFA_PACKAGES kernel-ib" | tr -s ' ' '\n' | sort -n | uniq)
                                         ll_driver=${ll_driver:-"ib_ehca"}
                                     ;;
+                                    2.6.9-55*)
+                                        OFA_KERNEL_PACKAGES=$(echo "$OFA_KERNEL_PACKAGES ib_verbs ib_ehca" | tr -s ' ' '\n' | sort -n | uniq)
+                                        OFA_PACKAGES=$(echo "$OFA_PACKAGES kernel-ib" | tr -s ' ' '\n' | sort -n | uniq)
+                                        ll_driver=${ll_driver:-"ib_ehca"}
+					if [ ! -d ${K_SRC}/include/asm-ppc ]; then
+						err_echo To install ib_ehca module please ensure that ${K_SRC}/include/ contains directory asm-ppc. 
+						echo Please install the kernel.src.rpm from redhat and copy the directory and the files into ${K_SRC}/include/. 
+						echo Then rerun this Script
+						exit -1
+					fi
+                                    ;;
                                     *)
                                         if [ "$prog" == "build.sh" ]; then
                                             warn_echo EHCA is not supported by this kernel




More information about the ewg mailing list