forked from maximkulkin/esp-homekit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomponent.mk
More file actions
46 lines (37 loc) · 1.17 KB
/
component.mk
File metadata and controls
46 lines (37 loc) · 1.17 KB
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
# Component makefile for homekit
ifndef wolfssl_ROOT
$(error Please include wolfssl component prior to homekit)
endif
ifndef cJSON_ROOT
$(error Please include cJSON component prior to homekit)
endif
ifndef http-parser_ROOT
$(error Please include http-parser component prior to homekit)
endif
# Base flash address where persisted information (e.g. pairings) will be stored
HOMEKIT_SPI_FLASH_BASE_ADDR ?= 0x100000
# Maximum number of simultaneous clients allowed.
# Each connected client requires ~1100-1200 bytes of RAM.
HOMEKIT_MAX_CLIENTS ?= 16
INC_DIRS += $(homekit_ROOT)/include
homekit_INC_DIR = $(homekit_ROOT)/include $(homekit_ROOT)/src
homekit_SRC_DIR = $(homekit_ROOT)/src
$(eval $(call component_compile_rules,homekit))
EXTRA_WOLFSSL_CFLAGS = \
-DWOLFCRYPT_HAVE_SRP \
-DWOLFSSL_SHA512 \
-DNO_MD5 \
-DNO_SHA \
-DHAVE_HKDF \
-DHAVE_CHACHA \
-DHAVE_POLY1305 \
-DHAVE_ED25519 \
-DHAVE_CURVE25519 \
-DWOLFCRYPT_ONLY
wolfssl_CFLAGS += $(EXTRA_WOLFSSL_CFLAGS)
homekit_CFLAGS += $(EXTRA_WOLFSSL_CFLAGS) \
-DSPIFLASH_BASE_ADDR=$(HOMEKIT_SPI_FLASH_BASE_ADDR) \
-DHOMEKIT_MAX_CLIENTS=$(HOMEKIT_MAX_CLIENTS)
ifeq ($(HOMEKIT_DEBUG),1)
homekit_CFLAGS += -DHOMEKIT_DEBUG
endif