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