1 source ${LBUILD_DIR}/lbuild-rhel
3 # increment this if you have made a change that should force a new kernel
7 SPEC_NAME="kernel.spec"
8 DEVEL_PATH_ARCH_DELIMETER="."
10 RPM_HELPERS_DIR="/usr/lib/rpm/openEuler"
11 # Pkg which contains ext4 source code
12 KERNEL_DEBUGINFO="kernel-debugsource-${lnxmaj}-${lnxrel}.${TARGET_ARCH}.rpm"
14 # force local definition of %dist into ~/.rpmmacros
15 # to avoid verbose extended strings like ".el9.centos"
16 # in kernel version and rpm names
19 grep '^%dist' $RMAC &> /dev/null || echo '%dist .oe2203' >> $RMAC
21 unpack_linux_devel_rpm-oe2203() {
22 local callers_rpm="$1"
24 unpack_linux_devel_rpm-rhel "$callers_rpm"
27 find_linux_rpm-oe2203() {
29 local wanted_kernel="$2"
30 local pathtorpms=${3:-"$KERNELRPMSBASE/$lnxmaj/$DISTROMAJ/$TARGET_ARCH"}
32 find_linux_rpm-rhel "$prefix" "$wanted_kernel" "$pathtorpms"
35 kernel_debuginfo_location() {
36 local base_os="https://repo.openeuler.org/openEuler-22.03-LTS"
38 echo "$base_os/update/$TARGET_ARCH/Packages/"
42 sed -i "/^%kernel_module_package/,/^)}$/d" $RMAC
45 apply_kmod_requires_conflicts() {
47 # don't allow the patched kernel to be considered as
48 # a valid kernel for the patchless client
49 echo "Conflicts: kernel-lustre" >> rpm/kmp-lustre.preamble