Enable configure script to compile test modules in parallel.
This patch significantly reduces time needed to prepare config file. Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
This commit is contained in:
@@ -4,14 +4,16 @@
|
||||
# SPDX-License-Identifier: BSD-3-Clause-Clear
|
||||
#
|
||||
|
||||
. `dirname $0`/conf_framework
|
||||
. $(dirname $3)/conf_framework
|
||||
|
||||
check() {
|
||||
if compile_module "struct request_queue q;q.limits.chunk_sectors" "linux/blkdev.h"
|
||||
cur_name=$(basename $2)
|
||||
config_file_path=$1
|
||||
if compile_module $cur_name "struct request_queue q;q.limits.chunk_sectors" "linux/blkdev.h"
|
||||
then
|
||||
echo "1"
|
||||
echo $cur_name "1" >> $config_file_path
|
||||
else
|
||||
echo "2"
|
||||
echo $cur_name "2" >> $config_file_path
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user