Build options for Uno WiFi Rev2
This commit is contained in:
5
Makefile
5
Makefile
@@ -7,6 +7,11 @@ CFLAGS += -DNDEBUG -DCONFIG_FREERTOS_ASSERT_DISABLE -Os -DLOG_LOCAL_LEVEL=0
|
||||
CPPFLAGS += -DNDEBUG -Os
|
||||
endif
|
||||
|
||||
ifeq ($(UNO_WIFI_REV2),1)
|
||||
CFLAGS += -DUNO_WIFI_REV2
|
||||
CPPFLAGS += -DUNO_WIFI_REV2
|
||||
endif
|
||||
|
||||
include $(IDF_PATH)/make/project.mk
|
||||
|
||||
firmware: all
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
import sys;
|
||||
|
||||
booloaderData = open("build/bootloader/bootloader.bin", "rb").read()
|
||||
partitionData = open("build/partitions.bin", "rb").read()
|
||||
appData = open("build/nina-fw.bin", "rb").read()
|
||||
@@ -29,7 +31,11 @@ for i in range(0, len(certsData)):
|
||||
# zero terminate the pem file
|
||||
outputData[0x10000 + len(certsData)] = 0
|
||||
|
||||
outputFilename = "NINA_W102.bin"
|
||||
if (len(sys.argv) > 1):
|
||||
outputFilename = sys.argv[1]
|
||||
|
||||
# write out
|
||||
with open("NINA_W102.bin","w+b") as f:
|
||||
with open(outputFilename,"w+b") as f:
|
||||
f.seek(0)
|
||||
f.write(outputData)
|
||||
|
||||
Reference in New Issue
Block a user