-
Notifications
You must be signed in to change notification settings - Fork 136
/
Copy pathcomponent.mk
104 lines (88 loc) · 3.4 KB
/
component.mk
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
#
# Component Makefile
#
ifdef CONFIG_STDK_IOT_CORE
COMPONENT_ADD_INCLUDEDIRS += include include/bsp include/os include/mqtt include/external include/port
COMPONENT_SRCDIRS += ./
ifeq ($(CONFIG_STDK_IOT_CORE_BSP_SUPPORT_ESP8266),y)
COMPONENT_SRCDIRS += port/bsp/esp8266
COMPONENT_ADD_INCLUDEDIRS += include/bsp/esp8266
ifdef CONFIG_STDK_IOT_CORE_FS_SW_ENCRYPTION
COMPONENT_ADD_LDFLAGS += -L $(COMPONENT_PATH)/port/bsp/esp8266 -liot_security_ss
endif
else ifeq ($(CONFIG_STDK_IOT_CORE_BSP_SUPPORT_ESP32),y)
COMPONENT_SRCDIRS += port/bsp/esp32
COMPONENT_ADD_INCLUDEDIRS += include/bsp/esp32
else ifeq ($(CONFIG_STDK_IOT_CORE_BSP_SUPPORT_ESP32S2),y)
COMPONENT_SRCDIRS += port/bsp/esp32s2
COMPONENT_ADD_INCLUDEDIRS += include/bsp/esp32s2
else ifeq ($(CONFIG_STDK_IOT_CORE_BSP_SUPPORT_ESP32C3),y)
COMPONENT_SRCDIRS += port/bsp/esp32c3
COMPONENT_ADD_INCLUDEDIRS += include/bsp/esp32c3
else ifeq ($(CONFIG_STDK_IOT_CORE_BSP_SUPPORT_RTL8195),y)
COMPONENT_SRCDIRS += port/bsp/rtl8195
COMPONENT_ADD_INCLUDEDIRS += include/bsp/rtl8195
else ifeq ($(CONFIG_STDK_IOT_CORE_BSP_SUPPORT_RTL8720C),y)
COMPONENT_SRCDIRS += port/bsp/rtl8720c
COMPONENT_ADD_INCLUDEDIRS += include/bsp/rtl8720c
else ifeq ($(CONFIG_STDK_IOT_CORE_BSP_SUPPORT_RTL8721C),y)
COMPONENT_SRCDIRS += port/bsp/rtl8721c
COMPONENT_ADD_INCLUDEDIRS += include/bsp/rtl8721c
else ifeq ($(CONFIG_STDK_IOT_CORE_BSP_SUPPORT_EMW3166),y)
COMPONENT_SRCDIRS += port/bsp/emw3166
COMPONENT_ADD_INCLUDEDIRS += include/bsp/emw3166
else ifeq ($(CONFIG_STDK_IOT_CORE_BSP_SUPPORT_EMW3080),y)
COMPONENT_SRCDIRS += port/bsp/emw3080
COMPONENT_ADD_INCLUDEDIRS += include/bsp/emw3080
else ifeq ($(CONFIG_STDK_IOT_CORE_BSP_SUPPORT_TIZENRT),y)
COMPONENT_SRCDIRS += port/bsp/tizenrt
COMPONENT_ADD_INCLUDEDIRS += include/bsp/tizenrt
else
COMPONENT_SRCDIRS += port/bsp/posix
COMPONENT_ADD_INCLUDEDIRS += include/bsp/posix
endif
ifeq ($(CONFIG_STDK_IOT_CORE_OS_SUPPORT_FREERTOS),y)
COMPONENT_SRCDIRS += port/os/freertos
else ifeq ($(CONFIG_STDK_IOT_CORE_OS_SUPPORT_TIZENRT),y)
COMPONENT_SRCDIRS += port/os/tizenrt
else ifeq ($(CONFIG_STDK_IOT_CORE_OS_SUPPORT_POSIX),y)
COMPONENT_SRCDIRS += port/os/posix
else ifeq ($(CONFIG_STDK_IOT_CORE_OS_SUPPORT_MOCOS),y)
COMPONENT_SRCDIRS += port/os/mocos
endif
ifeq ($(CONFIG_STDK_IOT_CORE_NET_MBEDTLS),y)
COMPONENT_SRCDIRS += port/net/mbedtls
COMPONENT_ADD_INCLUDEDIRS += port/net/mbedtls
else
COMPONENT_SRCDIRS += port/net/openssl
COMPONENT_ADD_INCLUDEDIRS += port/net/openssl
endif
COMPONENT_SRCDIRS += deps/cbor/tinycbor/src
COMPONENT_ADD_INCLUDEDIRS += deps/cbor/tinycbor/src
COMPONENT_SRCDIRS += security
COMPONENT_SRCDIRS += port/crypto/reference
ifeq ($(CONFIG_STDK_IOT_CORE_SECURITY_BACKEND_SOFTWARE),y)
COMPONENT_SRCDIRS += security/backend/software
else ifeq ($(CONFIG_STDK_IOT_CORE_SECURITY_BACKEND_HARDWARE),y)
COMPONENT_SRCDIRS += security/backend/hardware
endif
COMPONENT_SRCDIRS += easysetup
ifdef CONFIG_STDK_IOT_CORE_EASYSETUP_DISCOVERY_SSID
COMPONENT_SRCDIRS += easysetup/discovery/ssid
endif
ifdef CONFIG_STDK_IOT_CORE_EASYSETUP_HTTP
COMPONENT_SRCDIRS += easysetup/http
endif
ifdef CONFIG_STDK_IOT_CORE_EASYSETUP_X509
COMPONENT_SRCDIRS += easysetup/http/tls
else
COMPONENT_SRCDIRS += easysetup/http/tcp
endif
CPPFLAGS += -include $(COMPONENT_PATH)/include/iot_common.h
COMPONENT_SRCDIRS += mqtt/client mqtt/packet
CFLAGS += -std=c99
else
# Disable SmartThing Device SDK support
COMPONENT_ADD_INCLUDEDIRS :=
COMPONENT_SRCDIRS :=
endif