Sync from SUSE:SLFO:Main kernel-source-rt revision 6a71274c134346154a402e0d10f0575a

This commit is contained in:
Adrian Schröter 2024-09-09 16:37:46 +02:00
parent 76a91e7491
commit 35fa1e6af7
22 changed files with 22960 additions and 32 deletions

View File

@ -15,6 +15,7 @@ declare -a IGNORED_CONFIGS_RE=(
'CC_VERSION_TEXT'
'DYNAMIC_SIGFRAME'
'FTRACE_MCOUNT_USE_[A-Z_]*'
'GCC_ASM_GOTO_OUTPUT_BROKEN'
'GCC_ASM_GOTO_OUTPUT_WORKAROUND'
'GCC_VERSION'
'G*CC[0-9]*_NO_[A-Z_]*'

View File

@ -24,3 +24,5 @@ SUPPORTED_MODULES_CHECK=Yes
BUILD_HTML=Yes
# build documentation in PDF format
BUILD_PDF=No
# Generate compile_commands.json
GENERATE_COMPILE_COMMANDS=Yes

BIN
config.tar.bz2 (Stored with Git LFS)

Binary file not shown.

View File

@ -1,7 +1,7 @@
#!/usr/bin/perl
use File::Spec;
use Getopt::Long;
use Getopt::Long qw(:config no_ignore_case);
use strict;
&main();

4
guards
View File

@ -26,7 +26,7 @@
#
use FileHandle;
use Getopt::Long;
use Getopt::Long qw(:config no_ignore_case);
use strict;
# Prototypes
@ -205,7 +205,7 @@ if ($check) {
# This is not an error if the entries are mutually exclusive...
}
}
exit $problems ? 1 : 0;
exit ($problems ? 1 : 0);
} elsif ($list) {
parse($fh, sub {

View File

@ -2,7 +2,7 @@
use strict;
use warnings;
use Getopt::Long;
use Getopt::Long qw(:config no_ignore_case);
use Data::Dumper;
# ( { sym => regexp, mod => regexp, fail => 0/1 }, ... )

BIN
kabi.tar.bz2 (Stored with Git LFS)

Binary file not shown.

View File

@ -30,6 +30,7 @@
%define split_optional @SPLIT_OPTIONAL@
%define supported_modules_check @SUPPORTED_MODULES_CHECK@
%define build_flavor @FLAVOR@
%define generate_compile_commands @GENERATE_COMPILE_COMMANDS@
%include %_sourcedir/kernel-spec-macros
@ -133,7 +134,7 @@ ExclusiveArch: do_not_build
%global cpu_arch %(%_sourcedir/arch-symbols %_target_cpu)
%define cpu_arch_flavor %cpu_arch/%build_flavor
%if 0%{?_project:1} && ( %(echo %_project | grep -Ex -f %_sourcedir/release-projects | grep -v ^PTF | grep -vc openSUSE) || %(echo %_project | grep -Ec "^(Devel:)?Kernel:") )
%if 0%{?_project:1} && ( %(echo %_project | grep -Ex -f %_sourcedir/release-projects | grep -vc ^PTF) || %(echo %_project | grep -Ec "^(Devel:)?Kernel:") )
%define klp_symbols 1
%endif
@ -614,6 +615,9 @@ relink ../../linux-%{kernelrelease}%{variant}-obj/"%cpu_arch_flavor" /usr/src/li
%dir /usr/src/linux-obj/%cpu_arch
%ghost /usr/src/linux-obj/%cpu_arch_flavor
%exclude %obj_install_dir/%cpu_arch_flavor/Symbols.list
%if %generate_compile_commands
%exclude %obj_install_dir/%cpu_arch_flavor/compile_commands.json
%endif
%if "%kmp_target_cpu" != "%cpu_arch"
%obj_install_dir/%kmp_target_cpu
/usr/src/linux-obj/%kmp_target_cpu
@ -991,6 +995,11 @@ done
# Generate list of symbols that are used to create kernel livepatches
%if 0%{?klp_symbols}
%_sourcedir/klp-symbols . Symbols.list
%if %generate_compile_commands
# Generate compile_commands.json
make compile_commands.json
%endif
%endif
%install
@ -1184,6 +1193,11 @@ if [ %CONFIG_MODULES = y ]; then
cp Symbols.list %rpm_install_dir/%cpu_arch/%build_flavor
echo %obj_install_dir/%cpu_arch/%build_flavor/Symbols.list > %my_builddir/livepatch-files.no_dir
%if %generate_compile_commands
cp compile_commands.json %rpm_install_dir/%cpu_arch/%build_flavor
echo %obj_install_dir/%cpu_arch/%build_flavor/compile_commands.json >> %my_builddir/livepatch-files.no_dir
%endif
%if "%CONFIG_LIVEPATCH_IPA_CLONES" == "y"
find %kernel_build_dir -name "*.ipa-clones" ! -size 0 | sed -e 's|^%kernel_build_dir/||' | sort > ipa-clones.list
cp ipa-clones.list %rpm_install_dir/%cpu_arch/%build_flavor

File diff suppressed because it is too large Load Diff

View File

@ -19,7 +19,7 @@
%define srcversion 6.4
%define patchversion 6.4.0
%define git_commit 90a8c81ce3c9ae3591acca72f13d2ff0a2f960d4
%define git_commit 02ae186887e396576d7eac8d2cd8e1c22baa862a
%define variant -rt%{nil}
%define compress_modules zstd
%define compress_vmlinux xz
@ -30,6 +30,7 @@
%define split_optional 0
%define supported_modules_check 1
%define build_flavor rt
%define generate_compile_commands 1
%include %_sourcedir/kernel-spec-macros
@ -38,7 +39,7 @@
Name: kernel-rt
Version: 6.4.0
%if 0%{?is_kotd}
Release: <RELEASE>.g90a8c81
Release: <RELEASE>.g02ae186
%else
Release: 0
%endif
@ -133,7 +134,7 @@ ExclusiveArch: do_not_build
%global cpu_arch %(%_sourcedir/arch-symbols %_target_cpu)
%define cpu_arch_flavor %cpu_arch/%build_flavor
%if 0%{?_project:1} && ( %(echo %_project | grep -Ex -f %_sourcedir/release-projects | grep -v ^PTF | grep -vc openSUSE) || %(echo %_project | grep -Ec "^(Devel:)?Kernel:") )
%if 0%{?_project:1} && ( %(echo %_project | grep -Ex -f %_sourcedir/release-projects | grep -vc ^PTF) || %(echo %_project | grep -Ec "^(Devel:)?Kernel:") )
%define klp_symbols 1
%endif
@ -820,6 +821,9 @@ relink ../../linux-%{kernelrelease}%{variant}-obj/"%cpu_arch_flavor" /usr/src/li
%dir /usr/src/linux-obj/%cpu_arch
%ghost /usr/src/linux-obj/%cpu_arch_flavor
%exclude %obj_install_dir/%cpu_arch_flavor/Symbols.list
%if %generate_compile_commands
%exclude %obj_install_dir/%cpu_arch_flavor/compile_commands.json
%endif
%if "%kmp_target_cpu" != "%cpu_arch"
%obj_install_dir/%kmp_target_cpu
/usr/src/linux-obj/%kmp_target_cpu
@ -1479,6 +1483,11 @@ done
# Generate list of symbols that are used to create kernel livepatches
%if 0%{?klp_symbols}
%_sourcedir/klp-symbols . Symbols.list
%if %generate_compile_commands
# Generate compile_commands.json
make compile_commands.json
%endif
%endif
%install
@ -1672,6 +1681,11 @@ if [ %CONFIG_MODULES = y ]; then
cp Symbols.list %rpm_install_dir/%cpu_arch/%build_flavor
echo %obj_install_dir/%cpu_arch/%build_flavor/Symbols.list > %my_builddir/livepatch-files.no_dir
%if %generate_compile_commands
cp compile_commands.json %rpm_install_dir/%cpu_arch/%build_flavor
echo %obj_install_dir/%cpu_arch/%build_flavor/compile_commands.json >> %my_builddir/livepatch-files.no_dir
%endif
%if "%CONFIG_LIVEPATCH_IPA_CLONES" == "y"
find %kernel_build_dir -name "*.ipa-clones" ! -size 0 | sed -e 's|^%kernel_build_dir/||' | sort > ipa-clones.list
cp ipa-clones.list %rpm_install_dir/%cpu_arch/%build_flavor

File diff suppressed because it is too large Load Diff

View File

@ -19,7 +19,7 @@
%define srcversion 6.4
%define patchversion 6.4.0
%define git_commit 90a8c81ce3c9ae3591acca72f13d2ff0a2f960d4
%define git_commit 02ae186887e396576d7eac8d2cd8e1c22baa862a
%define variant -rt%{nil}
%define compress_modules zstd
%define compress_vmlinux xz
@ -30,6 +30,7 @@
%define split_optional 0
%define supported_modules_check 1
%define build_flavor rt_debug
%define generate_compile_commands 1
%include %_sourcedir/kernel-spec-macros
@ -38,7 +39,7 @@
Name: kernel-rt_debug
Version: 6.4.0
%if 0%{?is_kotd}
Release: <RELEASE>.g90a8c81
Release: <RELEASE>.g02ae186
%else
Release: 0
%endif
@ -133,7 +134,7 @@ ExclusiveArch: do_not_build
%global cpu_arch %(%_sourcedir/arch-symbols %_target_cpu)
%define cpu_arch_flavor %cpu_arch/%build_flavor
%if 0%{?_project:1} && ( %(echo %_project | grep -Ex -f %_sourcedir/release-projects | grep -v ^PTF | grep -vc openSUSE) || %(echo %_project | grep -Ec "^(Devel:)?Kernel:") )
%if 0%{?_project:1} && ( %(echo %_project | grep -Ex -f %_sourcedir/release-projects | grep -vc ^PTF) || %(echo %_project | grep -Ec "^(Devel:)?Kernel:") )
%define klp_symbols 1
%endif
@ -820,6 +821,9 @@ relink ../../linux-%{kernelrelease}%{variant}-obj/"%cpu_arch_flavor" /usr/src/li
%dir /usr/src/linux-obj/%cpu_arch
%ghost /usr/src/linux-obj/%cpu_arch_flavor
%exclude %obj_install_dir/%cpu_arch_flavor/Symbols.list
%if %generate_compile_commands
%exclude %obj_install_dir/%cpu_arch_flavor/compile_commands.json
%endif
%if "%kmp_target_cpu" != "%cpu_arch"
%obj_install_dir/%kmp_target_cpu
/usr/src/linux-obj/%kmp_target_cpu
@ -1479,6 +1483,11 @@ done
# Generate list of symbols that are used to create kernel livepatches
%if 0%{?klp_symbols}
%_sourcedir/klp-symbols . Symbols.list
%if %generate_compile_commands
# Generate compile_commands.json
make compile_commands.json
%endif
%endif
%install
@ -1672,6 +1681,11 @@ if [ %CONFIG_MODULES = y ]; then
cp Symbols.list %rpm_install_dir/%cpu_arch/%build_flavor
echo %obj_install_dir/%cpu_arch/%build_flavor/Symbols.list > %my_builddir/livepatch-files.no_dir
%if %generate_compile_commands
cp compile_commands.json %rpm_install_dir/%cpu_arch/%build_flavor
echo %obj_install_dir/%cpu_arch/%build_flavor/compile_commands.json >> %my_builddir/livepatch-files.no_dir
%endif
%if "%CONFIG_LIVEPATCH_IPA_CLONES" == "y"
find %kernel_build_dir -name "*.ipa-clones" ! -size 0 | sed -e 's|^%kernel_build_dir/||' | sort > ipa-clones.list
cp ipa-clones.list %rpm_install_dir/%cpu_arch/%build_flavor

File diff suppressed because it is too large Load Diff

View File

@ -18,7 +18,7 @@
%define srcversion 6.4
%define patchversion 6.4.0
%define git_commit 90a8c81ce3c9ae3591acca72f13d2ff0a2f960d4
%define git_commit 02ae186887e396576d7eac8d2cd8e1c22baa862a
%define variant -rt%{nil}
%include %_sourcedir/kernel-spec-macros
@ -28,7 +28,7 @@
Name: kernel-source-rt
Version: 6.4.0
%if 0%{?is_kotd}
Release: <RELEASE>.g90a8c81
Release: <RELEASE>.g02ae186
%else
Release: 0
%endif

File diff suppressed because it is too large Load Diff

View File

@ -16,7 +16,7 @@
#
%define git_commit 90a8c81ce3c9ae3591acca72f13d2ff0a2f960d4
%define git_commit 02ae186887e396576d7eac8d2cd8e1c22baa862a
%define variant -rt%{nil}
%include %_sourcedir/kernel-spec-macros
@ -25,7 +25,7 @@ Name: kernel-syms-rt
Version: 6.4.0
%if %using_buildservice
%if 0%{?is_kotd}
Release: <RELEASE>.g90a8c81
Release: <RELEASE>.g02ae186
%else
Release: 0
%endif

4
mkspec
View File

@ -4,7 +4,7 @@ use strict;
use warnings;
use File::Copy;
use Getopt::Long;
use Getopt::Long qw(:config no_ignore_case);
my $dir = ".";
my $rpmrelease;
@ -64,6 +64,7 @@ my $split_optional = to_bool $vars{'SPLIT_OPTIONAL'};
my $supported_modules_check = to_bool $vars{'SUPPORTED_MODULES_CHECK'};
my $build_pdf = to_bool $vars{'BUILD_PDF'};
my $build_html = to_bool $vars{'BUILD_HTML'};
my $generate_compile_commands = to_bool $vars{'GENERATE_COMPILE_COMMANDS'};
if (!defined ($rpmrelease)) {
$rpmrelease = $vars{'RELEASE'} || 0;
@ -140,6 +141,7 @@ my %macros = (
YEAR => (localtime time)[5] + 1900,
COMPRESS_MODULES => $compress_modules,
COMPRESS_VMLINUX => $compress_vmlinux,
GENERATE_COMPILE_COMMANDS => $generate_compile_commands,
);
# binary spec files

View File

@ -3,7 +3,7 @@
use File::Basename;
use File::Path;
use File::Find;
use Getopt::Long;
use Getopt::Long qw(:config no_ignore_case);
use strict;
my %symbol_type_name = (

BIN
patches.kabi.tar.bz2 (Stored with Git LFS)

Binary file not shown.

BIN
patches.suse.tar.bz2 (Stored with Git LFS)

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@ -1,2 +1,3 @@
2024-07-31 10:58:56 +0000
GIT Revision: 90a8c81ce3c9ae3591acca72f13d2ff0a2f960d4
2024-09-03 23:16:36 +0000
GIT Revision: 02ae186887e396576d7eac8d2cd8e1c22baa862a
GIT Branch: ALP-current-RT