Whamcloud - gitweb
LU-13111 kernel: new kernel [SLES12 SP5 4.12.14-122.20.1] 40/38640/3
authorJian Yu <yujian@whamcloud.com>
Sun, 17 May 2020 07:39:39 +0000 (00:39 -0700)
committerOleg Drokin <green@whamcloud.com>
Wed, 27 May 2020 02:40:49 +0000 (02:40 +0000)
This patch makes changes to support new SLES12 SP5 release
for Lustre client.

Test-Parameters: trivial clientdistro=sles12sp5 \
env=SANITY_EXCEPT="56oc 817" testlist=sanity

Change-Id: Ia4b856b03801e02da9a2e584efeb8759b4dd30c3
Signed-off-by: Jian Yu <yujian@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/38640
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Yang Sheng <ys@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
contrib/lbuild/funcs.sh
contrib/lbuild/lbuild-sles12
lustre/ChangeLog
lustre/autoconf/lustre-core.m4
lustre/kernel_patches/targets/4.12-sles12sp5.target.in [new file with mode: 0644]

index be8f696..96cf4f0 100644 (file)
@@ -203,6 +203,7 @@ autodetect_target() {
         sles11.4) target="$(uname -r | cut -d . -f 1,2)-sles11sp4";;
         sles11.3) target="$(uname -r | cut -d . -f 1,2)-sles11sp3";;
         sles11*)  target="$(uname -r | cut -d . -f 1,2)-sles11";;
+        sles12.5) target="$(uname -r | cut -d . -f 1,2)-sles12sp5";;
         sles12.4) target="$(uname -r | cut -d . -f 1,2)-sles12sp4";;
         sles12.3) target="$(uname -r | cut -d . -f 1,2)-sles12sp3";;
         sles12*)  target="$(uname -r | cut -d . -f 1,2)-sles12";;
index 996bb43..9233bab 100644 (file)
@@ -185,7 +185,12 @@ find_linux_rpm-sles12() {
        site="http://mgmt/cobbler/repo_mirror/$kdir"
        ;;
     4.12)
-       site="http://mgmt/cobbler/repo_mirror/updates-sles12.4-x86_64"
+       kdir=updates-sles12.4-x86_64
+       if [ ${lnxrel%%.*} -ge 120 ]
+       then
+               kdir=updates-sles12.5-x86_64
+       fi
+       site="http://mgmt/cobbler/repo_mirror/$kdir"
        ;;
     esac
     if [ ! -f $pathtorpms/kernel-default-devel-$wanted_kernel.$(resolve_arch $TARGET_ARCH).rpm ]; then
index 98e5d2d..012259a 100644 (file)
@@ -22,6 +22,7 @@ TBD Whamcloud
          4.18.0-80.11.2.el8   (RHEL8.0)
          4.4.180-94.97        (SLES12 SP3)
          4.12.14-95.45        (SLES12 SP4)
+         4.12.14-122.20       (SLES12 SP5)
          4.15.0-45            (Ubuntu 18.04)
        * Client known to build on unpatched kernels (others may also work):
          2.6.32-696.18.7.el6  (RHEL6.9)
index 7529d11..cd89c76 100644 (file)
@@ -3788,6 +3788,7 @@ lustre/kernel_patches/targets/3.12-sles12.target
 lustre/kernel_patches/targets/4.4-sles12.target
 lustre/kernel_patches/targets/4.4-sles12sp3.target
 lustre/kernel_patches/targets/4.12-sles12sp4.target
+lustre/kernel_patches/targets/4.12-sles12sp5.target
 lustre/kernel_patches/targets/2.6-fc11.target
 lustre/kernel_patches/targets/2.6-fc12.target
 lustre/kernel_patches/targets/2.6-fc15.target
diff --git a/lustre/kernel_patches/targets/4.12-sles12sp5.target.in b/lustre/kernel_patches/targets/4.12-sles12sp5.target.in
new file mode 100644 (file)
index 0000000..b8891f3
--- /dev/null
@@ -0,0 +1,37 @@
+lnxmaj="4.12"
+lnxmin=".14"
+lnxrel="122.20"
+# 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
+rpmfix=".1"
+
+# this is the delimeter that goes before the "smp" at the end of the version
+# defaults to empty
+FLAVOR_DELIMITER="-"
+
+KERNEL_SRPM=kernel-source-${lnxmaj}${lnxmin}-${lnxrel}${rpmfix}.src.rpm
+SERIES=""
+VERSION=$lnxmaj
+EXTRA_VERSION="${lnxmin#.}-${lnxrel}_lustre.@VERSION@"
+LUSTRE_VERSION=@VERSION@
+
+OFED_VERSION=inkernel
+
+BASE_ARCHS="i686 ppc x86_64 ia64 ppc64"
+BIGMEM_ARCHS=""
+BOOT_ARCHS=""
+JENSEN_ARCHS=""
+DEFAULT_ARCHS="i686 x86_64 ia64 ppc64"
+BIGSMP_ARCHS=""
+PSERIES64_ARCHS="ppc"
+UP_ARCHS=""
+SRC_ARCHS=""
+#RPMSMPTYPE="smp"
+
+for cc in gcc ; do
+    if which $cc >/dev/null 2>/dev/null ; then
+        export CC=$cc
+        break
+    fi
+done