-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
36 lines (26 loc) · 853 Bytes
/
Makefile
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
PROGRAM = main
EXTRA_COMPONENTS = \
extras/http-parser \
extras/dhcpserver \
extras/rboot-ota \
$(abspath esp-wolfssl) \
$(abspath esp-cjson) \
$(abspath esp-homekit) \
$(abspath esp-wifi-config) \
$(abspath UDPlogger) \
# $(abspath esp-adv-button)
FLASH_SIZE ?= 8
HOMEKIT_SPI_FLASH_BASE_ADDR ?= 0x8C000
EXTRA_CFLAGS += -I../.. -DHOMEKIT_SHORT_APPLE_UUIDS
EXTRA_CFLAGS += -DUDPLOG_PRINTF_TO_UDP
EXTRA_CFLAGS += -DUDPLOG_PRINTF_ALSO_SERIAL
ifdef VERSION
EXTRA_CFLAGS += -DVERSION=\"$(VERSION)\"
endif
EXTRA_CFLAGS += -DconfigUSE_TRACE_FACILITY
include $(SDK_PATH)/common.mk
monitor:
$(FILTEROUTPUT) --port $(ESPPORT) --baud $(ESPBAUD) --elf $(PROGRAM_OUT)
signature:
$(openssl sha384 -binary -out firmware/main.bin.sig firmware/main.bin)
$(printf "%08x" `cat firmware/main.bin | wc -c`| xxd -r -p >>firmware/main.bin.sig)