Merge pull request #1372 from kmajzero/conf_framework_fix
Fix for incorrect header file handling in ./configure
This commit is contained in:
commit
65bc955d4f
@ -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
|
||||
|
@ -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
|
||||
|
@ -21,6 +21,7 @@ add_function() {
|
||||
}
|
||||
|
||||
__compile_module(){
|
||||
INCLUDE=""
|
||||
if [ $# -gt 1 ]
|
||||
then
|
||||
i=2
|
||||
|
Loading…
Reference in New Issue
Block a user