mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-05 15:15:29 +00:00
[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>
This commit is contained in:
@@ -15,6 +15,9 @@ if rtconfig.CROSS_TOOL == 'keil':
|
|||||||
else:
|
else:
|
||||||
LINKFLAGS = ''
|
LINKFLAGS = ''
|
||||||
|
|
||||||
|
if GetDepend('RT_USING_COMPONENTS_INIT') == False:
|
||||||
|
SrcRemove(src, ['components.c'])
|
||||||
|
|
||||||
if GetDepend('RT_USING_MODULE') == False:
|
if GetDepend('RT_USING_MODULE') == False:
|
||||||
SrcRemove(src, ['module.c'])
|
SrcRemove(src, ['module.c'])
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user