2019-03-18 09:16:03 +00:00
|
|
|
#
|
2019-05-29 07:08:32 +00:00
|
|
|
# spec file for package kernel-default-base
|
2019-03-18 09:16:03 +00:00
|
|
|
#
|
2020-02-19 11:44:28 +00:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2019-03-18 09:16:03 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-11-05 14:42:10 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2019-03-18 09:16:03 +00:00
|
|
|
#
|
|
|
|
# needssslcertforbuild
|
|
|
|
|
2019-05-29 07:08:32 +00:00
|
|
|
|
2019-03-18 09:16:03 +00:00
|
|
|
# To be defined by user
|
|
|
|
%define build_flavor default
|
|
|
|
# variant includes dash: %%define variant -azure
|
|
|
|
%define variant %{nil}
|
|
|
|
%define subpackage base
|
|
|
|
%define extrasummary base modules
|
|
|
|
%define extradescription This package contains only the base modules, required in all installs.
|
|
|
|
|
2020-04-21 13:10:53 +00:00
|
|
|
%define misc_modules button edd i6300esb efivarfs qemu_fw_cfg
|
2019-03-18 09:16:03 +00:00
|
|
|
|
2019-08-12 13:15:06 +00:00
|
|
|
%define virtio_modules virtio virtio_.* virtio-.*
|
2019-03-18 09:16:03 +00:00
|
|
|
|
2019-08-12 13:15:06 +00:00
|
|
|
%define xen_modules xenblk xennet xen-.*
|
2019-03-18 09:16:03 +00:00
|
|
|
|
2019-08-12 13:15:06 +00:00
|
|
|
%define vmware_modules vmxnet3 vmw_.*
|
2019-03-18 09:16:03 +00:00
|
|
|
|
|
|
|
%define hyperv_modules hid-hyperv hv_balloon hv_utils \
|
|
|
|
hv_vmbus hyperv-keyboard hv_netvsc hv_storvsc scsi_transport_fc hyperv_fb
|
|
|
|
|
|
|
|
%define net_drivers 8390 ne2k-pci tulip e100 e1000 e1000e 8139cp 8139too
|
|
|
|
|
|
|
|
%define scsi_modules scsi_transport_iscsi sd_mod sg sr_mod st scsi_mod
|
|
|
|
|
2020-02-19 11:44:28 +00:00
|
|
|
%define block_drivers loop dm-mod ahci ata_piix mptsas mptspi BusLogic sym53c8xx aam53c974 rbd brd
|
2019-03-18 09:16:03 +00:00
|
|
|
|
|
|
|
%define usb_modules usb-common usbcore ehci-hcd ehci-pci ohci-hcd ohci-pci uhci-hcd \
|
|
|
|
xhci-hcd xhci-pci typec_ucsi ucsi_acpi typec ums-alauda ums-cypress ums-datafab \
|
|
|
|
ums-eneub6250 ums-freecom ums-isd200 ums-jumpshot ums-karma ums-onetouch \
|
|
|
|
ums-realtek ums-sddr09 ums-sddr55 ums-usbat usb-storage
|
|
|
|
|
|
|
|
%define filesystems autofs4 btrfs ext4 vfat isofs jbd2 mbcache nfsv2 nfsv3 nfsv4 overlay xfs \
|
2019-11-05 14:42:10 +00:00
|
|
|
nls_cp437 nls_iso8859-1 ceph
|
2019-03-18 09:16:03 +00:00
|
|
|
|
2019-07-29 15:18:06 +00:00
|
|
|
%define networking \
|
2019-08-12 13:15:06 +00:00
|
|
|
af_packet arptable_filter arp_tables arpt_mangle bpfilter bridge br_netfilter \
|
2019-08-15 13:18:16 +00:00
|
|
|
ebt_.* ebtable_.* ebtables ip6table_.* ip6_tables ip6t_.* ip_.* ipt_.* iptable_.* \
|
2020-03-02 10:32:36 +00:00
|
|
|
nf_.* nfnetlink.* nft_.* tun veth xfrm.*_tunnel xfrm_.* x_tables xt_.* tcp_diag
|
2019-03-18 09:16:03 +00:00
|
|
|
|
2020-05-05 11:04:13 +00:00
|
|
|
%define crc32_modules crc32c_generic crc32c-intel crc32c-vpmsum crc32-vx_s390 crc32-arm-ce
|
|
|
|
|
2019-03-18 09:16:03 +00:00
|
|
|
%define modules %usb_modules %net_drivers %scsi_modules %block_drivers \
|
|
|
|
%hyperv_modules %virtio_modules %vmware_modules %xen_modules \
|
2020-05-05 11:04:13 +00:00
|
|
|
%networking %filesystems %misc_modules %crc32_modules
|
2019-03-18 09:16:03 +00:00
|
|
|
|
|
|
|
# Reasonable defaults that might be overriden if needed
|
|
|
|
%define kernel_package_name kernel-%build_flavor
|
|
|
|
%define package_name %kernel_package_name-%subpackage
|
|
|
|
%define url %(rpm -q --qf '%%{URL}' %kernel_package_name)
|
|
|
|
%define group %(rpm -q --qf '%%{GROUP}' %kernel_package_name)
|
|
|
|
%define summary %(rpm -q --qf '%%{SUMMARY}' %kernel_package_name) - %extrasummary
|
|
|
|
|
|
|
|
Name: %package_name
|
|
|
|
BuildRequires: %kernel_package_name
|
|
|
|
BuildRequires: %kernel_package_name-devel
|
|
|
|
BuildRequires: kernel-subpackage-macros
|
|
|
|
Summary: %summary
|
2019-05-29 07:08:32 +00:00
|
|
|
License: GPL-2.0-only
|
2019-04-04 14:41:58 +00:00
|
|
|
Group: %group
|
2019-05-29 07:08:32 +00:00
|
|
|
URL: %url
|
|
|
|
# on SLE limit to architectures that actually have a kernel :-)
|
|
|
|
%if 0%{?sle_version}
|
|
|
|
ExclusiveArch: aarch64 armv7hl ppc64le s390x x86_64
|
|
|
|
%endif
|
2019-03-18 09:16:03 +00:00
|
|
|
|
|
|
|
# Internal stuff begins
|
|
|
|
%define rpm_kver %(rpm -q --qf '%%{VERSION}' %kernel_package_name)
|
|
|
|
%define rpm_krel %(rpm -q --qf '%%{RELEASE}' %kernel_package_name)
|
|
|
|
Version: %rpm_kver
|
|
|
|
Release: %rpm_krel.<RELEASE>
|
|
|
|
|
|
|
|
%define scriptdir /usr/lib/rpm/kernel
|
|
|
|
%include %scriptdir/kernel-subpackage-spec
|
2019-05-29 07:08:32 +00:00
|
|
|
|
|
|
|
%changelog
|