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 | |
Alexander Martinz | 7543400 | 2022-12-22 09:20:49 +0100 | [diff] [blame] | 11 | SHIFT_SOS_VERSION_MAJOR := 5 |
Alexander Martinz | c69d51c | 2024-11-15 14:08:10 +0100 | [diff] [blame^] | 12 | SHIFT_SOS_VERSION_MINOR := 0 |
Alexander Martinz | 5f8d3a5 | 2022-04-07 19:54:32 +0200 | [diff] [blame] | 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 | |
Alexander Martinz | 2bb7cb7 | 2024-08-08 11:53:01 +0200 | [diff] [blame] | 61 | ifeq ($(SHIFT_BUILD_DATE),) |
| 62 | SHIFT_BUILD_DATE := $(shell date +%Y%m%d) |
| 63 | endif |
Alexander Martinz | 5f8d3a5 | 2022-04-07 19:54:32 +0200 | [diff] [blame] | 64 | SHIFT_BUILD_TIMESTAMP := $(shell date +%s) |
| 65 | SHIFT_SOFTWARE_VERSION := $(SHIFT_SOFTWARE_VERSION_BASE).$(SHIFT_BUILD_DATE) |
| 66 | |
| 67 | #################################################################################### |
| 68 | |
| 69 | ifneq ($(SHIFT_BUILD_TYPE),) |
| 70 | SHIFT_SOFTWARE_BUILD_TYPE := $(SHIFT_BUILD_TYPE) |
| 71 | else |
| 72 | SHIFT_SOFTWARE_BUILD_TYPE := development |
| 73 | endif |
| 74 | |
| 75 | #################################################################################### |