File 2-ltul.patch of Package kernel-source-ltul
Index: kernel-source-ltul/config.conf
===================================================================
--- kernel-source-ltul.orig/config.conf
+++ kernel-source-ltul/config.conf
@@ -16,1 +16,1 @@
-+x86_64 x86_64/longterm
++x86_64 x86_64/ltul
Index: kernel-source-ltul/config.sh
===================================================================
--- kernel-source-ltul.orig/config.sh
+++ kernel-source-ltul/config.sh
@@ -3,5 +3,5 @@
# variant of the kernel-source package, either empty or "-rt"
-VARIANT=-longterm
+VARIANT=-ltul
# enable kernel module compression
COMPRESS_MODULES="zstd"
COMPRESS_VMLINUX="xz"
Index: kernel-source-ltul/kernel-longterm.spec
===================================================================
--- kernel-source-ltul.orig/kernel-longterm.spec
+++ kernel-source-ltul/kernel-longterm.spec
@@ -23,4 +23,4 @@
-%define variant -longterm%{nil}
+%define variant -ltul%{nil}
%define compress_modules zstd
%define compress_vmlinux xz
%define livepatch livepatch%{nil}
@@ -32,6 +32,6 @@
%include %_sourcedir/kernel-spec-macros
-%define build_flavor longterm
+%define build_flavor ltul
%define build_default ("%build_flavor" == "default")
%define build_vanilla ("%build_flavor" == "vanilla")
@@ -54,6 +54,8 @@
%global cpu_arch %(%_sourcedir/arch-symbols %_target_cpu)
%define cpu_arch_flavor %cpu_arch/%build_flavor
+# Use original longterm flavor for loading configs
+%define cpu_arch_oflavor %cpu_arch/longterm
%global certs %( for f in %_sourcedir/*.crt; do \
if ! test -e "$f"; then \
@@ -91,7 +93,7 @@ done )
# Define some CONFIG variables as rpm macros as well. (rpm cannot handle
# defining them all at once.)
%define config_vars CONFIG_MODULES CONFIG_MODULE_SIG CONFIG_MODULE_SIG_HASH CONFIG_KMSG_IDS CONFIG_SUSE_KERNEL_SUPPORTED CONFIG_EFI_STUB CONFIG_LIVEPATCH_IPA_CLONES CONFIG_DEBUG_INFO_BTF_MODULES CONFIG_PREEMPT_DYNAMIC
-%{expand:%(eval "$(test -n "%cpu_arch_flavor" && tar -xjf %_sourcedir/config.tar.bz2 --to-stdout config/%cpu_arch_flavor)"; for config in %config_vars; do echo "%%global $config ${!config:-n}"; done)}
+%{expand:%(eval "$(test -n "%cpu_arch_oflavor" && tar -xjf %_sourcedir/config.tar.bz2 --to-stdout config/%cpu_arch_oflavor)"; for config in %config_vars; do echo "%%global $config ${!config:-n}"; done)}
%define split_extra ("%CONFIG_MODULES" == "y" && "%CONFIG_SUSE_KERNEL_SUPPORTED" == "y")
%if "%CONFIG_MODULES" != "y"
@@ -109,7 +111,7 @@ done )
%define modules_dir %kernel_module_directory/%kernelrelease-%build_flavor
-Name: kernel-longterm
+Name: kernel-ltul
Summary: The Linux Kernel
License: GPL-2.0-only
Group: System/Kernel
@@ -533,12 +535,12 @@
if ! [ -f %my_builddir/config/%cpu_arch/$config_base ] ; then
config_base=%variant
config_base=${config_base#-}
fi
-if ! grep -q CONFIG_MMU= "%my_builddir/config/%cpu_arch_flavor"; then
+if ! grep -q CONFIG_MMU= "%my_builddir/config/%cpu_arch_oflavor"; then
cp "%my_builddir/config/%cpu_arch/$config_base" .config
../scripts/kconfig/merge_config.sh -m .config \
- %my_builddir/config/%cpu_arch_flavor
+ %my_builddir/config/%cpu_arch_oflavor
else
-cp %my_builddir/config/%cpu_arch_flavor .config
+cp %my_builddir/config/%cpu_arch_oflavor .config
fi
if test -e %my_builddir/config.addon/%cpu_arch_flavor; then
# FIXME: config.addon doesn't affect the %CONFIG_ macros defined at
Index: kernel-source-ltul/kernel-syms-longterm.spec
===================================================================
--- kernel-source-ltul.orig/kernel-syms-longterm.spec
+++ kernel-source-ltul/kernel-syms-longterm.spec
@@ -1,5 +1,5 @@
#
-# spec file for package kernel-syms-longterm
+# spec file for package kernel-syms-ltul
#
# Copyright (c) 2024 SUSE LLC
#
@@ -20,8 +20,8 @@
-%define variant -longterm%{nil}
+%define variant -ltul%{nil}
%include %_sourcedir/kernel-spec-macros
-Name: kernel-syms-longterm
+Name: kernel-syms-ltul
Summary: Kernel Symbol Versions (modversions)
License: GPL-2.0-only
Group: Development/Sources
@@ -39,7 +39,7 @@
URL: https://www.kernel.org/
AutoReqProv: off
BuildRequires: coreutils
%ifarch aarch64 x86_64
-Requires: kernel-longterm-devel = %version-%source_rel
+Requires: kernel-ltul-devel = %version-%source_rel
%endif
Requires: pesign-obs-integration
Provides: %name = %version-%source_rel
Index: kernel-source-ltul/kernel-source-longterm.spec
===================================================================
--- kernel-source-ltul.orig/kernel-source-longterm.spec
+++ kernel-source-ltul/kernel-source-longterm.spec
@@ -1,5 +1,5 @@
#
-# spec file for package kernel-source-longterm
+# spec file for package kernel-source-ltul
#
# Copyright (c) 2024 SUSE LLC
#
@@ -22,1 +22,1 @@
-%define variant -longterm%{nil}
+%define variant -ltul%{nil}