summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpangwei <[email protected]>2015-05-20 15:21:29 +0800
committerpangwei <[email protected]>2015-05-20 15:21:29 +0800
commitbe7b8421a51da1993cd48ef5a8e5e19cbc1343dc (patch)
treeb9e44debe9754ade5f1f9346c8f45acd1d76162c /src
parent7d73fb8bdbca622142e9802dc7a9a495563638f0 (diff)
[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 <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/SConscript3
1 files changed, 3 insertions, 0 deletions
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'])