-
Notifications
You must be signed in to change notification settings - Fork 511
/
system_module_version.mk
59 lines (51 loc) · 2.45 KB
/
system_module_version.mk
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
47
48
49
50
51
52
53
54
55
56
57
58
59
# Skip to next 100 every vx.N.x release (e.g. 11 for v0.6.2 to 100 for v0.7.0-rc.1),
# Bump by 1 for every prerelease or release with the same vx.N.* base.
COMMON_MODULE_VERSION ?= 4200
SYSTEM_PART1_MODULE_VERSION ?= $(COMMON_MODULE_VERSION)
RELEASE_080_MODULE_VERSION_BASE ?= 300
RELEASE_070_MODULE_VERSION ?= 207
RELEASE_110_MODULE_VERSION ?= 1102
# Bump by 1 if Tinker has been updated
USER_PART_MODULE_VERSION ?= 6
# Skip to next 100 every vx.N.x release (e.g. 11 for v0.6.2 to 100 for v0.7.0-rc.1),
# but only if the bootloader has changed since the last vx.N.x release.
# Bump by 1 for every updated bootloader image for a release with the same vx.N.* base.
BOOTLOADER_VERSION ?= 1200
# The version of the bootloader that the system firmware requires
# NOTE: this will force the device into safe mode until this dependency is met, which is why
# this version usually lags behind the current bootloader version, to avoid non-mandatory updates.
ifeq ($(PLATFORM_GEN),3)
BOOTLOADER_DEPENDENCY = 1200
else
# Some sensible default
BOOTLOADER_DEPENDENCY = 0
endif
ifeq ($(PLATFORM_GEN),3)
# SoftDevice S140 7.0.1
SOFTDEVICE_DEPENDENCY = 202
# FIXME: There is a compiler optimization or XIP access error in some earlier Device OS releases preventing
# OTA updates on Argon specifically to some 3.x versions due to a failed dependency check even though the
# dependencies are satisfied. Swapping two current dependencies seems to help.
ifneq ($(PLATFORM_ID),12)
SYSTEM_PART1_MODULE_DEPENDENCY ?= ${MODULE_FUNCTION_BOOTLOADER},0,${BOOTLOADER_DEPENDENCY}
else
SYSTEM_PART1_MODULE_DEPENDENCY2 ?= ${MODULE_FUNCTION_BOOTLOADER},0,${BOOTLOADER_DEPENDENCY}
endif
# /FIXME
ifeq (,$(filter $(PLATFORM_ID),26))
# FIXME: There is a compiler optimization or XIP access error in some earlier Device OS releases preventing
# OTA updates on Argon specifically to some 3.x versions due to a failed dependency check even though the
# dependencies are satisfied. Swapping two current dependencies seems to help.
ifneq ($(PLATFORM_ID),12)
SYSTEM_PART1_MODULE_DEPENDENCY2 ?= ${MODULE_FUNCTION_RADIO_STACK},0,${SOFTDEVICE_DEPENDENCY}
else
SYSTEM_PART1_MODULE_DEPENDENCY ?= ${MODULE_FUNCTION_RADIO_STACK},0,${SOFTDEVICE_DEPENDENCY}
endif
# /FIXME
else
# There is no need to carry SoftDevice dependency on Tracker, since they are manufactured
# with the latest one. Update NCP firmware instead.
ESP32_NCP_DEPENDENCY = 7
SYSTEM_PART1_MODULE_DEPENDENCY2 ?= ${MODULE_FUNCTION_NCP_FIRMWARE},0,${ESP32_NCP_DEPENDENCY}
endif
endif