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:
Michal Mielewczyk
2019-07-11 09:21:31 -04:00
parent 13c51041ff
commit 9473cf9795
36 changed files with 355 additions and 261 deletions

View File

@@ -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
}