This patch makes changes to support new SLES15 SP5 release
with kernel 5.14.21-150500.55.36.1 for Lustre client.
Lustre-change: https://review.whamcloud.com/52340
Lustre-commit:
3df9e032db94d6d8bd63aadf36f60b5409aeba94
Test-Parameters: trivial mdtcount=4 mdscount=2 \
clientdistro=sles15sp4 testlist=sanity
Test-Parameters: trivial mdtcount=4 mdscount=2 \
clientdistro=sles15sp5 testlist=sanity
Change-Id: I278017a5c996a8cf4e3d604aa928e968ca007312
Signed-off-by: Jian Yu <yujian@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/52769
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
sles15.2) target="$(uname -r | cut -d . -f 1,2)-sles15sp2";;
sles15.3) target="$(uname -r | cut -d . -f 1,2)-sles15sp3";;
sles15.4) target="$(uname -r | cut -d . -f 1,2)-sles15sp4";;
+ sles15.5) target="$(uname -r | cut -d . -f 1,2)-sles15sp5";;
fc18) target="3.x-fc18";;
*) fatal 1 "I don't know what distro $distro is.\nEither update autodetect_target() or use the --target argument.";;
esac
source ${LBUILD_DIR}/lbuild-sles
-kernel_srpm_location() {
- local site
- local kdir
+get_distro_kdir() {
+ local distro
+ local kdir
+
+ case $lnxmaj in
+ 4.12)
+ distro=sles15.1
+ kdir=updates-sles15.1-src
+ ;;
+ 5.3)
+ case ${lnxrel%%.*} in
+ 24)
+ distro=sles15.2
+ kdir=updates-sles15.2-src
+ ;;
+ 59|150300)
+ distro=sles15.3
+ kdir=updates-sles15.3-src
+ ;;
+ esac
+ ;;
+ 5.14)
+ case ${lnxrel%%.*} in
+ 150400)
+ distro=sles15.4
+ kdir=updates-sles15.4-src
+ ;;
+ 150500)
+ distro=sles15.5
+ kdir=updates-sles15.5-src
+ ;;
+ esac
+ ;;
+ esac
+
+ case $1 in
+ distro) echo -n $distro;;
+ kdir) echo -n $kdir;;
+ esac
+}
- case $lnxmaj in
- 4.12)
- kdir=updates-sles15.1-src
- ;;
- 5.3)
- case ${lnxrel%%.*} in
- 24)
- kdir=updates-sles15.2-src
- ;;
- 59)
- kdir=updates-sles15.3-src
- ;;
- esac
- ;;
- 5.14)
- kdir=updates-sles15.4-src
- ;;
- esac
+kernel_srpm_location() {
+ local site
+ local kdir=$(get_distro_kdir kdir)
- site="http://mgmt/cobbler/repo_mirror/$kdir"
- echo "$site/src/"
+ site="http://mgmt/cobbler/repo_mirror/$kdir"
+ echo "$site/src/"
}
edit_specs() {
local wanted_kernel="$2"
local pathtorpms=${3:-"$KERNELRPMSBASE/$lnxmaj/$DISTROMAJ/$TARGET_ARCH"}
local wanted_kernel_org="$wanted_kernel"
- local distro
+ local distro=$(get_distro_kdir distro)
local base_site
local base_dir
local dev_site
wanted_kernel="${lnxmaj}${lnxmin}-${lnxrel}${rpmfix_diff}"
fi
- case $lnxmaj in
- 4.12)
- distro=sles15.1
- ;;
- 5.3)
- case ${lnxrel%%.*} in
- 24)
- distro=sles15.2
- ;;
- 59)
- distro=sles15.3
- ;;
- esac
- ;;
- 5.14)
- distro=sles15.4
- ;;
- esac
-
base_dir=updates-basesystem-$distro-x86_64
dev_dir=updates-devtools-$distro-x86_64
4.18.0-513.5.1.el8 (RHEL8.9)
4.18.0-477.15.1.el8 (RHEL8.8)
5.4.0-37 (Ubuntu 20.04)
+ 5.14.21-150500.55.36 (SLES15 SP5)
5.14.21-150400.24.28 (SLES15 SP4)
* Other clients known to build on these kernels at some point (others may also work):
3.10.0-862.14.4.el7 (RHEL7.5)
lustre/kernel_patches/targets/5.3-sles15sp2.target
lustre/kernel_patches/targets/5.3-sles15sp3.target
lustre/kernel_patches/targets/5.14-sles15sp4.target
+lustre/kernel_patches/targets/5.14-sles15sp5.target
lustre/kernel_patches/targets/3.x-fc18.target
lustre/ldlm/Makefile
lustre/fid/Makefile
--- /dev/null
+lnxmaj="5.14"
+lnxmin=".21"
+lnxrel="150500.55.36"
+# 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