From b56b1abcdc50892d068c0fd0e0d16d0242101230 Mon Sep 17 00:00:00 2001 From: Sylvain BERTRAND Date: Sun, 3 Feb 2019 17:56:26 +0000 Subject: [PATCH] load modules common to all linux revisions --- 3.16 | 9 --------- 4.0 | 9 --------- 4.12 | 9 --------- 4.13 | 9 --------- 4.14 | 9 --------- 4.15 | 9 --------- 4.16 | 9 --------- 4.18 | 11 ----------- 4.19 | 11 ----------- 4.20 | 11 ----------- make | 19 +++++++++++++++---- 4.17 => modules_revisions_all.sh | 0 12 files changed, 15 insertions(+), 100 deletions(-) delete mode 100644 3.16 delete mode 100644 4.0 delete mode 100644 4.12 delete mode 100644 4.13 delete mode 100644 4.14 delete mode 100644 4.15 delete mode 100644 4.16 delete mode 100644 4.18 delete mode 100644 4.19 delete mode 100644 4.20 rename 4.17 => modules_revisions_all.sh (100%) diff --git a/3.16 b/3.16 deleted file mode 100644 index cc78d77..0000000 --- a/3.16 +++ /dev/null @@ -1,9 +0,0 @@ -#Those are the modules needed to find our root filesystem can be. For a live -#system, this should be most hardware block drivers without forgetting usb -#mass storage (may need usb attached scsi) -HW_MODULES=sata_nv,ahci -#those modules are "disk" drivers which uses their respective "bus" drivers -#(sd_mod->scsi, usb-storaye->usb...) -DISK_MODULES=sd_mod,usb-storage -#the modules of filesystems we want to include in our initramfs -FS_MODULES=ext4 diff --git a/4.0 b/4.0 deleted file mode 100644 index cc78d77..0000000 --- a/4.0 +++ /dev/null @@ -1,9 +0,0 @@ -#Those are the modules needed to find our root filesystem can be. For a live -#system, this should be most hardware block drivers without forgetting usb -#mass storage (may need usb attached scsi) -HW_MODULES=sata_nv,ahci -#those modules are "disk" drivers which uses their respective "bus" drivers -#(sd_mod->scsi, usb-storaye->usb...) -DISK_MODULES=sd_mod,usb-storage -#the modules of filesystems we want to include in our initramfs -FS_MODULES=ext4 diff --git a/4.12 b/4.12 deleted file mode 100644 index ad01488..0000000 --- a/4.12 +++ /dev/null @@ -1,9 +0,0 @@ -#Those are the modules needed to find our root filesystem can be. For a live -#system, this should be most hardware block drivers without forgetting usb -#mass storage (may need usb attached scsi) -HW_MODULES=ahci -#those modules are "disk" drivers which uses their respective "bus" drivers -#(sd_mod->scsi, usb-storaye->usb...) -DISK_MODULES=sd_mod,usb-storage -#the modules of filesystems we want to include in our initramfs -FS_MODULES=ext4 diff --git a/4.13 b/4.13 deleted file mode 100644 index ad01488..0000000 --- a/4.13 +++ /dev/null @@ -1,9 +0,0 @@ -#Those are the modules needed to find our root filesystem can be. For a live -#system, this should be most hardware block drivers without forgetting usb -#mass storage (may need usb attached scsi) -HW_MODULES=ahci -#those modules are "disk" drivers which uses their respective "bus" drivers -#(sd_mod->scsi, usb-storaye->usb...) -DISK_MODULES=sd_mod,usb-storage -#the modules of filesystems we want to include in our initramfs -FS_MODULES=ext4 diff --git a/4.14 b/4.14 deleted file mode 100644 index ad01488..0000000 --- a/4.14 +++ /dev/null @@ -1,9 +0,0 @@ -#Those are the modules needed to find our root filesystem can be. For a live -#system, this should be most hardware block drivers without forgetting usb -#mass storage (may need usb attached scsi) -HW_MODULES=ahci -#those modules are "disk" drivers which uses their respective "bus" drivers -#(sd_mod->scsi, usb-storaye->usb...) -DISK_MODULES=sd_mod,usb-storage -#the modules of filesystems we want to include in our initramfs -FS_MODULES=ext4 diff --git a/4.15 b/4.15 deleted file mode 100644 index ad01488..0000000 --- a/4.15 +++ /dev/null @@ -1,9 +0,0 @@ -#Those are the modules needed to find our root filesystem can be. For a live -#system, this should be most hardware block drivers without forgetting usb -#mass storage (may need usb attached scsi) -HW_MODULES=ahci -#those modules are "disk" drivers which uses their respective "bus" drivers -#(sd_mod->scsi, usb-storaye->usb...) -DISK_MODULES=sd_mod,usb-storage -#the modules of filesystems we want to include in our initramfs -FS_MODULES=ext4 diff --git a/4.16 b/4.16 deleted file mode 100644 index ad01488..0000000 --- a/4.16 +++ /dev/null @@ -1,9 +0,0 @@ -#Those are the modules needed to find our root filesystem can be. For a live -#system, this should be most hardware block drivers without forgetting usb -#mass storage (may need usb attached scsi) -HW_MODULES=ahci -#those modules are "disk" drivers which uses their respective "bus" drivers -#(sd_mod->scsi, usb-storaye->usb...) -DISK_MODULES=sd_mod,usb-storage -#the modules of filesystems we want to include in our initramfs -FS_MODULES=ext4 diff --git a/4.18 b/4.18 deleted file mode 100644 index 11793d4..0000000 --- a/4.18 +++ /dev/null @@ -1,11 +0,0 @@ -#Those are the modules needed to find our root filesystem can be. For a live -#system, this should be most hardware block drivers without forgetting usb -#mass storage (may need usb attached scsi) -HW_MODULES=ahci -#those modules are "disk" drivers which uses their respective "bus" drivers -#(sd_mod->scsi, usb-storaye->usb...) -DISK_MODULES=sd_mod,usb-storage -#the modules of filesystems we want to include in our initramfs -#WARNING:the soft dep of ext4 on crypto crc32c is not handled, you must add the -#module which registers the crc32c algo manually -FS_MODULES=ext4 diff --git a/4.19 b/4.19 deleted file mode 100644 index 11793d4..0000000 --- a/4.19 +++ /dev/null @@ -1,11 +0,0 @@ -#Those are the modules needed to find our root filesystem can be. For a live -#system, this should be most hardware block drivers without forgetting usb -#mass storage (may need usb attached scsi) -HW_MODULES=ahci -#those modules are "disk" drivers which uses their respective "bus" drivers -#(sd_mod->scsi, usb-storaye->usb...) -DISK_MODULES=sd_mod,usb-storage -#the modules of filesystems we want to include in our initramfs -#WARNING:the soft dep of ext4 on crypto crc32c is not handled, you must add the -#module which registers the crc32c algo manually -FS_MODULES=ext4 diff --git a/4.20 b/4.20 deleted file mode 100644 index 11793d4..0000000 --- a/4.20 +++ /dev/null @@ -1,11 +0,0 @@ -#Those are the modules needed to find our root filesystem can be. For a live -#system, this should be most hardware block drivers without forgetting usb -#mass storage (may need usb attached scsi) -HW_MODULES=ahci -#those modules are "disk" drivers which uses their respective "bus" drivers -#(sd_mod->scsi, usb-storaye->usb...) -DISK_MODULES=sd_mod,usb-storage -#the modules of filesystems we want to include in our initramfs -#WARNING:the soft dep of ext4 on crypto crc32c is not handled, you must add the -#module which registers the crc32c algo manually -FS_MODULES=ext4 diff --git a/make b/make index d07a5ff..b2c0f6e 100755 --- a/make +++ b/make @@ -208,13 +208,24 @@ sep_end # generated some code/headers sep_start -revision=$(echo "$kernel_release" | egrep -o '^[[:digit:]]+\.[[:digit:]]+') -. $src_path/$revision -printf "linux revision is $revision, $src_path/$revision was sourced:\n--------\n" -cat $src_path/$revision +. $src_path/modules_revisions_all.sh +printf "$src_path/modules_revisions_all.sh was sourced:\n--------\n" +cat $src_path/modules_revisions_all.sh echo '--------' sep_end +sep_start +revision=$(echo "$kernel_release" | egrep -o '^[[:digit:]]+\.[[:digit:]]+') +if test -f $src_path/$revision; then + . $src_path/$revision + printf "linux revision is $revision, $src_path/$revision was sourced:\n--------\n" + cat $src_path/$revision + echo '--------' +else + echo 'no revision specific modules to source' +fi +sep_end + # those modules are all loaded before anything else sep_start;echo 'generate static module list:' $src_path/script/static_modules_h.sh $extra_modules $DISK_MODULES \ diff --git a/4.17 b/modules_revisions_all.sh similarity index 100% rename from 4.17 rename to modules_revisions_all.sh -- 2.11.4.GIT