Merge pull request #1372 from kmajzero/conf_framework_fix

Fix for incorrect header file handling in ./configure
This commit is contained in:
Robert Baldyga 2022-10-05 15:34:36 +02:00 committed by GitHub
commit 65bc955d4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View File

@ -13,7 +13,7 @@ check() {
if compile_module $cur_name "bdev_nr_sectors(NULL);" "linux/genhd.h"
then
echo $cur_name 1 >> $config_file_path
elif compile_module $cur_name "struct block_device *bd; bd->bd_part->nr_sects;" "linux/blk_types.h"
elif compile_module $cur_name "struct block_device *bd; bd->bd_part->nr_sects;" "linux/blk_types.h" "linux/genhd.h"
then
echo $cur_name 2 >> $config_file_path
else

View File

@ -13,7 +13,7 @@ check() {
if compile_module $cur_name "struct block_device *bd; bdev_whole(bd);" "linux/blk_types.h" "linux/genhd.h"
then
echo $cur_name 1 >> $config_file_path
elif compile_module $cur_name "struct block_device *bd; bd->bd_contains;" "linux/blk_types.h"
elif compile_module $cur_name "struct block_device *bd; bd->bd_contains;" "linux/blk_types.h" "linux/fs.h"
then
echo $cur_name 2 >> $config_file_path
else

View File

@ -21,6 +21,7 @@ add_function() {
}
__compile_module(){
INCLUDE=""
if [ $# -gt 1 ]
then
i=2