bc8bcb1212
* Mon May 17 2021 Fedora Kernel Team <kernel-team@fedoraproject.org> [5.13.0-0.rc2.19] - rpmspec: revert/drop content hash for kernel-headers (Herton R. Krzesinski) - rpmspec: fix check that calls InitBuildVars (Herton R. Krzesinski) - fedora: enable zonefs (Damien Le Moal) - redhat: load specific ARCH keys to INTEGRITY_PLATFORM_KEYRING (Bruno Meneguele) - redhat: enable INTEGRITY_TRUSTED_KEYRING across all variants (Bruno Meneguele) - redhat: enable SYSTEM_BLACKLIST_KEYRING across all variants (Bruno Meneguele) - redhat: enable INTEGRITY_ASYMMETRIC_KEYS across all variants (Bruno Meneguele) - Remove unused boot loader specification files (David Ward) - redhat/configs: Enable mlx5 IPsec and TLS offloads (Alaa Hleihel) [1869674 1957636] - Force DWARF4 because crash does not support DWARF5 yet (Justin M. Forbes) - common: disable Apple Silicon generally (Peter Robinson) - cleanup Intel's FPGA configs (Peter Robinson) - common: move PTP KVM support from ark to common (Peter Robinson) - [redhat] perf: enable dynamic linking of libbpf [1957210] - Enable CONFIG_DRM_AMDGPU_USERPTR for everyone (Justin M. Forbes) - redhat: add initial rpminspect configuration (Herton R. Krzesinski) - fedora: arm updates for 5.13 (Peter Robinson) - fedora: Enable WWAN and associated MHI bits (Peter Robinson) - Update CONFIG_MODPROBE_PATH to /usr/sbin (Justin Forbes) - Fedora set modprobe path (Justin M. Forbes) - Keep sctp and l2tp modules in modules-extra (Don Zickus) - Fix ppc64le cross build packaging (Don Zickus) - Fedora: Make amd_pinctrl module builtin (Hans de Goede) - Keep CONFIG_KASAN_HW_TAGS off for aarch64 debug configs (Justin M. Forbes) - New configs in drivers/bus (Fedora Kernel Team) - RHEL: Don't build KVM PR module on ppc64 (David Gibson) [1930649] - [redhat] spec: Add bzip2 dependency to perf package [1957219] - Flip CONFIG_USB_ROLE_SWITCH from m to y (Justin M. Forbes) - Set valid options for CONFIG_FW_LOADER_USER_HELPER (Justin M. Forbes) - Clean up CONFIG_FB_MODE_HELPERS (Justin M. Forbes) - Turn off CONFIG_VFIO for the s390x zfcpdump kernel (Justin M. Forbes) - Delete unused CONFIG_SND_SOC_MAX98390 pending-common (Justin M. Forbes) - Update pending-common configs, preparing to set correctly (Justin M. Forbes) - Update fedora filters for surface (Justin M. Forbes) - Build CONFIG_CRYPTO_ECDSA inline for s390x zfcpdump (Justin M. Forbes) - Replace "flavour" where "variant" is meant instead (David Ward) - Drop the %%{variant} macro and fix --with-vanilla (David Ward) - Fix syntax of %%kernel_variant_files (David Ward) - Change description of --without-vdso-install to fix typo (David Ward) - Config updates to work around mismatches (Justin M. Forbes) - CONFIG_SND_SOC_FSL_ASOC_CARD selects CONFIG_MFD_WM8994 now (Justin M. Forbes) - wireguard: disable in FIPS mode (Hangbin Liu) [1940794] - Enable mtdram for fedora (rhbz 1955916) (Justin M. Forbes) - Remove reference to bpf-helpers man page (Justin M. Forbes) - Fedora: enable more modules for surface devices (Dave Olsthoorn) - Fix Fedora config mismatch for CONFIG_FSL_ENETC_IERB (Justin M. Forbes) - hardlink is in /usr/bin/ now (Justin M. Forbes) - Ensure CONFIG_KVM_BOOK3S_64_PR stays on in Fedora, even if it is turned off in RHEL (Justin M. Forbes) - Set date in package release from repository commit, not system clock (David Ward) - Use a better upstream tarball filename for snapshots (David Ward) - Don't create empty pending-common files on pending-fedora commits (Don Zickus) - nvme: decouple basic ANA log page re-read support from native multipathing (Mike Snitzer) [1948690] - nvme: allow local retry and proper failover for REQ_FAILFAST_TRANSPORT (Mike Snitzer) [1948690] - nvme: Return BLK_STS_TARGET if the DNR bit is set (Mike Snitzer) [1948690] - Add redhat/configs/pending-common/generic/s390x/zfcpdump/CONFIG_NETFS_SUPPORT (Justin M. Forbes) Resolves: rhbz#1957219, rhbz#1930649, rhbz#1957210 Signed-off-by: Herton R. Krzesinski <herton@redhat.com>
177 lines
4.3 KiB
Bash
Executable File
177 lines
4.3 KiB
Bash
Executable File
#! /bin/bash
|
|
#
|
|
# Called as filter-modules.sh list-of-modules Arch
|
|
|
|
# This script filters the modules into the kernel-core and kernel-modules
|
|
# subpackages. We list out subsystems/subdirs to prune from the installed
|
|
# module directory. What is left is put into the kernel-core package. What is
|
|
# pruned is contained in the kernel-modules package.
|
|
#
|
|
# This file contains the default subsys/subdirs to prune from all architectures.
|
|
# If an architecture needs to differ, we source a per-arch filter-<arch>.sh file
|
|
# that contains the set of override lists to be used instead. If a module or
|
|
# subsys should be in kernel-modules on all arches, please change the defaults
|
|
# listed here.
|
|
|
|
# Overrides is individual modules which need to remain in kernel-core due to deps.
|
|
overrides="cec"
|
|
|
|
# Set the default dirs/modules to filter out
|
|
driverdirs="atm auxdisplay bcma bluetooth firewire fpga infiniband leds media memstick mfd mmc mtd nfc ntb pcmcia platform power ssb soundwire staging tty uio w1"
|
|
|
|
chardrvs="mwave pcmcia"
|
|
|
|
netdrvs="appletalk can dsa hamradio ieee802154 ppp slip usb wireless"
|
|
|
|
ethdrvs="3com adaptec alteon amd aquantia atheros broadcom cadence calxeda chelsio cisco dec dlink emulex marvell mellanox neterion nvidia packetengines qlogic rdc sfc silan sis smsc stmicro sun tehuti ti wiznet xircom"
|
|
|
|
inputdrvs="gameport tablet touchscreen"
|
|
|
|
hiddrvs="surface-hid"
|
|
|
|
scsidrvs="aacraid aic7xxx be2iscsi bfa bnx2i bnx2fc csiostor cxgbi esas2r fcoe fnic isci libsas lpfc megaraid mpt3sas mvsas pm8001 qla2xxx qla4xxx sym53c8xx_2 ufs qedf"
|
|
|
|
usbdrvs="atm image misc serial"
|
|
|
|
fsdrvs="affs befs coda cramfs dlm ecryptfs hfs hfsplus jfs jffs2 minix nilfs2 ocfs2 reiserfs romfs squashfs sysv ubifs ufs"
|
|
|
|
netprots="6lowpan appletalk atm ax25 batman-adv bluetooth can dsa ieee802154 l2tp mac80211 mac802154 mpls netrom nfc rds rfkill rose sctp smc wireless"
|
|
|
|
drmdrvs="amd ast bridge gma500 i2c i915 mgag200 nouveau panel radeon"
|
|
|
|
singlemods="ntb_netdev iscsi_ibft iscsi_boot_sysfs megaraid pmcraid qedi qla1280 9pnet_rdma rpcrdma nvmet-rdma nvme-rdma hid-picolcd hid-prodikeys hwpoison-inject target_core_user sbp_target cxgbit chcr parport_serial regmap-sdw hid-asus iTCO_wdt rnbd-client rnbd-server mlx5_vdpa"
|
|
|
|
# Grab the arch-specific filter list overrides
|
|
source ./filter-$2.sh
|
|
|
|
filter_dir() {
|
|
filelist=$1
|
|
dir=$2
|
|
|
|
grep -v -e "${dir}/" ${filelist} > ${filelist}.tmp
|
|
|
|
if [ $? -ne 0 ]
|
|
then
|
|
echo "Couldn't remove ${dir}. Skipping."
|
|
else
|
|
grep -e "${dir}/" ${filelist} >> k-d.list
|
|
mv ${filelist}.tmp $filelist
|
|
fi
|
|
|
|
return 0
|
|
}
|
|
|
|
filter_ko() {
|
|
filelist=$1
|
|
mod=$2
|
|
|
|
grep -v -e "${mod}.ko" ${filelist} > ${filelist}.tmp
|
|
|
|
if [ $? -ne 0 ]
|
|
then
|
|
echo "Couldn't remove ${mod}.ko Skipping."
|
|
else
|
|
grep -e "${mod}.ko" ${filelist} >> k-d.list
|
|
mv ${filelist}.tmp $filelist
|
|
fi
|
|
|
|
return 0
|
|
}
|
|
|
|
# Filter the drivers/ subsystems
|
|
for subsys in ${driverdirs}
|
|
do
|
|
filter_dir $1 drivers/${subsys}
|
|
done
|
|
|
|
# Filter the networking drivers
|
|
for netdrv in ${netdrvs}
|
|
do
|
|
filter_dir $1 drivers/net/${netdrv}
|
|
done
|
|
|
|
# Filter the char drivers
|
|
for char in ${chardrvs}
|
|
do
|
|
filter_dir $1 drivers/char/${char}
|
|
done
|
|
|
|
# Filter the ethernet drivers
|
|
for eth in ${ethdrvs}
|
|
do
|
|
filter_dir $1 drivers/net/ethernet/${eth}
|
|
done
|
|
|
|
# SCSI
|
|
for scsi in ${scsidrvs}
|
|
do
|
|
filter_dir $1 drivers/scsi/${scsi}
|
|
done
|
|
|
|
# Input
|
|
for input in ${inputdrvs}
|
|
do
|
|
filter_dir $1 drivers/input/${input}
|
|
done
|
|
|
|
# hid
|
|
for hid in ${hiddrvs}
|
|
do
|
|
filter_dir $1 drivers/hid/${hid}
|
|
done
|
|
|
|
# USB
|
|
for usb in ${usbdrvs}
|
|
do
|
|
filter_dir $1 drivers/usb/${usb}
|
|
done
|
|
|
|
# Filesystems
|
|
for fs in ${fsdrvs}
|
|
do
|
|
filter_dir $1 fs/${fs}
|
|
done
|
|
|
|
# Network protocols
|
|
for prot in ${netprots}
|
|
do
|
|
filter_dir $1 kernel/net/${prot}
|
|
done
|
|
|
|
# DRM
|
|
for drm in ${drmdrvs}
|
|
do
|
|
filter_dir $1 drivers/gpu/drm/${drm}
|
|
done
|
|
|
|
# Just kill sound.
|
|
filter_dir $1 kernel/sound
|
|
|
|
# Now go through and filter any single .ko files that might have deps on the
|
|
# things we filtered above
|
|
for mod in ${singlemods}
|
|
do
|
|
filter_ko $1 ${mod}
|
|
done
|
|
|
|
# Now process the override list to bring those modules back into core
|
|
for mod in ${overrides}
|
|
do
|
|
grep -v -e "/${mod}.ko" k-d.list > k-d.list.tmp
|
|
if [ $? -ne 0 ]
|
|
then
|
|
echo "Couldn't save ${mod}.ko Skipping."
|
|
else
|
|
grep -e "/${mod}.ko" k-d.list >> $filelist
|
|
mv k-d.list.tmp k-d.list
|
|
fi
|
|
|
|
done
|
|
|
|
# Go through our generated drivers list and remove the .ko files. We'll
|
|
# restore them later.
|
|
for mod in `cat k-d.list`
|
|
do
|
|
rm -rf $mod
|
|
done
|