Whamcloud - gitweb
LU-1691 kernel: kernel update [SLES11 SP2 3.0.34-0.7.9]
authorJames Simmons <uja.ornl@gmail.com>
Mon, 8 Oct 2012 13:34:22 +0000 (09:34 -0400)
committerOleg Drokin <green@whamcloud.com>
Tue, 9 Oct 2012 02:14:20 +0000 (22:14 -0400)
Add SLES11 SP2 client support to 3.0.34-0.7.9.

Allow 2.6 (SP1) and 3.0 (SP2) clients to be built for SLES11
Standard lbuild will build for the kernel version that builder
is using, this can be overridden by specifying the target
directly as an lbuild parameter

This change explictly does not make changes to support SLES11SP2

Signed-off-by: James Simmons <uja.ornl@gmail.com>
Signed-off-by: Chris Gearing <chris.gearing@intel.com>
Signed-off-by: yang sheng <ys@whamcloud.com>
Change-Id: Iece4c0286a3f0dcd28fe96e03a8aec9bda065ed5
Reviewed-on: http://review.whamcloud.com/3734
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/kernel_patches/series/3.0-sles11.series [new file with mode: 0644]
lustre/kernel_patches/targets/3.0-sles11.target.in [new file with mode: 0644]

index 268d84d..0a1571f 100644 (file)
@@ -184,7 +184,7 @@ autodetect_target() {
          rhel5) target="2.6-rhel5";;
          rhel6) target="2.6-rhel6";;
         sles10) target="2.6-sles10";;
-        sles11) target="2.6-sles11";;
+        sles11) target="$(uname -r | cut -d . -f 1,2)-sles11";;
           fc15) target="2.6-fc15";;
             *) fatal 1 "I don't know what distro $distro is.\nEither update autodetect_target() or use the --target argument.";;
index 72bac12..58bf239 100755 (executable)
@@ -321,7 +321,7 @@ check_options() {
-        2.6-sles11)
+        2.6-sles11 | 3.0-sles11)
index c8cc45f..bee849c 100644 (file)
@@ -2471,6 +2471,7 @@ lustre/kernel_patches/targets/2.6-rhel6.target
diff --git a/lustre/kernel_patches/series/3.0-sles11.series b/lustre/kernel_patches/series/3.0-sles11.series
new file mode 100644 (file)
index 0000000..de1a254
--- /dev/null
@@ -0,0 +1,3 @@
+# This file is a place holder for the patch series file
+# The correct patches will be placed in here for SLES-SP2 3.x kernel server build
+# The changes for SLES server are beyond the scope of change request LU-1691
diff --git a/lustre/kernel_patches/targets/3.0-sles11.target.in b/lustre/kernel_patches/targets/3.0-sles11.target.in
new file mode 100644 (file)
index 0000000..241984f
--- /dev/null
@@ -0,0 +1,37 @@
+# use this when there is an "RPM fix" which means that the name of the
+# (source) RPM has been updated but the version of the kernel inside the
+# RPM is not also updated
+# this is the delimeter that goes before the "smp" at the end of the version
+# defaults to empty
+BASE_ARCHS="i686 ppc x86_64 ia64 ppc64"
+DEFAULT_ARCHS="i686 x86_64 ia64 ppc64"
+for cc in gcc ; do
+    if which $cc >/dev/null 2>/dev/null ; then
+        export CC=$cc
+        break
+    fi