1# 2# (C) COPYRIGHT 2015, 2017 ARM Limited. All rights reserved. 3# 4# This program is free software and is provided to you under the terms of the 5# GNU General Public License version 2 as published by the Free Software 6# Foundation, and any use by you of this program is subject to the terms 7# of such GNU licence. 8# 9# A copy of the licence is included with the program, and can also be obtained 10# from Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 11# Boston, MA 02110-1301, USA. 12# 13# 14 15 16import os 17Import('env') 18 19src = [Glob('#kernel/drivers/gpu/arm/midgard/tests/mali_kutf_irq_test/*.c'), Glob('#kernel/drivers/gpu/arm/midgard/tests/mali_kutf_irq_test/Makefile')] 20 21if env.GetOption('clean') : 22 env.Execute(Action("make clean", '[CLEAN] mali_kutf_irq_test')) 23 cmd = env.Command('$STATIC_LIB_PATH/mali_kutf_irq_test.ko', src, []) 24 env.KernelObjTarget('mali_kutf_irq_test', cmd) 25else: 26 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') 27 cmd = env.Command('$STATIC_LIB_PATH/mali_kutf_irq_test.ko', src, [makeAction]) 28 env.Depends('$STATIC_LIB_PATH/mali_kutf_irq_test.ko', '$STATIC_LIB_PATH/kutf.ko') 29 env.Depends('$STATIC_LIB_PATH/mali_kutf_irq_test.ko', '$STATIC_LIB_PATH/mali_kbase.ko') 30 env.KernelObjTarget('mali_kutf_irq_test', cmd) 31