From be7b8421a51da1993cd48ef5a8e5e19cbc1343dc Mon Sep 17 00:00:00 2001 From: pangwei <271372443@qq.com> Date: Wed, 20 May 2015 15:21:29 +0800 Subject: [PATCH] [Kernel]when the macro of RT_USING_COMPONENTS_INIT is not open ,then remove the source of components.c from the project. Signed-off-by: pangwei <271372443@qq.com> --- src/SConscript | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/SConscript b/src/SConscript index 953ea5060d..bb38baa6bd 100644 --- a/src/SConscript +++ b/src/SConscript @@ -15,6 +15,9 @@ if rtconfig.CROSS_TOOL == 'keil': else: LINKFLAGS = '' +if GetDepend('RT_USING_COMPONENTS_INIT') == False: + SrcRemove(src, ['components.c']) + if GetDepend('RT_USING_MODULE') == False: SrcRemove(src, ['module.c'])