summaryrefslogtreecommitdiffstats
path: root/filter-modules.sh.fedora
diff options
context:
space:
mode:
authorJustin M. Forbes <jforbes@fedoraproject.org>2020-06-10 17:15:58 -0500
committerJustin M. Forbes <jforbes@fedoraproject.org>2020-06-10 17:15:58 -0500
commit614b7d7d7b10d8e3f146bed311215f818be5accd (patch)
treeff92323ae8547b034624753824df4568b1079918 /filter-modules.sh.fedora
parentf74d84eda2966af5c10fcae2ef90a940f96943a0 (diff)
downloadkernel-614b7d7d7b10d8e3f146bed311215f818be5accd.tar.gz
kernel-614b7d7d7b10d8e3f146bed311215f818be5accd.tar.xz
kernel-614b7d7d7b10d8e3f146bed311215f818be5accd.zip
Initial 5.7.2 rebase
Signed-off-by: Justin M. Forbes <jforbes@fedoraproject.org>
Diffstat (limited to 'filter-modules.sh.fedora')
-rwxr-xr-xfilter-modules.sh.fedora17
1 files changed, 17 insertions, 0 deletions
diff --git a/filter-modules.sh.fedora b/filter-modules.sh.fedora
index eb246e157..436dcc50a 100755
--- a/filter-modules.sh.fedora
+++ b/filter-modules.sh.fedora
@@ -13,6 +13,9 @@
# 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 fmc fpga infiniband isdn leds media memstick mfd mmc mtd nfc ntb pcmcia platform power ssb soundwire staging tty uio uwb w1"
@@ -145,6 +148,20 @@ 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`