mirror of
https://github.com/Ai-Thinker-Open/Ai-Thinker-Open_RTL8710BX_ALIOS_SDK.git
synced 2026-08-27 17:01:31 +00:00
rel_1.6.0 init
This commit is contained in:
commit
27b3e2883d
19359 changed files with 8093121 additions and 0 deletions
29
Living_SDK/kernel/vcall/ucube.py
Normal file
29
Living_SDK/kernel/vcall/ucube.py
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
src = []
|
||||
|
||||
component = aos_component('vcall', src)
|
||||
component.add_global_includes('mico/include')
|
||||
|
||||
if aos_global_config.arch == 'ARM968E-S':
|
||||
component.add_cflags('-marm')
|
||||
|
||||
@pre_config('vcall')
|
||||
def vcall_pre(comp):
|
||||
vcall = aos_global_config.get('vcall', 'rhino')
|
||||
if vcall == 'freertos':
|
||||
comp.add_global_macros('VCALL_FREERTOS')
|
||||
comp.add_sources('aos/aos_freertos.c')
|
||||
elif vcall == 'posix':
|
||||
comp.add_global_macros('VCALL_POSIX')
|
||||
comp.add_sources('aos/aos_posix.c')
|
||||
else:
|
||||
comp.add_global_macros('VCALL_RHINO')
|
||||
comp.add_comp_deps('kernel/rhino')
|
||||
|
||||
if aos_global_config.mcu_family == 'esp32' or aos_global_config.mcu_family == 'esp8266':
|
||||
comp.add_comp_deps('kernel/vcall/espos')
|
||||
|
||||
if aos_global_config.board == 'linuxhost' or aos_global_config.board == 'mk3060' \
|
||||
or aos_global_config.board == 'mk3239' or aos_global_config.board == 'mk3166' or aos_global_config.board == 'mk3165':
|
||||
comp.add_sources('mico/mico_rhino.c')
|
||||
comp.add_sources('aos/aos_rhino.c')
|
||||
vcall_pre(component)
|
||||
Loading…
Add table
Add a link
Reference in a new issue