Skip to content

Commit c1ac588

Browse files
committed
Merge: redhat: Remove kernel-rt-kvm package
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/6758 JIRA: https://issues.redhat.com/browse/RHEL-76757 Upstream Status: RHEL-Only As requested by the BU, we are stop delivering KVM modules in separate packages on RT (kernel-rt-kvm). Signed-off-by: Wander Lairson Costa <wander@redhat.com> Approved-by: Jan Stancek <jstancek@redhat.com> Approved-by: Eder Zulian <ezulian@redhat.com> Approved-by: Clark Williams <williams@redhat.com> Approved-by: Derek Barbosa <debarbos@redhat.com> Approved-by: Valentin Schneider <vschneid@redhat.com> Approved-by: Luis Claudio R. Goncalves <lgoncalv@redhat.com> Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com> Merged-by: Augusto Caringi <acaringi@redhat.com>
2 parents 864cc6f + 47adaff commit c1ac588

File tree

3 files changed

+0
-61
lines changed

3 files changed

+0
-61
lines changed

redhat/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,6 @@ sources-rh: $(TARBALL) generate-testpatch-tmp setup-source dist-configs-check
632632
mod-denylist.sh \
633633
mod-internal.list \
634634
mod-partner.list \
635-
mod-kvm.list \
636635
mod-sign.sh \
637636
scripts/uki_addons/uki_create_addons.py \
638637
scripts/uki_addons/uki_addons.json \

redhat/kernel.spec.template

Lines changed: 0 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -902,7 +902,6 @@ Source82: update_scripts.sh
902902

903903
Source84: mod-internal.list
904904
Source85: mod-partner.list
905-
Source86: mod-kvm.list
906905

907906
Source100: rheldup3.x509
908907
Source101: rhelkpatch1.x509
@@ -1330,24 +1329,6 @@ AutoProv: yes\
13301329
This package provides kernel modules for the %{?2:%{2} }kernel package for Red Hat internal usage.\
13311330
%{nil}
13321331

1333-
%if %{with_realtime} || %{with_realtime_arm64_64k}
1334-
#
1335-
# this macro creates a kernel-<subpackage>-kvm package
1336-
# %%kernel_kvm_package <subpackage>
1337-
#
1338-
%define kernel_kvm_package() \
1339-
%package %{?1:%{1}-}kvm\
1340-
Summary: KVM modules for package kernel%{?1:-%{1}}\
1341-
Group: System Environment/Kernel\
1342-
Requires: kernel-uname-r = %{KVERREL}%{uname_suffix %{?1:%{1}}}\
1343-
Provides: installonlypkg(kernel-module)\
1344-
Provides: kernel%{?1:-%{1}}-kvm-%{_target_cpu} = %{version}-%{release}\
1345-
AutoReq: no\
1346-
%description -n kernel%{?1:-%{1}}-kvm\
1347-
This package provides KVM modules for package kernel%{?1:-%{1}}.\
1348-
%{nil}
1349-
%endif
1350-
13511332
#
13521333
# This macro creates a kernel-<subpackage>-modules-extra package.
13531334
# %%kernel_modules_extra_package [-m] <subpackage> <pretty-name>
@@ -1481,9 +1462,6 @@ Requires: kernel%{?1:-%{1}}-uki-virt = %{version}-%{release}\
14811462
Requires(pre): systemd >= 252-20\
14821463
%endif\
14831464
%endif\
1484-
%if "%{1}" == "rt" || "%{1}" == "rt-debug" || "%{1}" == "rt-64k" || "%{1}" == "rt-64k-debug"\
1485-
%{expand:%%kernel_kvm_package %{?1:%{1}}} %{!?{-n}:%{1}}%{?{-n}:%{-n*}}}\
1486-
%endif \
14871465
%if %{with_gcov}\
14881466
%{expand:%%kernel_gcov_package %{?1:%{1}}}\
14891467
%endif\
@@ -2379,10 +2357,6 @@ BuildKernel() {
23792357
# Identify modules in the kernel-modules-partner package
23802358
%{SOURCE20} $RPM_BUILD_ROOT lib/modules/$KernelVer %{SOURCE85} partner
23812359
%endif
2382-
if [ "$Variant" = "rt" ] || [ "$Variant" = "rt-debug" ] || [ "$Variant" = "rt-64k" ] || [ "$Variant" = "rt-64k-debug" ]; then
2383-
# Identify modules in the kernel-rt-kvm package
2384-
%{SOURCE20} $RPM_BUILD_ROOT lib/modules/$KernelVer %{SOURCE86} kvm
2385-
fi
23862360

23872361
#
23882362
# Generate the kernel-core and kernel-modules files lists
@@ -2404,10 +2378,6 @@ BuildKernel() {
24042378
# don't include anything going int kernel-modules-partner in the file lists
24052379
xargs rm -rf < mod-partner.list
24062380
%endif
2407-
if [ "$Variant" = "rt" ] || [ "$Variant" = "rt-debug" ] || [ "$Variant" = "rt-64k" ] || [ "$Variant" = "rt-64k-debug" ]; then
2408-
# don't include anything going into kernel-rt-kvm in the file lists
2409-
xargs rm -rf < mod-kvm.list
2410-
fi
24112381

24122382
if [ $DoModules -eq 1 ]; then
24132383
# Find all the module files and filter them out into the core and
@@ -2548,9 +2518,6 @@ BuildKernel() {
25482518
%if 0%{!?fedora:1}
25492519
rm -f $RPM_BUILD_ROOT/mod-partner.list
25502520
%endif
2551-
if [ "$Variant" = "rt" ] || [ "$Variant" = "rt-debug" ] || [ "$Variant" = "rt-64k" ] || [ "$Variant" = "rt-64k-debug" ]; then
2552-
rm -f $RPM_BUILD_ROOT/mod-kvm.list
2553-
fi
25542521

25552522
%if %{with_cross}
25562523
make -C $RPM_BUILD_ROOT/lib/modules/$KernelVer/build M=scripts clean
@@ -3270,21 +3237,6 @@ fi\
32703237
/sbin/depmod -a %{KVERREL}%{?1:+%{1}}\
32713238
%{nil}
32723239

3273-
%if %{with_realtime}
3274-
#
3275-
# This macro defines a %%post script for a kernel*-kvm package.
3276-
# It also defines a %%postun script that does the same thing.
3277-
# %%kernel_kvm_post [<subpackage>]
3278-
#
3279-
%define kernel_kvm_post() \
3280-
%{expand:%%post %{?1:%{1}-}kvm}\
3281-
/sbin/depmod -a %{KVERREL}%{?1:+%{1}}\
3282-
%{nil}\
3283-
%{expand:%%postun %{?1:%{1}-}kvm}\
3284-
/sbin/depmod -a %{KVERREL}%{?1:+%{1}}\
3285-
%{nil}
3286-
%endif
3287-
32883240
#
32893241
# This macro defines a %%post script for a kernel*-modules-partner package.
32903242
# It also defines a %%postun script that does the same thing.
@@ -3365,9 +3317,6 @@ fi\
33653317
%if 0%{!?fedora:1}\
33663318
%{expand:%%kernel_modules_partner_post %{?-v*}}\
33673319
%endif\
3368-
%if "%{-v*}" == "rt" || "%{-v*}" == "rt-debug" || "%{-v*}" == "rt-64k" || "%{-v*}" == "rt-64k-debug"\
3369-
%{expand:%%kernel_kvm_post %{?-v*}}\
3370-
%endif\
33713320
%{expand:%%kernel_variant_posttrans %{?-v*:-v %{-v*}}}\
33723321
%{expand:%%post %{?-v*:%{-v*}-}core}\
33733322
%{-r:\
@@ -3698,10 +3647,6 @@ fi
36983647
%{expand:%%files %{?3:%{3}-}modules-partner}\
36993648
/lib/modules/%{KVERREL}%{?3:+%{3}}/partner\
37003649
%endif\
3701-
%if "%{3}" == "rt" || "%{3}" == "rt-debug" || "%{3}" == "rt-64k" || "%{3}" == "rt-64k-debug"\
3702-
%{expand:%%files %{?3:%{3}-}kvm}\
3703-
/lib/modules/%{KVERREL}%{?3:+%{3}}/kvm\
3704-
%endif\
37053650
%if %{with_debuginfo}\
37063651
%ifnarch noarch\
37073652
%{expand:%%files -f debuginfo%{?3}.list %{?3:%{3}-}debuginfo}\

redhat/mod-kvm.list

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)