Merge pull request #833 from robertbaldyga/configure-fix-condition
configure: Fix condition for bd_first_part
This commit is contained in:
commit
877772734e
@ -9,10 +9,10 @@
|
||||
check() {
|
||||
cur_name=$(basename $2)
|
||||
config_file_path=$1
|
||||
if compile_module $cur_name "struct block_device *bd; bd->bd_partno;" "linux/blk_types.h"
|
||||
if compile_module $cur_name "struct block_device *bd; bd = disk_part_iter_next(NULL);" "linux/blk_types.h"
|
||||
then
|
||||
echo $cur_name "1" >> $config_file_path
|
||||
elif compile_module $cur_name "struct hd_struct *hd; hd->partno;" "linux/genhd.h"
|
||||
elif compile_module $cur_name "struct hd_struct *hd; hd = disk_part_iter_next(NULL);" "linux/genhd.h"
|
||||
then
|
||||
echo $cur_name "2" >> $config_file_path
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user