Fix for incorrect header file handling in ./configure
In specific cases, header files will be included incorrectly during the configuration phase, leading to erroneous failure of affected configure step. This patch fixes this issue. Signed-off-by: Krzysztof Majzerowicz-Jaszcz <krzysztof.majzerowicz-jaszcz@intel.com>
This commit is contained in:
parent
6af0c5dbfe
commit
dfcb80abae
@ -13,7 +13,7 @@ check() {
|
|||||||
if compile_module $cur_name "bdev_nr_sectors(NULL);" "linux/genhd.h"
|
if compile_module $cur_name "bdev_nr_sectors(NULL);" "linux/genhd.h"
|
||||||
then
|
then
|
||||||
echo $cur_name 1 >> $config_file_path
|
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
|
then
|
||||||
echo $cur_name 2 >> $config_file_path
|
echo $cur_name 2 >> $config_file_path
|
||||||
else
|
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"
|
if compile_module $cur_name "struct block_device *bd; bdev_whole(bd);" "linux/blk_types.h" "linux/genhd.h"
|
||||||
then
|
then
|
||||||
echo $cur_name 1 >> $config_file_path
|
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
|
then
|
||||||
echo $cur_name 2 >> $config_file_path
|
echo $cur_name 2 >> $config_file_path
|
||||||
else
|
else
|
||||||
|
@ -21,6 +21,7 @@ add_function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
__compile_module(){
|
__compile_module(){
|
||||||
|
INCLUDE=""
|
||||||
if [ $# -gt 1 ]
|
if [ $# -gt 1 ]
|
||||||
then
|
then
|
||||||
i=2
|
i=2
|
||||||
|
Loading…
Reference in New Issue
Block a user