diff --git a/moduleinfo.mk b/moduleinfo.mk index eb36fc6..274298a 100644 --- a/moduleinfo.mk +++ b/moduleinfo.mk @@ -1,5 +1,6 @@ include macros.mk include verbose.mk +include platform.mk include version.mk CRC = crc32 @@ -43,7 +44,6 @@ START_ADDR=00000000 # not used END_ADDR=00000000 # not used NCP_ID=21 # 33 (see hal/src/hRF52840/platform_ncp.h) RESERVED2=00 # not used -# MODULE_VERSION_LE=0100 # 0x0001 ifeq ("$(PLATFORM)","argon") PLATFORM_ID=0C00 # 12 - Argon else ifeq ("$(PLATFORM)","tracker") @@ -53,9 +53,7 @@ $(error Unknown platform!) endif MODULE_FUNCTION=07 # third party mono firmware MODULE_INDEX=00 # not used with mono firmware -DEPENDENCY=00000000 -DEPENDENCY2=00000000 -MODULE_PREFIX=$(START_ADDR)$(END_ADDR)$(NCP_ID)$(RESERVED2)$(MODULE_VERSION_LE)$(PLATFORM_ID)$(MODULE_FUNCTION)$(MODULE_INDEX)$(DEPENDENCY)$(DEPENDENCY2) +MODULE_PREFIX=$(START_ADDR)$(END_ADDR)$(NCP_ID)$(RESERVED2)$(MODULE_VERSION_LE)$(PLATFORM_ID)$(MODULE_FUNCTION)$(MODULE_INDEX)$(MODULE_DEPENDENCY)$(MODULE_DEPENDENCY2) # regular MCU firmware has the product ID stored before the suffix # since this has little relevance here we don't bother diff --git a/version.mk b/version.mk index fb737d3..760b49d 100644 --- a/version.mk +++ b/version.mk @@ -7,3 +7,12 @@ FIRMWARE_VERSION?=0.0.7 CPPFLAGS += -DESP32_NCP_FIRMWARE_VERSION=$(FIRMWARE_VERSION) CPPFLAGS += -DESP32_NCP_FIRMWARE_MODULE_VERSION=$(MODULE_VERSION) + +ifeq ("$(PLATFORM)","tracker") +# Dependency on system-part1 version 3000 (3.0.0-alpha.1) +MODULE_DEPENDENCY=0401b80b +else +MODULE_DEPENDENCY=00000000 +endif + +MODULE_DEPENDENCY2=00000000