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";;
oe2203) target="5.10-oe2203";;
oe2203.sp1) target="5.10-oe2203sp1";;
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
5.14.0-162.23.1.el9 (RHEL9.1)
4.18.0-477.21.1.el8 (RHEL8.8)
5.4.0-37 (Ubuntu 20.04)
- 5.14.21-150400.24.46 (SLES15 SP4)
+ 5.14.21-150500.55.22 (SLES15 SP5)
* Other clients known to build on these kernels at some point (others may also work):
3.10.0-862.14.4.el7 (RHEL7.5)
3.10.0-957.27.2.el7 (RHEL7.6)
4.12.14-197.75 (SLES15 SP1)
5.3.18-24.96 (SLES15 SP2)
5.3.18-150300.59.93 (SLES15 SP3)
+ 5.14.21-150400.24.46 (SLES15 SP4)
4.4.0-131 (Ubuntu 16.04)
4.15.0-48 (Ubuntu 18.04)
5.8.0-53 (Ubuntu 20.04.2 HWE)
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/kernel_patches/targets/5.10-oe2203.target
lustre/kernel_patches/targets/5.10-oe2203sp1.target
--- /dev/null
+lnxmaj="5.14"
+lnxmin=".21"
+lnxrel="150500.55.22"
+# 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