blob: 96e6b69601d9153ba86679536ef7a4f36df3fbdc [file] [log] [blame]
Alexander Martinz5f8d3a52022-04-07 19:54:32 +02001VENDOR_TARGET := $(subst full_,,$(TARGET_PRODUCT))
2VENDOR_TARGET := $(subst lineage_,,$(VENDOR_TARGET))
3
4# Work around qssi
5ifeq ($(VENDOR_TARGET),qssi)
6 VENDOR_TARGET := $(QSSI_BUILD_TARGET_PRODUCT_NAME)
7endif
8
9####################################################################################
10
Alexander Martinz75434002022-12-22 09:20:49 +010011SHIFT_SOS_VERSION_MAJOR := 5
Alexander Martinz5f8d3a52022-04-07 19:54:32 +020012SHIFT_SOS_VERSION_MINOR := 0
13SHIFT_SOS_VERSION_EXTRA :=
14
15ifeq ($(SHIFT_BUILD_WITH_GMS),true)
16 SHIFT_SOS_VERSION_EXTRA += G
17else
18 SHIFT_SOS_VERSION_EXTRA += L
19endif
20SHIFT_SOS_VERSION_EXTRA := $(strip $(SHIFT_SOS_VERSION_EXTRA))
21
22SHIFT_SOS_VERSION_NUMBER := $(SHIFT_SOS_VERSION_MAJOR).$(SHIFT_SOS_VERSION_MINOR)
23SHIFT_SOS_VERSION_NAME := SOS.$(SHIFT_SOS_VERSION_NUMBER).$(SHIFT_SOS_VERSION_EXTRA)
24
25####################################################################################
26
27# SHIFT 5me
28ifeq ($(VENDOR_TARGET),SHIFT5me)
29 SHIFT_SOFTWARE_VERSION_BASE := SHIFT5ME.$(SHIFT_SOS_VERSION_NAME)
30
31 VENDOR_DEFAULT_SERIAL := SP0752454246466
32endif
33
34# SHIFT 6m
35ifeq ($(VENDOR_TARGET),SHIFT6m)
36 SHIFT_SOFTWARE_VERSION_BASE := SHIFT6M.$(SHIFT_SOS_VERSION_NAME)
37
38 VENDOR_DEFAULT_SERIAL := SP0752454246465
39endif
40
41# SHIFT 6mq (axolotl)
42ifeq ($(VENDOR_TARGET),axolotl)
43 SHIFT_SOFTWARE_VERSION_BASE := SHIFT6MQ.$(SHIFT_SOS_VERSION_NAME)
44
45 VENDOR_DEFAULT_SERIAL := SP0752454246472
46endif
47
48# SHIFT 6mq - ROW (axolotl_row)
49ifeq ($(VENDOR_TARGET),axolotl_row)
50 SHIFT_SOFTWARE_VERSION_BASE := SHIFT6MQ_ROW.$(SHIFT_SOS_VERSION_NAME)
51
52 VENDOR_DEFAULT_SERIAL := SP0752454246472
53endif
54
55####################################################################################
56
57ifeq ($(SHIFT_SOFTWARE_VERSION_BASE),)
58 SHIFT_SOFTWARE_VERSION_BASE := $(VENDOR_TARGET).$(SHIFT_SOS_VERSION_NAME)
59endif
60
Alexander Martinz2bb7cb72024-08-08 11:53:01 +020061ifeq ($(SHIFT_BUILD_DATE),)
62 SHIFT_BUILD_DATE := $(shell date +%Y%m%d)
63endif
Alexander Martinz5f8d3a52022-04-07 19:54:32 +020064SHIFT_BUILD_TIMESTAMP := $(shell date +%s)
65SHIFT_SOFTWARE_VERSION := $(SHIFT_SOFTWARE_VERSION_BASE).$(SHIFT_BUILD_DATE)
66
67####################################################################################
68
69ifneq ($(SHIFT_BUILD_TYPE),)
70 SHIFT_SOFTWARE_BUILD_TYPE := $(SHIFT_BUILD_TYPE)
71else
72 SHIFT_SOFTWARE_BUILD_TYPE := development
73endif
74
75####################################################################################