2024-12-18 16:03:22 +01:00
|
|
|
#
|
|
|
|
# spec file for package Kernel live patch module
|
|
|
|
#
|
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# needssslcertforbuild
|
|
|
|
|
|
|
|
%define variant -rt%{nil}
|
|
|
|
|
|
|
|
Name: kernel-livepatch-MICRO-6-0-RT_Update_4
|
2025-07-30 18:05:11 +02:00
|
|
|
Version: 5
|
2024-12-18 16:03:22 +01:00
|
|
|
Release: 1
|
|
|
|
%define module_num %(echo %version-%release | sed 'y/\./_/')
|
|
|
|
License: GPL-2.0
|
|
|
|
Summary: Kernel live patch module
|
|
|
|
Group: System/Kernel
|
|
|
|
Source0: uname_patch.tar.bz2
|
|
|
|
Source1: Makefile
|
|
|
|
Source2: livepatch_main.c
|
|
|
|
Source3: config.sh
|
|
|
|
Source4: source-timestamp
|
|
|
|
Source5: shadow.h
|
2025-06-10 13:14:32 +02:00
|
|
|
Source6: klp_syscalls.h
|
|
|
|
Source7: klp_trace.h
|
|
|
|
Source8: lp-mod-checks.sh
|
2024-12-18 16:03:22 +01:00
|
|
|
# Auto expanded KLP_PATCHES_SOURCES:
|
2025-07-30 18:05:11 +02:00
|
|
|
Source9: bsc1234854.tar.bz2
|
|
|
|
Source10: bsc1234885.tar.bz2
|
|
|
|
Source11: bsc1234892.tar.bz2
|
|
|
|
Source12: bsc1235005.tar.bz2
|
|
|
|
Source13: bsc1235008.tar.bz2
|
|
|
|
Source14: bsc1235062.tar.bz2
|
|
|
|
Source15: bsc1235129.tar.bz2
|
|
|
|
Source16: bsc1235218.tar.bz2
|
|
|
|
Source17: bsc1235231.tar.bz2
|
|
|
|
Source18: bsc1235431.tar.bz2
|
|
|
|
Source19: bsc1235769.tar.bz2
|
|
|
|
Source20: bsc1235916.tar.bz2
|
|
|
|
Source21: bsc1235921.tar.bz2
|
|
|
|
Source22: bsc1236701.tar.bz2
|
|
|
|
Source23: bsc1238912.tar.bz2
|
|
|
|
Source24: bsc1239077.tar.bz2
|
|
|
|
Source25: bsc1239096.tar.bz2
|
|
|
|
Source26: bsc1241579.tar.bz2
|
|
|
|
Source27: bsc1243648.tar.bz2
|
2024-12-18 16:03:22 +01:00
|
|
|
BuildRequires: kernel-syms%{variant} kernel-livepatch-tools-devel libelf-devel
|
|
|
|
ExclusiveArch: x86_64
|
|
|
|
%klp_module_package
|
|
|
|
|
|
|
|
%description
|
|
|
|
This is a live patch for SUSE Linux Enterprise Server kernel.
|
|
|
|
|
2025-07-30 18:05:11 +02:00
|
|
|
Source timestamp: 2025-07-18 07:25:31 +0200
|
|
|
|
GIT Revision: 6c68c11739e323e3152708d95e6e0edc7a513302
|
2024-12-18 16:03:22 +01:00
|
|
|
GIT Branch: MICRO-6-0-RT_Update_4
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -c
|
|
|
|
# Auto expanded KLP_PATCHES_SETUP_SOURCES:
|
2025-07-30 18:05:11 +02:00
|
|
|
%setup -T -D -a 9 -a 10 -a 11 -a 12 -a 13 -a 14 -a 15 -a 16 -a 17 -a 18 -a 19 -a 20 -a 21 -a 22 -a 23 -a 24 -a 25 -a 26 -a 27
|
2024-12-18 16:03:22 +01:00
|
|
|
cp %_sourcedir/livepatch_main.c .
|
|
|
|
cp %_sourcedir/shadow.h .
|
|
|
|
cp %_sourcedir/Makefile .
|
|
|
|
cp %_sourcedir/klp_syscalls.h .
|
|
|
|
cp %_sourcedir/klp_trace.h .
|
|
|
|
|
|
|
|
%build
|
|
|
|
sed -i 's/@@RPMRELEASE@@/%module_num/g' Makefile
|
|
|
|
sed -i 's/@@RPMRELEASE@@/%module_num/g' livepatch_main.c
|
|
|
|
echo 'livepatch-%module_num' >Module.supported
|
|
|
|
set -- *
|
|
|
|
|
|
|
|
for flavor in %flavors_to_build; do
|
|
|
|
mkdir -p "obj/$flavor"
|
|
|
|
cp -r "$@" "obj/$flavor"
|
|
|
|
make -C %{kernel_source $flavor} M="$PWD/obj/$flavor" modules
|
|
|
|
|
2025-05-22 14:58:42 +02:00
|
|
|
for module in $(find "obj/$flavor" -name '*.ko'); do
|
|
|
|
/bin/sh %_sourcedir/lp-mod-checks.sh "$module"
|
|
|
|
done
|
2024-12-18 16:03:22 +01:00
|
|
|
done
|
|
|
|
|
|
|
|
%install
|
|
|
|
export INSTALL_MOD_DIR=livepatch
|
|
|
|
export INSTALL_MOD_PATH=%buildroot
|
|
|
|
for flavor in %flavors_to_build; do
|
|
|
|
make -C %{kernel_source $flavor} M="$PWD/obj/$flavor" modules_install
|
|
|
|
done
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|