Dan Pasanen | 0344771 | 2016-12-19 11:22:55 -0600 | [diff] [blame] | 1 | PRODUCT_BRAND ?= LineageOS |
Ricardo Cerqueira | 6ed03ff | 2011-11-28 16:37:47 +0000 | [diff] [blame] | 2 | |
Ricardo Cerqueira | e1f3738 | 2011-11-27 19:56:54 +0000 | [diff] [blame] | 3 | PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=0 |
| 4 | |
Steve Kondik | 5a27f63 | 2013-11-06 13:55:11 -0800 | [diff] [blame] | 5 | ifeq ($(PRODUCT_GMS_CLIENTID_BASE),) |
| 6 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 7 | ro.com.google.clientidbase=android-google |
| 8 | else |
| 9 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 10 | ro.com.google.clientidbase=$(PRODUCT_GMS_CLIENTID_BASE) |
| 11 | endif |
| 12 | |
Ricardo Cerqueira | e1f3738 | 2011-11-27 19:56:54 +0000 | [diff] [blame] | 13 | PRODUCT_PROPERTY_OVERRIDES += \ |
Zhao Wei Liew | a18b057 | 2017-01-13 15:41:01 +0800 | [diff] [blame] | 14 | keyguard.no_require_sim=true |
Ricardo Cerqueira | e1f3738 | 2011-11-27 19:56:54 +0000 | [diff] [blame] | 15 | |
Ricardo Cerqueira | f383563 | 2013-08-04 13:25:00 +0100 | [diff] [blame] | 16 | PRODUCT_PROPERTY_OVERRIDES += \ |
Ricardo Cerqueira | a21887e | 2013-09-25 17:13:25 +0100 | [diff] [blame] | 17 | ro.build.selinux=1 |
Ricardo Cerqueira | f383563 | 2013-08-04 13:25:00 +0100 | [diff] [blame] | 18 | |
Arne Coucheron | 61536d4 | 2016-09-09 00:04:09 +0200 | [diff] [blame] | 19 | # Default notification/alarm sounds |
| 20 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 21 | ro.config.notification_sound=Argon.ogg \ |
Zhao Wei Liew | 805a7a2 | 2016-10-03 15:30:05 +0800 | [diff] [blame] | 22 | ro.config.alarm_alert=Hassium.ogg |
Arne Coucheron | 61536d4 | 2016-09-09 00:04:09 +0200 | [diff] [blame] | 23 | |
Ricardo Cerqueira | ed63484 | 2015-09-12 00:13:01 +0100 | [diff] [blame] | 24 | ifneq ($(TARGET_BUILD_VARIANT),user) |
Steve Kondik | e4f938c | 2014-02-04 22:59:01 -0800 | [diff] [blame] | 25 | # Thank you, please drive thru! |
| 26 | PRODUCT_PROPERTY_OVERRIDES += persist.sys.dun.override=0 |
Ricardo Cerqueira | ed63484 | 2015-09-12 00:13:01 +0100 | [diff] [blame] | 27 | endif |
Steve Kondik | e4f938c | 2014-02-04 22:59:01 -0800 | [diff] [blame] | 28 | |
Chirayu Desai | 88401db | 2013-03-20 16:17:17 +0530 | [diff] [blame] | 29 | ifneq ($(TARGET_BUILD_VARIANT),eng) |
Chirayu Desai | 59df363 | 2013-02-15 21:16:39 +0530 | [diff] [blame] | 30 | # Enable ADB authentication |
Luca Stefani | c22b0dc | 2017-08-17 22:11:34 +0200 | [diff] [blame] | 31 | PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.adb.secure=1 |
Chirayu Desai | 88401db | 2013-03-20 16:17:17 +0530 | [diff] [blame] | 32 | endif |
Chirayu Desai | 59df363 | 2013-02-15 21:16:39 +0530 | [diff] [blame] | 33 | |
Luca Stefani | 75a79d6 | 2017-08-17 22:44:27 +0200 | [diff] [blame] | 34 | ifeq ($(BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE),) |
Luca Stefani | c22b0dc | 2017-08-17 22:11:34 +0200 | [diff] [blame] | 35 | PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ |
Luca Stefani | 75a79d6 | 2017-08-17 22:44:27 +0200 | [diff] [blame] | 36 | ro.device.cache_dir=/data/cache |
| 37 | else |
Luca Stefani | c22b0dc | 2017-08-17 22:11:34 +0200 | [diff] [blame] | 38 | PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ |
Luca Stefani | 75a79d6 | 2017-08-17 22:44:27 +0200 | [diff] [blame] | 39 | ro.device.cache_dir=/cache |
| 40 | endif |
| 41 | |
Warren Togami | b1637c8 | 2012-03-03 22:37:42 -1000 | [diff] [blame] | 42 | # Backup Tool |
Ricardo Cerqueira | e1f3738 | 2011-11-27 19:56:54 +0000 | [diff] [blame] | 43 | PRODUCT_COPY_FILES += \ |
Dan Pasanen | 91f7620 | 2017-07-06 08:21:30 -0500 | [diff] [blame] | 44 | vendor/lineage/prebuilt/common/bin/backuptool.sh:install/bin/backuptool.sh \ |
| 45 | vendor/lineage/prebuilt/common/bin/backuptool.functions:install/bin/backuptool.functions \ |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 46 | vendor/lineage/prebuilt/common/bin/50-lineage.sh:system/addon.d/50-lineage.sh \ |
Dan Pasanen | 91f7620 | 2017-07-06 08:21:30 -0500 | [diff] [blame] | 47 | vendor/lineage/prebuilt/common/bin/blacklist:system/addon.d/blacklist |
Ricardo Cerqueira | e1f3738 | 2011-11-27 19:56:54 +0000 | [diff] [blame] | 48 | |
Abhisek Devkota | f1c5ab8 | 2016-07-06 15:18:29 -0700 | [diff] [blame] | 49 | # Backup Services whitelist |
| 50 | PRODUCT_COPY_FILES += \ |
Dan Pasanen | 91f7620 | 2017-07-06 08:21:30 -0500 | [diff] [blame] | 51 | vendor/lineage/config/permissions/backup.xml:system/etc/sysconfig/backup.xml |
Abhisek Devkota | f1c5ab8 | 2016-07-06 15:18:29 -0700 | [diff] [blame] | 52 | |
Bruno Martins | a1b47e3 | 2017-10-16 09:37:03 +0100 | [diff] [blame] | 53 | # Lineage-specific broadcast actions whitelist |
| 54 | PRODUCT_COPY_FILES += \ |
| 55 | vendor/lineage/config/permissions/lineage-sysconfig.xml:system/etc/sysconfig/lineage-sysconfig.xml |
| 56 | |
Ricardo Cerqueira | aff5e54 | 2014-05-09 22:24:12 +0100 | [diff] [blame] | 57 | # Signature compatibility validation |
| 58 | PRODUCT_COPY_FILES += \ |
Dan Pasanen | 91f7620 | 2017-07-06 08:21:30 -0500 | [diff] [blame] | 59 | vendor/lineage/prebuilt/common/bin/otasigcheck.sh:install/bin/otasigcheck.sh |
Ricardo Cerqueira | aff5e54 | 2014-05-09 22:24:12 +0100 | [diff] [blame] | 60 | |
Steve Kondik | 485527d | 2011-12-20 12:14:24 -0800 | [diff] [blame] | 61 | # init.d support |
| 62 | PRODUCT_COPY_FILES += \ |
Dan Pasanen | 91f7620 | 2017-07-06 08:21:30 -0500 | [diff] [blame] | 63 | vendor/lineage/prebuilt/common/etc/init.d/00banner:system/etc/init.d/00banner \ |
| 64 | vendor/lineage/prebuilt/common/bin/sysinit:system/bin/sysinit |
Steve Kondik | 485527d | 2011-12-20 12:14:24 -0800 | [diff] [blame] | 65 | |
Ricardo Cerqueira | fd6bfe7 | 2015-03-16 12:22:11 +0000 | [diff] [blame] | 66 | ifneq ($(TARGET_BUILD_VARIANT),user) |
James Sullins | eb7799c | 2012-04-05 20:18:18 -0500 | [diff] [blame] | 67 | # userinit support |
| 68 | PRODUCT_COPY_FILES += \ |
Dan Pasanen | 91f7620 | 2017-07-06 08:21:30 -0500 | [diff] [blame] | 69 | vendor/lineage/prebuilt/common/etc/init.d/90userinit:system/etc/init.d/90userinit |
Ricardo Cerqueira | fd6bfe7 | 2015-03-16 12:22:11 +0000 | [diff] [blame] | 70 | endif |
James Sullins | eb7799c | 2012-04-05 20:18:18 -0500 | [diff] [blame] | 71 | |
Sam Mortimer | c108852 | 2017-09-21 10:10:49 -0700 | [diff] [blame] | 72 | # Copy all Lineage-specific init rc files |
| 73 | $(foreach f,$(wildcard vendor/lineage/prebuilt/common/etc/init/*.rc),\ |
| 74 | $(eval PRODUCT_COPY_FILES += $(f):system/etc/init/$(notdir $f))) |
Ricardo Cerqueira | 8f412cb | 2012-10-18 16:38:25 +0100 | [diff] [blame] | 75 | |
herriojr | 5d2c998 | 2015-10-01 11:20:26 -0700 | [diff] [blame] | 76 | # Copy over added mimetype supported in libcore.net.MimeUtils |
| 77 | PRODUCT_COPY_FILES += \ |
Dan Pasanen | 91f7620 | 2017-07-06 08:21:30 -0500 | [diff] [blame] | 78 | vendor/lineage/prebuilt/common/lib/content-types.properties:system/lib/content-types.properties |
herriojr | 5d2c998 | 2015-10-01 11:20:26 -0700 | [diff] [blame] | 79 | |
Ricardo Cerqueira | e1f3738 | 2011-11-27 19:56:54 +0000 | [diff] [blame] | 80 | # Enable SIP+VoIP on all targets |
| 81 | PRODUCT_COPY_FILES += \ |
Ricardo Cerqueira | 3ff9b6f | 2012-07-11 11:21:50 +0100 | [diff] [blame] | 82 | frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml |
Ricardo Cerqueira | e1f3738 | 2011-11-27 19:56:54 +0000 | [diff] [blame] | 83 | |
sleeplessninja | 918a7ea | 2013-01-30 14:45:20 -0600 | [diff] [blame] | 84 | # Enable wireless Xbox 360 controller support |
| 85 | PRODUCT_COPY_FILES += \ |
| 86 | frameworks/base/data/keyboards/Vendor_045e_Product_028e.kl:system/usr/keylayout/Vendor_045e_Product_0719.kl |
| 87 | |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 88 | # This is Lineage! |
Steve Kondik | e0c12da | 2012-03-25 17:21:32 -0700 | [diff] [blame] | 89 | PRODUCT_COPY_FILES += \ |
Ethan Chen | c3532d9 | 2017-11-15 00:37:27 -0800 | [diff] [blame] | 90 | vendor/lineage/config/permissions/org.lineageos.android.xml:system/etc/permissions/org.lineageos.android.xml \ |
| 91 | vendor/lineage/config/permissions/privapp-permissions-lineage.xml:system/etc/permissions/privapp-permissions-lineage.xml |
Steve Kondik | e0c12da | 2012-03-25 17:21:32 -0700 | [diff] [blame] | 92 | |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 93 | # Include Lineage audio files |
| 94 | include vendor/lineage/config/lineage_audio.mk |
Arne Coucheron | 61536d4 | 2016-09-09 00:04:09 +0200 | [diff] [blame] | 95 | |
Sam Mortimer | 19ce2d3 | 2017-09-18 21:05:19 -0700 | [diff] [blame] | 96 | ifneq ($(TARGET_DISABLE_LINEAGE_SDK), true) |
| 97 | # Lineage SDK |
| 98 | include vendor/lineage/config/lineage_sdk_common.mk |
Luca Stefani | 2580197 | 2016-08-27 00:44:50 +0200 | [diff] [blame] | 99 | endif |
Adnan Begovic | f3610f5 | 2016-03-15 14:17:47 -0700 | [diff] [blame] | 100 | |
Michael Bestas | beb05c8 | 2017-07-18 19:57:26 +0300 | [diff] [blame] | 101 | # TWRP |
| 102 | ifeq ($(WITH_TWRP),true) |
Dan Pasanen | 91f7620 | 2017-07-06 08:21:30 -0500 | [diff] [blame] | 103 | include vendor/lineage/config/twrp.mk |
Michael Bestas | beb05c8 | 2017-07-18 19:57:26 +0300 | [diff] [blame] | 104 | endif |
| 105 | |
Dan Pasanen | 24a1cc9 | 2016-12-28 22:59:21 -0600 | [diff] [blame] | 106 | # Bootanimation |
Asher Simonds | e035b9a | 2017-01-16 21:52:24 -0600 | [diff] [blame] | 107 | PRODUCT_PACKAGES += \ |
| 108 | bootanimation.zip |
Dan Pasanen | 24a1cc9 | 2016-12-28 22:59:21 -0600 | [diff] [blame] | 109 | |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 110 | # Required Lineage packages |
Ricardo Cerqueira | e1f3738 | 2011-11-27 19:56:54 +0000 | [diff] [blame] | 111 | PRODUCT_PACKAGES += \ |
Steve Kondik | 4992d38 | 2016-08-29 18:23:03 -0700 | [diff] [blame] | 112 | BluetoothExt \ |
Sam Mortimer | 19ce2d3 | 2017-09-18 21:05:19 -0700 | [diff] [blame] | 113 | LineageParts \ |
Steve Kondik | e0c297d | 2011-12-20 16:16:01 -0800 | [diff] [blame] | 114 | Development \ |
Michael Bestas | 6c664d9 | 2017-12-28 00:32:59 +0200 | [diff] [blame] | 115 | Profiles |
Ricardo Cerqueira | e1f3738 | 2011-11-27 19:56:54 +0000 | [diff] [blame] | 116 | |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 117 | # Optional packages |
Ricardo Cerqueira | e1f3738 | 2011-11-27 19:56:54 +0000 | [diff] [blame] | 118 | PRODUCT_PACKAGES += \ |
Ricardo Cerqueira | 117984f | 2015-01-04 01:55:24 +0000 | [diff] [blame] | 119 | libemoji \ |
Arne Coucheron | 61536d4 | 2016-09-09 00:04:09 +0200 | [diff] [blame] | 120 | LiveWallpapersPicker \ |
Steve Kondik | df96b44 | 2016-10-13 11:37:08 -0700 | [diff] [blame] | 121 | PhotoTable \ |
| 122 | Terminal |
Koushik Dutta | 8387c32 | 2011-11-26 17:31:19 -0800 | [diff] [blame] | 123 | |
Alexander Martinz | e7f4058 | 2016-12-01 18:57:48 +0100 | [diff] [blame] | 124 | # Include explicitly to work around GMS issues |
Steve Kondik | dac3785 | 2015-12-01 13:31:45 -0800 | [diff] [blame] | 125 | PRODUCT_PACKAGES += \ |
Alexander Martinz | e7f4058 | 2016-12-01 18:57:48 +0100 | [diff] [blame] | 126 | libprotobuf-cpp-full \ |
Steve Kondik | dac3785 | 2015-12-01 13:31:45 -0800 | [diff] [blame] | 127 | librsjni |
| 128 | |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 129 | # Custom Lineage packages |
Steve Kondik | 04a4941 | 2011-12-14 14:02:19 -0800 | [diff] [blame] | 130 | PRODUCT_PACKAGES += \ |
Steve Kondik | c4f6b97 | 2014-12-09 13:29:29 -0800 | [diff] [blame] | 131 | AudioFX \ |
Sam Mortimer | 19ce2d3 | 2017-09-18 21:05:19 -0700 | [diff] [blame] | 132 | LineageSettingsProvider \ |
cretin45 | 7674e05 | 2017-02-11 11:39:59 -0800 | [diff] [blame] | 133 | LineageSetupWizard \ |
Steve Kondik | df96b44 | 2016-10-13 11:37:08 -0700 | [diff] [blame] | 134 | Eleven \ |
d34d | 2cf159c | 2016-03-08 09:12:04 -0800 | [diff] [blame] | 135 | ExactCalculator \ |
Joey Rizzoli | 177ab03 | 2017-04-20 22:17:37 +0200 | [diff] [blame] | 136 | Jelly \ |
Steve Kondik | df96b44 | 2016-10-13 11:37:08 -0700 | [diff] [blame] | 137 | LockClock \ |
Steve Kondik | df96b44 | 2016-10-13 11:37:08 -0700 | [diff] [blame] | 138 | Trebuchet \ |
Gabriele M | c7b874b | 2017-07-06 12:30:35 +0200 | [diff] [blame] | 139 | Updater \ |
Steve Kondik | df96b44 | 2016-10-13 11:37:08 -0700 | [diff] [blame] | 140 | WallpaperPicker \ |
| 141 | WeatherProvider |
Steve Kondik | 04a4941 | 2011-12-14 14:02:19 -0800 | [diff] [blame] | 142 | |
Abhisek Devkota | cf03e16 | 2016-03-14 12:45:43 -0800 | [diff] [blame] | 143 | # Exchange support |
| 144 | PRODUCT_PACKAGES += \ |
| 145 | Exchange2 |
| 146 | |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 147 | # Extra tools in Lineage |
Sebastian Schmidt | 7d5de0c | 2012-04-15 11:39:25 +0200 | [diff] [blame] | 148 | PRODUCT_PACKAGES += \ |
Arne Coucheron | 61536d4 | 2016-09-09 00:04:09 +0200 | [diff] [blame] | 149 | 7z \ |
Arne Coucheron | 61536d4 | 2016-09-09 00:04:09 +0200 | [diff] [blame] | 150 | bash \ |
| 151 | bzip2 \ |
| 152 | curl \ |
Steve Kondik | df96b44 | 2016-10-13 11:37:08 -0700 | [diff] [blame] | 153 | fsck.ntfs \ |
| 154 | gdbserver \ |
| 155 | htop \ |
| 156 | lib7z \ |
| 157 | libsepol \ |
| 158 | micro_bench \ |
| 159 | mke2fs \ |
| 160 | mkfs.ntfs \ |
| 161 | mount.ntfs \ |
| 162 | oprofiled \ |
| 163 | pigz \ |
Arne Coucheron | 61536d4 | 2016-09-09 00:04:09 +0200 | [diff] [blame] | 164 | powertop \ |
Steve Kondik | df96b44 | 2016-10-13 11:37:08 -0700 | [diff] [blame] | 165 | sqlite3 \ |
| 166 | strace \ |
| 167 | tune2fs \ |
Arne Coucheron | 61536d4 | 2016-09-09 00:04:09 +0200 | [diff] [blame] | 168 | unrar \ |
| 169 | unzip \ |
| 170 | vim \ |
| 171 | wget \ |
| 172 | zip |
Sebastian Schmidt | 7d5de0c | 2012-04-15 11:39:25 +0200 | [diff] [blame] | 173 | |
Steve Kondik | 7595620 | 2016-08-07 23:21:29 -0700 | [diff] [blame] | 174 | # Custom off-mode charger |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 175 | ifneq ($(WITH_LINEAGE_CHARGER),false) |
Steve Kondik | 7595620 | 2016-08-07 23:21:29 -0700 | [diff] [blame] | 176 | PRODUCT_PACKAGES += \ |
| 177 | charger_res_images \ |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 178 | lineage_charger_res_images \ |
Steve Kondik | 7595620 | 2016-08-07 23:21:29 -0700 | [diff] [blame] | 179 | font_log.png \ |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 180 | libhealthd.lineage |
Steve Kondik | 7595620 | 2016-08-07 23:21:29 -0700 | [diff] [blame] | 181 | endif |
| 182 | |
| 183 | # ExFAT support |
Scott Mertz | 2911a0e | 2015-11-09 11:35:41 -0800 | [diff] [blame] | 184 | WITH_EXFAT ?= true |
| 185 | ifeq ($(WITH_EXFAT),true) |
| 186 | TARGET_USES_EXFAT := true |
| 187 | PRODUCT_PACKAGES += \ |
| 188 | mount.exfat \ |
| 189 | fsck.exfat \ |
| 190 | mkfs.exfat |
| 191 | endif |
| 192 | |
Chirayu Desai | 8636d67 | 2012-07-19 16:04:25 +0530 | [diff] [blame] | 193 | # Openssh |
| 194 | PRODUCT_PACKAGES += \ |
| 195 | scp \ |
| 196 | sftp \ |
| 197 | ssh \ |
| 198 | sshd \ |
| 199 | sshd_config \ |
| 200 | ssh-keygen \ |
Chirayu Desai | 4bacf67 | 2012-08-19 17:30:04 +0530 | [diff] [blame] | 201 | start-ssh |
| 202 | |
| 203 | # rsync |
| 204 | PRODUCT_PACKAGES += \ |
| 205 | rsync |
Chirayu Desai | 8636d67 | 2012-07-19 16:04:25 +0530 | [diff] [blame] | 206 | |
Michael Bestas | 7d5d16d | 2014-06-10 20:06:48 +0300 | [diff] [blame] | 207 | # Stagefright FFMPEG plugin |
Steve Kondik | b5ee377 | 2016-09-06 03:06:35 -0700 | [diff] [blame] | 208 | PRODUCT_PACKAGES += \ |
| 209 | libffmpeg_extractor \ |
| 210 | libffmpeg_omx \ |
| 211 | media_codecs_ffmpeg.xml |
| 212 | |
| 213 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 214 | media.sf.omx-plugin=libffmpeg_omx.so \ |
| 215 | media.sf.extractor-plugin=libffmpeg_extractor.so |
Steve Kondik | 7c96869 | 2015-07-08 09:53:12 -0700 | [diff] [blame] | 216 | |
Joey Rizzoli | 73a3965 | 2016-11-23 21:19:00 +0100 | [diff] [blame] | 217 | # Storage manager |
| 218 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 219 | ro.storage_manager.enabled=true |
| 220 | |
Ricardo Cerqueira | a21887e | 2013-09-25 17:13:25 +0100 | [diff] [blame] | 221 | # These packages are excluded from user builds |
| 222 | ifneq ($(TARGET_BUILD_VARIANT),user) |
Ricardo Cerqueira | a21887e | 2013-09-25 17:13:25 +0100 | [diff] [blame] | 223 | PRODUCT_PACKAGES += \ |
Steve Kondik | 275701b | 2013-11-06 12:41:34 -0800 | [diff] [blame] | 224 | procmem \ |
Abhisek Devkota | 6af9acb | 2016-12-27 22:30:35 -0800 | [diff] [blame] | 225 | procrank |
| 226 | |
| 227 | # Conditionally build in su |
| 228 | ifeq ($(WITH_SU),true) |
| 229 | PRODUCT_PACKAGES += \ |
Ricardo Cerqueira | a21887e | 2013-09-25 17:13:25 +0100 | [diff] [blame] | 230 | su |
repo Shareef Ali | 4bcfc31 | 2014-12-29 17:52:04 -0600 | [diff] [blame] | 231 | endif |
Abhisek Devkota | 6af9acb | 2016-12-27 22:30:35 -0800 | [diff] [blame] | 232 | endif |
Ricardo Cerqueira | a21887e | 2013-09-25 17:13:25 +0100 | [diff] [blame] | 233 | |
Dan Pasanen | 91f7620 | 2017-07-06 08:21:30 -0500 | [diff] [blame] | 234 | DEVICE_PACKAGE_OVERLAYS += vendor/lineage/overlay/common |
Koushik Dutta | c6f7a49 | 2011-11-28 07:44:23 -0800 | [diff] [blame] | 235 | |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 236 | PRODUCT_VERSION_MAJOR = 15 |
Adrian DC | 93256e4 | 2017-12-07 01:34:33 +0100 | [diff] [blame] | 237 | PRODUCT_VERSION_MINOR = 1 |
Dan Pasanen | 6935410 | 2016-08-24 10:19:50 -0500 | [diff] [blame] | 238 | PRODUCT_VERSION_MAINTENANCE := 0 |
Adrian DC | 3e85bf7 | 2016-08-06 21:47:23 +0200 | [diff] [blame] | 239 | |
Scott Mertz | a995059 | 2016-08-05 12:24:19 -0700 | [diff] [blame] | 240 | ifeq ($(TARGET_VENDOR_SHOW_MAINTENANCE_VERSION),true) |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 241 | LINEAGE_VERSION_MAINTENANCE := $(PRODUCT_VERSION_MAINTENANCE) |
Scott Mertz | a995059 | 2016-08-05 12:24:19 -0700 | [diff] [blame] | 242 | else |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 243 | LINEAGE_VERSION_MAINTENANCE := 0 |
Scott Mertz | a995059 | 2016-08-05 12:24:19 -0700 | [diff] [blame] | 244 | endif |
Koushik Dutta | c6f7a49 | 2011-11-28 07:44:23 -0800 | [diff] [blame] | 245 | |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 246 | # Set LINEAGE_BUILDTYPE from the env RELEASE_TYPE, for jenkins compat |
Ricardo Cerqueira | 554f370 | 2013-09-24 17:58:56 +0100 | [diff] [blame] | 247 | |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 248 | ifndef LINEAGE_BUILDTYPE |
Ricardo Cerqueira | 554f370 | 2013-09-24 17:58:56 +0100 | [diff] [blame] | 249 | ifdef RELEASE_TYPE |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 250 | # Starting with "LINEAGE_" is optional |
| 251 | RELEASE_TYPE := $(shell echo $(RELEASE_TYPE) | sed -e 's|^LINEAGE_||g') |
| 252 | LINEAGE_BUILDTYPE := $(RELEASE_TYPE) |
Ricardo Cerqueira | 554f370 | 2013-09-24 17:58:56 +0100 | [diff] [blame] | 253 | endif |
Warren Togami | 2128e2f | 2012-05-06 19:49:33 -1000 | [diff] [blame] | 254 | endif |
Ricardo Cerqueira | 554f370 | 2013-09-24 17:58:56 +0100 | [diff] [blame] | 255 | |
| 256 | # Filter out random types, so it'll reset to UNOFFICIAL |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 257 | ifeq ($(filter RELEASE NIGHTLY SNAPSHOT EXPERIMENTAL,$(LINEAGE_BUILDTYPE)),) |
| 258 | LINEAGE_BUILDTYPE := |
Warren Togami | 2128e2f | 2012-05-06 19:49:33 -1000 | [diff] [blame] | 259 | endif |
| 260 | |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 261 | ifdef LINEAGE_BUILDTYPE |
| 262 | ifneq ($(LINEAGE_BUILDTYPE), SNAPSHOT) |
| 263 | ifdef LINEAGE_EXTRAVERSION |
Ricardo Cerqueira | 554f370 | 2013-09-24 17:58:56 +0100 | [diff] [blame] | 264 | # Force build type to EXPERIMENTAL |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 265 | LINEAGE_BUILDTYPE := EXPERIMENTAL |
| 266 | # Remove leading dash from LINEAGE_EXTRAVERSION |
| 267 | LINEAGE_EXTRAVERSION := $(shell echo $(LINEAGE_EXTRAVERSION) | sed 's/-//') |
| 268 | # Add leading dash to LINEAGE_EXTRAVERSION |
| 269 | LINEAGE_EXTRAVERSION := -$(LINEAGE_EXTRAVERSION) |
Ricardo Cerqueira | 554f370 | 2013-09-24 17:58:56 +0100 | [diff] [blame] | 270 | endif |
| 271 | else |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 272 | ifndef LINEAGE_EXTRAVERSION |
Ricardo Cerqueira | 554f370 | 2013-09-24 17:58:56 +0100 | [diff] [blame] | 273 | # Force build type to EXPERIMENTAL, SNAPSHOT mandates a tag |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 274 | LINEAGE_BUILDTYPE := EXPERIMENTAL |
Ricardo Cerqueira | 554f370 | 2013-09-24 17:58:56 +0100 | [diff] [blame] | 275 | else |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 276 | # Remove leading dash from LINEAGE_EXTRAVERSION |
| 277 | LINEAGE_EXTRAVERSION := $(shell echo $(LINEAGE_EXTRAVERSION) | sed 's/-//') |
| 278 | # Add leading dash to LINEAGE_EXTRAVERSION |
| 279 | LINEAGE_EXTRAVERSION := -$(LINEAGE_EXTRAVERSION) |
Ricardo Cerqueira | 554f370 | 2013-09-24 17:58:56 +0100 | [diff] [blame] | 280 | endif |
Ricardo Cerqueira | d8e7666 | 2012-06-08 11:08:15 +0100 | [diff] [blame] | 281 | endif |
| 282 | else |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 283 | # If LINEAGE_BUILDTYPE is not defined, set to UNOFFICIAL |
| 284 | LINEAGE_BUILDTYPE := UNOFFICIAL |
| 285 | LINEAGE_EXTRAVERSION := |
Warren Togami | 2128e2f | 2012-05-06 19:49:33 -1000 | [diff] [blame] | 286 | endif |
| 287 | |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 288 | ifeq ($(LINEAGE_BUILDTYPE), UNOFFICIAL) |
Matt Mower | f416839 | 2013-12-13 11:04:14 -0600 | [diff] [blame] | 289 | ifneq ($(TARGET_UNOFFICIAL_BUILD_ID),) |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 290 | LINEAGE_EXTRAVERSION := -$(TARGET_UNOFFICIAL_BUILD_ID) |
Matt Mower | f416839 | 2013-12-13 11:04:14 -0600 | [diff] [blame] | 291 | endif |
| 292 | endif |
| 293 | |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 294 | ifeq ($(LINEAGE_BUILDTYPE), RELEASE) |
Ricardo Cerqueira | ae71f04 | 2013-11-11 00:55:51 +0000 | [diff] [blame] | 295 | ifndef TARGET_VENDOR_RELEASE_BUILD_ID |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 296 | LINEAGE_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(PRODUCT_VERSION_MAINTENANCE)$(PRODUCT_VERSION_DEVICE_SPECIFIC)-$(LINEAGE_BUILD) |
Ricardo Cerqueira | ae71f04 | 2013-11-11 00:55:51 +0000 | [diff] [blame] | 297 | else |
| 298 | ifeq ($(TARGET_BUILD_VARIANT),user) |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 299 | ifeq ($(LINEAGE_VERSION_MAINTENANCE),0) |
| 300 | LINEAGE_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR)-$(TARGET_VENDOR_RELEASE_BUILD_ID)-$(LINEAGE_BUILD) |
Jessica Wagantall | 79204e6 | 2016-07-14 15:42:08 -0700 | [diff] [blame] | 301 | else |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 302 | LINEAGE_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(LINEAGE_VERSION_MAINTENANCE)-$(TARGET_VENDOR_RELEASE_BUILD_ID)-$(LINEAGE_BUILD) |
Jessica Wagantall | 79204e6 | 2016-07-14 15:42:08 -0700 | [diff] [blame] | 303 | endif |
Ricardo Cerqueira | ae71f04 | 2013-11-11 00:55:51 +0000 | [diff] [blame] | 304 | else |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 305 | LINEAGE_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(PRODUCT_VERSION_MAINTENANCE)$(PRODUCT_VERSION_DEVICE_SPECIFIC)-$(LINEAGE_BUILD) |
Ricardo Cerqueira | ae71f04 | 2013-11-11 00:55:51 +0000 | [diff] [blame] | 306 | endif |
| 307 | endif |
Koushik Dutta | c6f7a49 | 2011-11-28 07:44:23 -0800 | [diff] [blame] | 308 | else |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 309 | ifeq ($(LINEAGE_VERSION_MAINTENANCE),0) |
Michael Bestas | 24807ea | 2017-12-24 04:08:07 +0200 | [diff] [blame] | 310 | ifeq ($(LINEAGE_VERSION_APPEND_TIME_OF_DAY),true) |
Kevin F. Haggerty | a2440d0 | 2017-10-21 04:41:20 +0200 | [diff] [blame] | 311 | LINEAGE_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR)-$(shell date -u +%Y%m%d_%H%M%S)-$(LINEAGE_BUILDTYPE)$(LINEAGE_EXTRAVERSION)-$(LINEAGE_BUILD) |
| 312 | else |
| 313 | LINEAGE_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR)-$(shell date -u +%Y%m%d)-$(LINEAGE_BUILDTYPE)$(LINEAGE_EXTRAVERSION)-$(LINEAGE_BUILD) |
| 314 | endif |
Jessica Wagantall | 79204e6 | 2016-07-14 15:42:08 -0700 | [diff] [blame] | 315 | else |
Michael Bestas | 24807ea | 2017-12-24 04:08:07 +0200 | [diff] [blame] | 316 | ifeq ($(LINEAGE_VERSION_APPEND_TIME_OF_DAY),true) |
Kevin F. Haggerty | a2440d0 | 2017-10-21 04:41:20 +0200 | [diff] [blame] | 317 | LINEAGE_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(LINEAGE_VERSION_MAINTENANCE)-$(shell date -u +%Y%m%d_%H%M%S)-$(LINEAGE_BUILDTYPE)$(LINEAGE_EXTRAVERSION)-$(LINEAGE_BUILD) |
| 318 | else |
| 319 | LINEAGE_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(LINEAGE_VERSION_MAINTENANCE)-$(shell date -u +%Y%m%d)-$(LINEAGE_BUILDTYPE)$(LINEAGE_EXTRAVERSION)-$(LINEAGE_BUILD) |
| 320 | endif |
Jessica Wagantall | 79204e6 | 2016-07-14 15:42:08 -0700 | [diff] [blame] | 321 | endif |
Koushik Dutta | c6f7a49 | 2011-11-28 07:44:23 -0800 | [diff] [blame] | 322 | endif |
Koushik Dutta | d69b292 | 2012-02-23 14:07:44 -0800 | [diff] [blame] | 323 | |
| 324 | PRODUCT_PROPERTY_OVERRIDES += \ |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 325 | ro.lineage.version=$(LINEAGE_VERSION) \ |
| 326 | ro.lineage.releasetype=$(LINEAGE_BUILDTYPE) \ |
Gabriele M | afbbe4b | 2017-07-02 17:50:27 +0200 | [diff] [blame] | 327 | ro.lineage.build.version=$(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR) \ |
Zhao Wei Liew | 046484f | 2017-01-07 15:55:35 +0800 | [diff] [blame] | 328 | ro.modversion=$(LINEAGE_VERSION) \ |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 329 | ro.lineagelegal.url=https://lineageos.org/legal |
Ricardo Cerqueira | d542274 | 2012-11-13 10:42:11 +0000 | [diff] [blame] | 330 | |
Tom Powell | e4c8c82 | 2017-01-06 22:29:06 -0800 | [diff] [blame] | 331 | PRODUCT_EXTRA_RECOVERY_KEYS += \ |
Dan Pasanen | 91f7620 | 2017-07-06 08:21:30 -0500 | [diff] [blame] | 332 | vendor/lineage/build/target/product/security/lineage |
Tom Powell | e4c8c82 | 2017-01-06 22:29:06 -0800 | [diff] [blame] | 333 | |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 334 | -include vendor/lineage-priv/keys/keys.mk |
Ricardo Cerqueira | 178dbd6 | 2013-10-23 20:56:56 +0100 | [diff] [blame] | 335 | |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 336 | LINEAGE_DISPLAY_VERSION := $(LINEAGE_VERSION) |
Ricardo Cerqueira | 4616137 | 2014-01-09 10:25:31 +0000 | [diff] [blame] | 337 | |
Brint E. Kriebel | ac948f5 | 2014-01-24 09:58:36 -0800 | [diff] [blame] | 338 | ifneq ($(PRODUCT_DEFAULT_DEV_CERTIFICATE),) |
| 339 | ifneq ($(PRODUCT_DEFAULT_DEV_CERTIFICATE),build/target/product/security/testkey) |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 340 | ifneq ($(LINEAGE_BUILDTYPE), UNOFFICIAL) |
Zhao Wei Liew | 046484f | 2017-01-07 15:55:35 +0800 | [diff] [blame] | 341 | ifndef TARGET_VENDOR_RELEASE_BUILD_ID |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 342 | ifneq ($(LINEAGE_EXTRAVERSION),) |
| 343 | # Remove leading dash from LINEAGE_EXTRAVERSION |
| 344 | LINEAGE_EXTRAVERSION := $(shell echo $(LINEAGE_EXTRAVERSION) | sed 's/-//') |
| 345 | TARGET_VENDOR_RELEASE_BUILD_ID := $(LINEAGE_EXTRAVERSION) |
Zhao Wei Liew | 046484f | 2017-01-07 15:55:35 +0800 | [diff] [blame] | 346 | else |
| 347 | TARGET_VENDOR_RELEASE_BUILD_ID := $(shell date -u +%Y%m%d) |
| 348 | endif |
| 349 | else |
| 350 | TARGET_VENDOR_RELEASE_BUILD_ID := $(TARGET_VENDOR_RELEASE_BUILD_ID) |
| 351 | endif |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 352 | ifeq ($(LINEAGE_VERSION_MAINTENANCE),0) |
| 353 | LINEAGE_DISPLAY_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR)-$(TARGET_VENDOR_RELEASE_BUILD_ID)-$(LINEAGE_BUILD) |
Zhao Wei Liew | 046484f | 2017-01-07 15:55:35 +0800 | [diff] [blame] | 354 | else |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 355 | LINEAGE_DISPLAY_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(LINEAGE_VERSION_MAINTENANCE)-$(TARGET_VENDOR_RELEASE_BUILD_ID)-$(LINEAGE_BUILD) |
Zhao Wei Liew | 046484f | 2017-01-07 15:55:35 +0800 | [diff] [blame] | 356 | endif |
Ricardo Cerqueira | 4616137 | 2014-01-09 10:25:31 +0000 | [diff] [blame] | 357 | endif |
Ricardo Cerqueira | 4616137 | 2014-01-09 10:25:31 +0000 | [diff] [blame] | 358 | endif |
Ricardo Cerqueira | 74b4f9b | 2014-01-11 16:00:16 +0000 | [diff] [blame] | 359 | endif |
Ricardo Cerqueira | 4616137 | 2014-01-09 10:25:31 +0000 | [diff] [blame] | 360 | |
| 361 | PRODUCT_PROPERTY_OVERRIDES += \ |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 362 | ro.lineage.display.version=$(LINEAGE_DISPLAY_VERSION) |
Ricardo Cerqueira | 4616137 | 2014-01-09 10:25:31 +0000 | [diff] [blame] | 363 | |
Brint E. Kriebel | a1e4912 | 2014-01-31 11:59:56 -0800 | [diff] [blame] | 364 | -include $(WORKSPACE)/build_env/image-auto-bits.mk |
Dan Pasanen | 91f7620 | 2017-07-06 08:21:30 -0500 | [diff] [blame] | 365 | -include vendor/lineage/config/partner_gms.mk |
Koushik Dutta | 41fd0aa | 2013-12-07 22:04:17 -0800 | [diff] [blame] | 366 | -include vendor/cyngn/product.mk |
Steve Kondik | b9dd400 | 2014-09-10 15:41:43 -0700 | [diff] [blame] | 367 | |
Chris Sarbora | 39b9aa8 | 2014-12-17 14:41:28 -0800 | [diff] [blame] | 368 | $(call prepend-product-if-exists, vendor/extra/product.mk) |