#
|
# (C) COPYRIGHT 2015, 2017 ARM Limited. All rights reserved.
|
#
|
# This program is free software and is provided to you under the terms of the
|
# GNU General Public License version 2 as published by the Free Software
|
# Foundation, and any use by you of this program is subject to the terms
|
# of such GNU licence.
|
#
|
# A copy of the licence is included with the program, and can also be obtained
|
# from Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
# Boston, MA 02110-1301, USA.
|
#
|
#
|
|
|
import os
|
Import('env')
|
|
src = [Glob('#kernel/drivers/gpu/arm/midgard/tests/mali_kutf_irq_test/*.c'), Glob('#kernel/drivers/gpu/arm/midgard/tests/mali_kutf_irq_test/Makefile')]
|
|
if env.GetOption('clean') :
|
env.Execute(Action("make clean", '[CLEAN] mali_kutf_irq_test'))
|
cmd = env.Command('$STATIC_LIB_PATH/mali_kutf_irq_test.ko', src, [])
|
env.KernelObjTarget('mali_kutf_irq_test', cmd)
|
else:
|
makeAction=Action("cd ${SOURCE.dir} && make MALI_DEBUG=${debug} MALI_BACKEND_KERNEL=1 MALI_ERROR_INJECT_ON=${error_inject} MALI_MODEL=${mali_model} MALI_NO_MALI=${no_mali} MALI_HW_VERSION=${hwver} MALI_UNIT_TEST=${unit} MALI_USE_UMP=${ump} MALI_CUSTOMER_RELEASE=${release} %s %s && ( ( [ -f mali_kutf_irq_test.ko ] && cp mali_kutf_irq_test.ko $STATIC_LIB_PATH/ ) || touch $STATIC_LIB_PATH/mali_kutf_irq_test.ko)" % (env.base_get_qa_settings(), env.kernel_get_config_defines()), '$MAKECOMSTR')
|
cmd = env.Command('$STATIC_LIB_PATH/mali_kutf_irq_test.ko', src, [makeAction])
|
env.Depends('$STATIC_LIB_PATH/mali_kutf_irq_test.ko', '$STATIC_LIB_PATH/kutf.ko')
|
env.Depends('$STATIC_LIB_PATH/mali_kutf_irq_test.ko', '$STATIC_LIB_PATH/mali_kbase.ko')
|
env.KernelObjTarget('mali_kutf_irq_test', cmd)
|