Parcourir la source

[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>
pangwei il y a 10 ans
Parent
commit
be7b8421a5
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      src/SConscript

+ 3 - 0
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'])