configure: Save output from test modules compilation.
Currently configure script doesn't support any logging mechanism. To make easy debugging possible, output from all failed compilation attempts is stored. Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
This commit is contained in:
parent
c1e3835055
commit
195e5c5e56
@ -34,6 +34,7 @@ compile_module(){
|
||||
|
||||
config_file=$1
|
||||
test_module_dir=$SCRIPTPATH/configure.d/${config_file}_dir
|
||||
test_module_log=$SCRIPTPATH/configure.d/.${config_file}.log
|
||||
test_module_file=$test_module_dir/test_mod.c
|
||||
test_module_obj=$test_module_dir/test_mod.o
|
||||
|
||||
@ -54,12 +55,19 @@ compile_module(){
|
||||
EOF
|
||||
#######################################
|
||||
|
||||
make -C $test_module_dir KERNEL_DIR=${KERNEL_DIR} &> /dev/null
|
||||
echo "### $2 ###" >> $test_module_log
|
||||
|
||||
make -C $test_module_dir KERNEL_DIR=${KERNEL_DIR} &>> $test_module_log
|
||||
|
||||
local ret=$?
|
||||
|
||||
rm -Rf $test_module_dir
|
||||
|
||||
if [ $ret -eq 0 ]
|
||||
then
|
||||
rm -f $test_module_log
|
||||
fi
|
||||
|
||||
return $ret
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user