Sync from SUSE:ALP:Source:Standard:1.0 kernel-source-rt revision 266aed64511bc091660abc2f7d97b440

This commit is contained in:
2024-10-14 16:53:13 +02:00
parent 3818ce32aa
commit a8bedcfc9d
22 changed files with 23040 additions and 31 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 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 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 3560636f986318b0b1b1655dbdd9e93f2a091d3b
%define git_commit e934c8fe561e3b4e6eeb3d36934180260478343a
%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>.g3560636
Release: <RELEASE>.ge934c8f
%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 3560636f986318b0b1b1655dbdd9e93f2a091d3b
%define git_commit e934c8fe561e3b4e6eeb3d36934180260478343a
%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>.g3560636
Release: <RELEASE>.ge934c8f
%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 3560636f986318b0b1b1655dbdd9e93f2a091d3b
%define git_commit e934c8fe561e3b4e6eeb3d36934180260478343a
%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>.g3560636
Release: <RELEASE>.ge934c8f
%else
Release: 0
%endif

File diff suppressed because it is too large Load Diff

View File

@@ -16,7 +16,7 @@
#
%define git_commit 3560636f986318b0b1b1655dbdd9e93f2a091d3b
%define git_commit e934c8fe561e3b4e6eeb3d36934180260478343a
%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>.g3560636
Release: <RELEASE>.ge934c8f
%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 = (

Binary file not shown.

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:824bf5fe03d6eb82790cbf5f7db8b5d67f364e0bd005f9741e108c3946c19e9c
size 22916617
oid sha256:d37410ec8d3145c16418b29af43183f6429dbd373e3899683265c1116b2dce5b
size 23488572

File diff suppressed because it is too large Load Diff

View File

@@ -1,2 +1,3 @@
2024-08-14 16:22:19 +0000
GIT Revision: 3560636f986318b0b1b1655dbdd9e93f2a091d3b
2024-09-13 21:48:05 +0000
GIT Revision: e934c8fe561e3b4e6eeb3d36934180260478343a
GIT Branch: ALP-current-RT