Whamcloud - gitweb
b=20738 FC11 support in Yala is needed
authorRahul Deshmukh <Rahul.Deshmukh@Sun.COM>
Thu, 4 Mar 2010 01:03:09 +0000 (17:03 -0800)
committerRobert Read <rread@sun.com>
Thu, 4 Mar 2010 01:03:09 +0000 (17:03 -0800)
Added support for fc11 patchless client build on lbat

i=brain

build/lbuild-fc11 [new file with mode: 0644]
build/lbuild-rhel5
lustre.spec.in
lustre/autoconf/lustre-core.m4
lustre/kernel_patches/targets/2.6-fc11.target.in [new file with mode: 0644]

diff --git a/build/lbuild-fc11 b/build/lbuild-fc11
new file mode 100644 (file)
index 0000000..12da985
--- /dev/null
@@ -0,0 +1,18 @@
+# vim:expandtab:shiftwidth=4:softtabstop=4:tabstop=4:
+
+# Replace i686 with i586 for fc11.
+# Please see find_linux_devel_paths() in lbuild-rhel5 file for more details.
+if [ $TARGET_ARCH == 'i686' ]; then
+        DEVEL_PATH_ARCH="i586"
+fi
+# Please see find_linux_devel_paths() in lbuild-rhel5 file for more details.
+DEVEL_PATH_ARCH_DELIMETER="."
+source ${0%/*}/lbuild-rhel5
+
+# increment this if you have made a change that should force a new kernel
+# to build built
+#BUILD_GEN=1
+#BUILD_GEN=2   # bz19952: remove -lustre tag from kernel RPM names
+BUILD_GEN=3    # bz19975 enable the building of src.rpms by default
+
+
index bcf9f4a..2bb418b 100644 (file)
@@ -200,8 +200,14 @@ rpm_BUILD_kernel_dirname() {
 
 find_linux_devel_paths() {
     local path="$1"
 
 find_linux_devel_paths() {
     local path="$1"
+    local ARCH=$TARGET_ARCH
 
 
-    LINUX=$path/usr/src/kernels/${lnxmaj}${lnxmin}-${lnxrel}-${TARGET_ARCH}
+    # If DEVEL_PATH_ARCH is set, use it. Added for fc11 as it needs i586 string for i686.
+    if [ $DEVEL_PATH_ARCH ];then
+        ARCH=$DEVEL_PATH_ARCH
+    fi
+
+    LINUX=$path/usr/src/kernels/${lnxmaj}${lnxmin}-${lnxrel}${DEVEL_PATH_ARCH_DELIMETER:-"-"}${ARCH}
     # RHEL doesn't have the -obj tree
     LINUXOBJ=""
     # XXX - i don't think we need this any more
     # RHEL doesn't have the -obj tree
     LINUXOBJ=""
     # XXX - i don't think we need this any more
index 30fdce8..7c9f3e5 100644 (file)
@@ -6,7 +6,7 @@
 
 %define is_client %(bash -c "if [[ %{lustre_name} = *-client ]]; then echo -n '1'; else echo -n '0'; fi")
 # for those uses that don't want the -smp/-bigsmp on the end of %kversion
 
 %define is_client %(bash -c "if [[ %{lustre_name} = *-client ]]; then echo -n '1'; else echo -n '0'; fi")
 # for those uses that don't want the -smp/-bigsmp on the end of %kversion
-%define krequires %(bash -c "echo %{kversion} | sed -e 's/-smp$//' -e 's/-bigsmp$//' -e 's/-ppc64$//' -e 's/-default$//'")
+%define krequires %(bash -c "echo %{kversion} | sed -e 's/.x86_64$//' -e 's/.i586$//' -e 's/-smp$//' -e 's/-bigsmp$//' -e 's/-ppc64$//' -e 's/-default$//'")
 
 Summary: Lustre File System
 Name: %{lustre_name}
 
 Summary: Lustre File System
 Name: %{lustre_name}
index 277c22b..fdc02db 100644 (file)
@@ -2494,6 +2494,7 @@ lustre/kernel_patches/targets/2.6-patchless.target
 lustre/kernel_patches/targets/2.6-sles10.target
 lustre/kernel_patches/targets/2.6-sles11.target
 lustre/kernel_patches/targets/2.6-oel5.target
 lustre/kernel_patches/targets/2.6-sles10.target
 lustre/kernel_patches/targets/2.6-sles11.target
 lustre/kernel_patches/targets/2.6-oel5.target
+lustre/kernel_patches/targets/2.6-fc11.target
 lustre/ldlm/Makefile
 lustre/fid/Makefile
 lustre/fid/autoMakefile
 lustre/ldlm/Makefile
 lustre/fid/Makefile
 lustre/fid/autoMakefile
diff --git a/lustre/kernel_patches/targets/2.6-fc11.target.in b/lustre/kernel_patches/targets/2.6-fc11.target.in
new file mode 100644 (file)
index 0000000..65cd561
--- /dev/null
@@ -0,0 +1,15 @@
+lnxmaj="2.6.29.4"
+lnxrel="167.fc11"
+
+KERNEL_SRPM=kernel-${lnxmaj}-${lnxrel}.src.rpm
+SERIES=2.6-fc5.series
+EXTRA_VERSION=${lnxrel}_lustre.@VERSION@
+LUSTRE_VERSION=@VERSION@
+BASE_ARCHS="i686 x86_64"
+BIGMEM_ARCHS=""
+BOOT_ARCHS=""
+JENSEN_ARCHS=""
+SMP_ARCHS=""
+UP_ARCHS=""
+
+