We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f763201 commit 34890adCopy full SHA for 34890ad
Makefile
@@ -2,7 +2,15 @@ PROJECT_NAME := nina-fw
2
3
EXTRA_COMPONENT_DIRS := $(PWD)/arduino
4
5
-CPPFLAGS += -DARDUINO
+CMD_GEN_BUNDLE = $(shell python $(PWD)/tools/gen_crt_bundle.py -i $(PWD)/data/cacrt_all.pem)
6
+CMD_BUNDLE_SIZE = $(shell stat -L -c %s ./x509_crt_bundle)
7
+READ_BUNDLE_SIZE = $(eval BUNDLE_SIZE=$(CMD_BUNDLE_SIZE))
8
+
9
+$(CMD_GEN_BUNDLE)
10
+$(READ_BUNDLE_SIZE)
11
+$(info SIZEIS $(BUNDLE_SIZE))
12
13
+CPPFLAGS += -DARDUINO -DCRT_BUNDLE_SIZE=$(BUNDLE_SIZE)
14
15
ifeq ($(RELEASE),1)
16
CFLAGS += -DNDEBUG -DCONFIG_FREERTOS_ASSERT_DISABLE -Os -DLOG_LOCAL_LEVEL=0
@@ -29,5 +37,6 @@ firmware: all
29
37
30
38
clean:
31
39
rm -rf NINA_W102*
40
+ rm -rf x509_crt_bundle
32
41
33
42
.PHONY: firmware, clean
0 commit comments