]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
kernel: update generating of fb and drm blacklist
authorArne Fitzenreiter <arne_f@ipfire.org>
Sat, 2 Dec 2017 09:44:09 +0000 (10:44 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Sat, 2 Dec 2017 09:44:09 +0000 (10:44 +0100)
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
lfs/linux

index e3c4c39809d1777bb5d71c4369d526062f08b453..92f400976ecd9d98e58cb3c331a738b9f28ce11b 100644 (file)
--- a/lfs/linux
+++ b/lfs/linux
@@ -231,16 +231,14 @@ ifeq "$(LASTKERNEL)" "1"
        # Only do this once
        cd $(DIR_APP) && install -m 755 usr/gen_init_cpio /sbin/
 
-       # Blacklist matroxfb_base
-       echo "blacklist matroxfb_base" >> /etc/modprobe.d/framebuffer.conf
        # Blacklist old framebuffer modules
-       for f in $$(find /lib/modules/$(VER)-$(VERSUFIX)/kernel/drivers/video -name *fb.ko); do \
+       for f in $$(find /lib/modules/$(VER)-$(VERSUFIX)/kernel/drivers/video/fbdev/ -name *.ko); do \
                echo "blacklist $$(basename $$f)" >> /etc/modprobe.d/framebuffer.conf ; \
        done
        # Blacklist new drm framebuffer modules
-       for f in $$(ls -1 /lib/modules/$(VER)-$(VERSUFIX)/kernel/drivers/gpu/drm/*/*.ko); do \
+       for f in $$(find /lib/modules/$(VER)-$(VERSUFIX)/kernel/drivers/gpu/drm -name *.ko); do \
                echo "blacklist $$(basename $$f)" >> /etc/modprobe.d/framebuffer.conf ; \
-       done
+       done    
        sed -i -e "s|.ko||g" /etc/modprobe.d/framebuffer.conf
 
        # Blacklist isdn modules