diff options
| author | pangwei <[email protected]> | 2015-05-20 15:21:29 +0800 |
|---|---|---|
| committer | pangwei <[email protected]> | 2015-05-20 15:21:29 +0800 |
| commit | be7b8421a51da1993cd48ef5a8e5e19cbc1343dc (patch) | |
| tree | b9e44debe9754ade5f1f9346c8f45acd1d76162c | |
| parent | 7d73fb8bdbca622142e9802dc7a9a495563638f0 (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]>
| -rw-r--r-- | src/SConscript | 3 |
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']) |
