common.mk 12.8 KB
Newer Older
1
2
3
# Allow vendor/extra to override any property by setting it first
$(call inherit-product-if-exists, vendor/extra/product.mk)

Dan Pasanen's avatar
Dan Pasanen committed
4
PRODUCT_BRAND ?= LineageOS
Ricardo Cerqueira's avatar
Ricardo Cerqueira committed
5

6
7
PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=0

8
ifeq ($(PRODUCT_GMS_CLIENTID_BASE),)
9
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
10
11
    ro.com.google.clientidbase=android-google
else
12
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
13
14
15
    ro.com.google.clientidbase=$(PRODUCT_GMS_CLIENTID_BASE)
endif

16
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
17
    ro.build.selinux=1
18

19
# Default notification/alarm sounds
20
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
Gaël Duval's avatar
Gaël Duval committed
21
    ro.config.notification_sound=Selenium.ogg \
22
    ro.config.alarm_alert=Platinum-old.ogg
23

24
ifneq ($(TARGET_BUILD_VARIANT),user)
25
# Thank you, please drive thru!
26
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += persist.sys.dun.override=0
27
endif
28

29
30
31
32
ifeq ($(TARGET_BUILD_VARIANT),eng)
# Disable ADB authentication
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += ro.adb.secure=0
else
33
# Enable ADB authentication
34
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += ro.adb.secure=1
35
endif
36

37
# Backup Tool
38
PRODUCT_COPY_FILES += \
Dan Pasanen's avatar
Dan Pasanen committed
39
40
    vendor/lineage/prebuilt/common/bin/backuptool.sh:install/bin/backuptool.sh \
    vendor/lineage/prebuilt/common/bin/backuptool.functions:install/bin/backuptool.functions \
Luca Stefani's avatar
Luca Stefani committed
41
    vendor/lineage/prebuilt/common/bin/50-lineage.sh:system/addon.d/50-lineage.sh \
Dan Pasanen's avatar
Dan Pasanen committed
42
    vendor/lineage/prebuilt/common/bin/blacklist:system/addon.d/blacklist
43

44
45
46
47
48
49
50
ifeq ($(AB_OTA_UPDATER),true)
PRODUCT_COPY_FILES += \
    vendor/lineage/prebuilt/common/bin/backuptool_ab.sh:system/bin/backuptool_ab.sh \
    vendor/lineage/prebuilt/common/bin/backuptool_ab.functions:system/bin/backuptool_ab.functions \
    vendor/lineage/prebuilt/common/bin/backuptool_postinstall.sh:system/bin/backuptool_postinstall.sh
endif

51
52
# Backup Services whitelist
PRODUCT_COPY_FILES += \
Dan Pasanen's avatar
Dan Pasanen committed
53
    vendor/lineage/config/permissions/backup.xml:system/etc/sysconfig/backup.xml
54

55
56
57
58
# Lineage-specific broadcast actions whitelist
PRODUCT_COPY_FILES += \
    vendor/lineage/config/permissions/lineage-sysconfig.xml:system/etc/sysconfig/lineage-sysconfig.xml

59
60
# init.d support
PRODUCT_COPY_FILES += \
Dan Pasanen's avatar
Dan Pasanen committed
61
62
    vendor/lineage/prebuilt/common/etc/init.d/00banner:system/etc/init.d/00banner \
    vendor/lineage/prebuilt/common/bin/sysinit:system/bin/sysinit
63

64
ifneq ($(TARGET_BUILD_VARIANT),user)
James Sullins's avatar
James Sullins committed
65
66
# userinit support
PRODUCT_COPY_FILES += \
Dan Pasanen's avatar
Dan Pasanen committed
67
    vendor/lineage/prebuilt/common/etc/init.d/90userinit:system/etc/init.d/90userinit
68
endif
James Sullins's avatar
James Sullins committed
69

Sam Mortimer's avatar
Sam Mortimer committed
70
71
72
# Copy all Lineage-specific init rc files
$(foreach f,$(wildcard vendor/lineage/prebuilt/common/etc/init/*.rc),\
	$(eval PRODUCT_COPY_FILES += $(f):system/etc/init/$(notdir $f)))
73

herriojr's avatar
herriojr committed
74
75
# Copy over added mimetype supported in libcore.net.MimeUtils
PRODUCT_COPY_FILES += \
Dan Pasanen's avatar
Dan Pasanen committed
76
    vendor/lineage/prebuilt/common/lib/content-types.properties:system/lib/content-types.properties
herriojr's avatar
herriojr committed
77

78
79
# Enable SIP+VoIP on all targets
PRODUCT_COPY_FILES += \
80
    frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml
81

82
83
84
85
# Enable wireless Xbox 360 controller support
PRODUCT_COPY_FILES += \
    frameworks/base/data/keyboards/Vendor_045e_Product_028e.kl:system/usr/keylayout/Vendor_045e_Product_0719.kl

Luca Stefani's avatar
Luca Stefani committed
86
# This is Lineage!
Steve Kondik's avatar
Steve Kondik committed
87
PRODUCT_COPY_FILES += \
88
    vendor/lineage/config/permissions/org.lineageos.android.xml:system/etc/permissions/org.lineageos.android.xml \
89
90
    vendor/lineage/config/permissions/privapp-permissions-lineage.xml:system/etc/permissions/privapp-permissions-lineage.xml \
    vendor/lineage/config/permissions/privapp-permissions-cm-legacy.xml:system/etc/permissions/privapp-permissions-cm-legacy.xml
Steve Kondik's avatar
Steve Kondik committed
91

92
93
94
95
# Enforce privapp-permissions whitelist
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
    ro.control_privapp_permissions=enforce

96
97
98
99
# Hidden API whitelist
PRODUCT_COPY_FILES += \
    vendor/lineage/config/permissions/lineage-hiddenapi-package-whitelist.xml:system/etc/permissions/lineage-hiddenapi-package-whitelist.xml

100
101
102
103
# Power whitelist
PRODUCT_COPY_FILES += \
    vendor/lineage/config/permissions/lineage-power-whitelist.xml:system/etc/sysconfig/lineage-power-whitelist.xml

104
105
106
# Include AOSP audio files
include vendor/lineage/config/aosp_audio.mk

Luca Stefani's avatar
Luca Stefani committed
107
108
# Include Lineage audio files
include vendor/lineage/config/lineage_audio.mk
109

110
111
112
ifneq ($(TARGET_DISABLE_LINEAGE_SDK), true)
# Lineage SDK
include vendor/lineage/config/lineage_sdk_common.mk
113
endif
114

115
116
# TWRP
ifeq ($(WITH_TWRP),true)
Dan Pasanen's avatar
Dan Pasanen committed
117
include vendor/lineage/config/twrp.mk
118
119
endif

120
121
122
123
124
125
126
127
# Do not include art debug targets
PRODUCT_ART_TARGET_INCLUDE_DEBUG_BUILD := false

# Strip the local variable table and the local variable type table to reduce
# the size of the system image. This has no bearing on stack traces, but will
# leave less information available via JDWP.
PRODUCT_MINIMIZE_JAVA_DEBUG_INFO := true

128
# Bootanimation
Asher Simonds's avatar
Asher Simonds committed
129
130
PRODUCT_PACKAGES += \
    bootanimation.zip
131

132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
# Required /e/ packages
PRODUCT_PACKAGES += \
    GmsCore \
		GsfProxy \
		FakeStore \
		com.google.android.maps.jar \
		Mail \
		BlissLauncher \
		BlissIconPack \
		MozillaNlpBackend \
		OpenWeatherMapWeatherProvider \
		AccountManager \
		MagicEarth \
		PdfViewer \
		Camera \
		eDrive \
		Weather \
		Notes \
		Tasks \
		NominatimNlpBackend \
		DroidGuard \
		LibreOfficeViewer \
		OpenKeychain \
		Message \
		Browser \
		BrowserWebView \
		Apps

Luca Stefani's avatar
Luca Stefani committed
160
# Required Lineage packages
161
PRODUCT_PACKAGES += \
162
    LineageParts \
Steve Kondik's avatar
Steve Kondik committed
163
    Development \
164
    Profiles
165

Luca Stefani's avatar
Luca Stefani committed
166
# Optional packages
167
PRODUCT_PACKAGES += \
168
    LiveWallpapersPicker \
Steve Kondik's avatar
Steve Kondik committed
169
170
    PhotoTable \
    Terminal
171

Luca Stefani's avatar
Luca Stefani committed
172
# Custom Lineage packages
Steve Kondik's avatar
Steve Kondik committed
173
PRODUCT_PACKAGES += \
Joey's avatar
Joey committed
174
    Backgrounds \
175
    LineageSettingsProvider \
176
    LineageSetupWizard \
Steve Kondik's avatar
Steve Kondik committed
177
    Eleven \
d34d's avatar
d34d committed
178
    ExactCalculator \
Joey Rizzoli's avatar
Joey Rizzoli committed
179
    Jelly \
Steve Kondik's avatar
Steve Kondik committed
180
    LockClock \
181
    TrebuchetQuickStep \
Gabriele M's avatar
Gabriele M committed
182
    Updater \
Paul Keith's avatar
Paul Keith committed
183
    WeatherProvider
Steve Kondik's avatar
Steve Kondik committed
184

Abhisek Devkota's avatar
Abhisek Devkota committed
185
186
187
188
# Exchange support
PRODUCT_PACKAGES += \
    Exchange2

Joey's avatar
Joey committed
189
190
# Berry styles
PRODUCT_PACKAGES += \
Demon Singur's avatar
Demon Singur committed
191
    LineageBlackTheme \
Joey's avatar
Joey committed
192
193
194
195
    LineageDarkTheme \
    LineageBlackAccent \
    LineageBlueAccent \
    LineageBrownAccent \
Joey's avatar
Joey committed
196
    LineageCyanAccent \
Joey's avatar
Joey committed
197
198
199
200
201
202
203
    LineageGreenAccent \
    LineageOrangeAccent \
    LineagePinkAccent \
    LineagePurpleAccent \
    LineageRedAccent \
    LineageYellowAccent

Luca Stefani's avatar
Luca Stefani committed
204
# Extra tools in Lineage
Sebastian Schmidt's avatar
Sebastian Schmidt committed
205
PRODUCT_PACKAGES += \
Steve Kondik's avatar
Steve Kondik committed
206
    7z \
Tom Marshall's avatar
Tom Marshall committed
207
    awk \
Steve Kondik's avatar
Steve Kondik committed
208
209
210
    bash \
    bzip2 \
    curl \
211
    getcap \
Steve Kondik's avatar
Steve Kondik committed
212
213
    htop \
    lib7z \
214
    libsepol \
215
216
    pigz \
    powertop \
217
    setcap \
218
219
220
221
222
    unrar \
    unzip \
    vim \
    wget \
    zip
Sebastian Schmidt's avatar
Sebastian Schmidt committed
223

224
225
226
227
228
229
# Custom packages
ifdef CUSTOM_PACKAGES
PRODUCT_PACKAGES += $(CUSTOM_PACKAGES)
endif


230
231
232
233
# Charger
PRODUCT_PACKAGES += \
    charger_res_images

234
# Custom off-mode charger
235
ifeq ($(WITH_LINEAGE_CHARGER),true)
236
PRODUCT_PACKAGES += \
Luca Stefani's avatar
Luca Stefani committed
237
    lineage_charger_res_images \
238
    font_log.png \
Luca Stefani's avatar
Luca Stefani committed
239
    libhealthd.lineage
240
241
endif

242
# Filesystems tools
Scott Mertz's avatar
Scott Mertz committed
243
244
PRODUCT_PACKAGES += \
    fsck.exfat \
245
246
247
248
249
    fsck.ntfs \
    mke2fs \
    mkfs.exfat \
    mkfs.ntfs \
    mount.ntfs
Scott Mertz's avatar
Scott Mertz committed
250

Chirayu Desai's avatar
Chirayu Desai committed
251
252
253
254
255
256
257
258
# Openssh
PRODUCT_PACKAGES += \
    scp \
    sftp \
    ssh \
    sshd \
    sshd_config \
    ssh-keygen \
Chirayu Desai's avatar
Chirayu Desai committed
259
260
261
262
263
    start-ssh

# rsync
PRODUCT_PACKAGES += \
    rsync
Chirayu Desai's avatar
Chirayu Desai committed
264

265
# Storage manager
266
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
267
268
    ro.storage_manager.enabled=true

269
# Media
270
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
271
272
    media.recorder.show_manufacturer_and_model=true

273
# These packages are excluded from user builds
274
275
PRODUCT_PACKAGES_DEBUG += \
    micro_bench \
276
    procmem \
277
278
    procrank \
    strace
Abhisek Devkota's avatar
Abhisek Devkota committed
279
280

# Conditionally build in su
281
ifneq ($(TARGET_BUILD_VARIANT),user)
Abhisek Devkota's avatar
Abhisek Devkota committed
282
283
ifeq ($(WITH_SU),true)
PRODUCT_PACKAGES += \
284
    su
repo Shareef Ali's avatar
repo Shareef Ali committed
285
endif
Abhisek Devkota's avatar
Abhisek Devkota committed
286
endif
287

288
289
PRODUCT_PACKAGE_OVERLAYS := vendor/lineage/overlay/microg

290
PRODUCT_ENFORCE_RRO_EXCLUDED_OVERLAYS += vendor/lineage/overlay
Dan Pasanen's avatar
Dan Pasanen committed
291
DEVICE_PACKAGE_OVERLAYS += vendor/lineage/overlay/common
292

Romain Hunault's avatar
Romain Hunault committed
293
PRODUCT_VERSION_MAJOR = 0
Romain Hunault's avatar
Romain Hunault committed
294
PRODUCT_VERSION_MINOR = 7
Dan Pasanen's avatar
Dan Pasanen committed
295
PRODUCT_VERSION_MAINTENANCE := 0
296

297
ifeq ($(TARGET_VENDOR_SHOW_MAINTENANCE_VERSION),true)
Luca Stefani's avatar
Luca Stefani committed
298
    LINEAGE_VERSION_MAINTENANCE := $(PRODUCT_VERSION_MAINTENANCE)
299
else
Luca Stefani's avatar
Luca Stefani committed
300
    LINEAGE_VERSION_MAINTENANCE := 0
301
endif
302

Luca Stefani's avatar
Luca Stefani committed
303
# Set LINEAGE_BUILDTYPE from the env RELEASE_TYPE, for jenkins compat
Ricardo Cerqueira's avatar
Ricardo Cerqueira committed
304

Luca Stefani's avatar
Luca Stefani committed
305
ifndef LINEAGE_BUILDTYPE
Ricardo Cerqueira's avatar
Ricardo Cerqueira committed
306
    ifdef RELEASE_TYPE
Luca Stefani's avatar
Luca Stefani committed
307
308
309
        # Starting with "LINEAGE_" is optional
        RELEASE_TYPE := $(shell echo $(RELEASE_TYPE) | sed -e 's|^LINEAGE_||g')
        LINEAGE_BUILDTYPE := $(RELEASE_TYPE)
Ricardo Cerqueira's avatar
Ricardo Cerqueira committed
310
    endif
311
endif
Ricardo Cerqueira's avatar
Ricardo Cerqueira committed
312

Luca Stefani's avatar
Luca Stefani committed
313
314
315
ifdef LINEAGE_BUILDTYPE
    ifneq ($(LINEAGE_BUILDTYPE), SNAPSHOT)
        ifdef LINEAGE_EXTRAVERSION
Ricardo Cerqueira's avatar
Ricardo Cerqueira committed
316
            # Force build type to EXPERIMENTAL
Luca Stefani's avatar
Luca Stefani committed
317
318
319
320
321
            LINEAGE_BUILDTYPE := EXPERIMENTAL
            # Remove leading dash from LINEAGE_EXTRAVERSION
            LINEAGE_EXTRAVERSION := $(shell echo $(LINEAGE_EXTRAVERSION) | sed 's/-//')
            # Add leading dash to LINEAGE_EXTRAVERSION
            LINEAGE_EXTRAVERSION := -$(LINEAGE_EXTRAVERSION)
Ricardo Cerqueira's avatar
Ricardo Cerqueira committed
322
323
        endif
    else
Luca Stefani's avatar
Luca Stefani committed
324
        ifndef LINEAGE_EXTRAVERSION
Ricardo Cerqueira's avatar
Ricardo Cerqueira committed
325
            # Force build type to EXPERIMENTAL, SNAPSHOT mandates a tag
Luca Stefani's avatar
Luca Stefani committed
326
            LINEAGE_BUILDTYPE := EXPERIMENTAL
Ricardo Cerqueira's avatar
Ricardo Cerqueira committed
327
        else
Luca Stefani's avatar
Luca Stefani committed
328
329
330
331
            # Remove leading dash from LINEAGE_EXTRAVERSION
            LINEAGE_EXTRAVERSION := $(shell echo $(LINEAGE_EXTRAVERSION) | sed 's/-//')
            # Add leading dash to LINEAGE_EXTRAVERSION
            LINEAGE_EXTRAVERSION := -$(LINEAGE_EXTRAVERSION)
Ricardo Cerqueira's avatar
Ricardo Cerqueira committed
332
        endif
333
334
    endif
else
Luca Stefani's avatar
Luca Stefani committed
335
336
337
    # If LINEAGE_BUILDTYPE is not defined, set to UNOFFICIAL
    LINEAGE_BUILDTYPE := UNOFFICIAL
    LINEAGE_EXTRAVERSION :=
338
339
endif

Luca Stefani's avatar
Luca Stefani committed
340
ifeq ($(LINEAGE_BUILDTYPE), UNOFFICIAL)
341
    ifneq ($(TARGET_UNOFFICIAL_BUILD_ID),)
Luca Stefani's avatar
Luca Stefani committed
342
        LINEAGE_EXTRAVERSION := -$(TARGET_UNOFFICIAL_BUILD_ID)
343
344
345
    endif
endif

346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
ifdef PLATFORM_SDK_VERSION
  ifeq ($(PLATFORM_SDK_VERSION), 24)
		ANDROID_LETTER := n
  endif
  ifeq ($(PLATFORM_SDK_VERSION), 25)
		ANDROID_LETTER := n
  endif
  ifeq ($(PLATFORM_SDK_VERSION), 26)
		ANDROID_LETTER := o
  endif
  ifeq ($(PLATFORM_SDK_VERSION), 27)
		ANDROID_LETTER := o
  endif
  ifeq ($(PLATFORM_SDK_VERSION), 28)
		ANDROID_LETTER := p
  endif
endif

Luca Stefani's avatar
Luca Stefani committed
364
ifeq ($(LINEAGE_BUILDTYPE), RELEASE)
365
    ifndef TARGET_VENDOR_RELEASE_BUILD_ID
Luca Stefani's avatar
Luca Stefani committed
366
        LINEAGE_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(PRODUCT_VERSION_MAINTENANCE)$(PRODUCT_VERSION_DEVICE_SPECIFIC)-$(LINEAGE_BUILD)
367
368
    else
        ifeq ($(TARGET_BUILD_VARIANT),user)
Luca Stefani's avatar
Luca Stefani committed
369
370
            ifeq ($(LINEAGE_VERSION_MAINTENANCE),0)
                LINEAGE_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR)-$(TARGET_VENDOR_RELEASE_BUILD_ID)-$(LINEAGE_BUILD)
371
            else
Luca Stefani's avatar
Luca Stefani committed
372
                LINEAGE_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(LINEAGE_VERSION_MAINTENANCE)-$(TARGET_VENDOR_RELEASE_BUILD_ID)-$(LINEAGE_BUILD)
373
            endif
374
        else
Luca Stefani's avatar
Luca Stefani committed
375
            LINEAGE_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(PRODUCT_VERSION_MAINTENANCE)$(PRODUCT_VERSION_DEVICE_SPECIFIC)-$(LINEAGE_BUILD)
376
377
        endif
    endif
378
else
Luca Stefani's avatar
Luca Stefani committed
379
    ifeq ($(LINEAGE_VERSION_MAINTENANCE),0)
380
        ifeq ($(LINEAGE_VERSION_APPEND_TIME_OF_DAY),true)
381
            LINEAGE_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR)-$(ANDROID_LETTER)-$(shell date -u +%Y%m%d_%H%M%S)$(CI_PIPELINE_ID)-$(LINEAGE_BUILDTYPE)$(LINEAGE_EXTRAVERSION)-$(LINEAGE_BUILD)
382
        else
383
            LINEAGE_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR)-$(ANDROID_LETTER)-$(shell date -u +%Y%m%d)$(CI_PIPELINE_ID)-$(LINEAGE_BUILDTYPE)$(LINEAGE_EXTRAVERSION)-$(LINEAGE_BUILD)
384
        endif
385
    else
386
        ifeq ($(LINEAGE_VERSION_APPEND_TIME_OF_DAY),true)
387
            LINEAGE_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(LINEAGE_VERSION_MAINTENANCE)-$(ANDROID_LETTER)-$(shell date -u +%Y%m%d_%H%M%S)$(CI_PIPELINE_ID)-$(LINEAGE_BUILDTYPE)$(LINEAGE_EXTRAVERSION)-$(LINEAGE_BUILD)
388
        else
389
            LINEAGE_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(LINEAGE_VERSION_MAINTENANCE)-$(ANDROID_LETTER)-$(shell date -u +%Y%m%d)$(CI_PIPELINE_ID)-$(LINEAGE_BUILDTYPE)$(LINEAGE_EXTRAVERSION)-$(LINEAGE_BUILD)
390
        endif
391
    endif
392
endif
393

394
PRODUCT_EXTRA_RECOVERY_KEYS += \
Dan Pasanen's avatar
Dan Pasanen committed
395
    vendor/lineage/build/target/product/security/lineage
396

Luca Stefani's avatar
Luca Stefani committed
397
-include vendor/lineage-priv/keys/keys.mk
398

Luca Stefani's avatar
Luca Stefani committed
399
LINEAGE_DISPLAY_VERSION := $(LINEAGE_VERSION)
400

401
402
ifneq ($(PRODUCT_DEFAULT_DEV_CERTIFICATE),)
ifneq ($(PRODUCT_DEFAULT_DEV_CERTIFICATE),build/target/product/security/testkey)
Luca Stefani's avatar
Luca Stefani committed
403
    ifneq ($(LINEAGE_BUILDTYPE), UNOFFICIAL)
404
        ifndef TARGET_VENDOR_RELEASE_BUILD_ID
Luca Stefani's avatar
Luca Stefani committed
405
406
407
408
            ifneq ($(LINEAGE_EXTRAVERSION),)
                # Remove leading dash from LINEAGE_EXTRAVERSION
                LINEAGE_EXTRAVERSION := $(shell echo $(LINEAGE_EXTRAVERSION) | sed 's/-//')
                TARGET_VENDOR_RELEASE_BUILD_ID := $(LINEAGE_EXTRAVERSION)
409
410
411
412
413
414
            else
                TARGET_VENDOR_RELEASE_BUILD_ID := $(shell date -u +%Y%m%d)
            endif
        else
            TARGET_VENDOR_RELEASE_BUILD_ID := $(TARGET_VENDOR_RELEASE_BUILD_ID)
        endif
Luca Stefani's avatar
Luca Stefani committed
415
        ifeq ($(LINEAGE_VERSION_MAINTENANCE),0)
Romain Hunault's avatar
Romain Hunault committed
416
            LINEAGE_DISPLAY_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR)-$(TARGET_VENDOR_RELEASE_BUILD_ID)$(CI_PIPELINE_ID)
417
        else
Romain Hunault's avatar
Romain Hunault committed
418
            LINEAGE_DISPLAY_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(LINEAGE_VERSION_MAINTENANCE)-$(TARGET_VENDOR_RELEASE_BUILD_ID)$(CI_PIPELINE_ID)-$(LINEAGE_BUILD)
419
        endif
420
421
    endif
endif
422
423
endif

424
-include $(WORKSPACE)/build_env/image-auto-bits.mk
Dan Pasanen's avatar
Dan Pasanen committed
425
-include vendor/lineage/config/partner_gms.mk