forked from alibaba/AliOS-Things
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ucube.py
executable file
·45 lines (38 loc) · 1.01 KB
/
ucube.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
src =Split('''
linkkit_sample_single.c
linkkit_entry.c
''')
#linkkit_sample_gateway.c
component =aos_component('linkkitapp', src)
dependencis =Split('''
framework/protocol/linkkit/sdk
framework/protocol/linkkit/hal
framework/netmgr
framework/common
framework/ywss4linkkit
utility/cjson
tools/cli
''')
for i in dependencis:
component.add_comp_deps(i)
global_macros =Split('''
MQTT_DIRECT
ALIOT_DEBUG
IOTX_DEBUG
USE_LPTHREAD
CONFIG_DM_DEVTYPE_SINGLE
TEST_ALCS
CONFIG_AOS_CLI
''')
for i in global_macros:
component.add_global_macros(i)
if aos_global_config.get('LWIP') == 1:
component.add_comp_deps("kernel/protocols/net")
aos_global_config.set('no_with_lwip', 0)
if aos_global_config.get('print_heap') == 1:
component.add_global_macros('CONFIG_PRINT_HEAP')
if aos_global_config.mcu_family == 'esp8266':
component.add_global_macros('ESP8266_CHIPSET')
else :
component.add_global_macros('CONFIG_AOS_CLI')
component.add_comp_deps("cli")