Anton Hansson | cf27a3d | 2018-06-27 18:25:33 +0100 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2018 The Android Open Source Project |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | # |
| 16 | |
Anton Hansson | 889018d | 2018-09-26 16:23:02 +0100 | [diff] [blame] | 17 | # This makefile is the basis of a generic system image for a handheld device. |
Anton Hansson | cac1fc8 | 2018-07-10 17:25:52 +0100 | [diff] [blame] | 18 | $(call inherit-product, $(SRC_TARGET_DIR)/product/handheld_system.mk) |
Anton Hansson | 889018d | 2018-09-26 16:23:02 +0100 | [diff] [blame] | 19 | $(call inherit-product, $(SRC_TARGET_DIR)/product/telephony_system.mk) |
Anton Hansson | c004218 | 2019-01-04 13:11:55 +0000 | [diff] [blame] | 20 | $(call inherit-product, $(SRC_TARGET_DIR)/product/languages_default.mk) |
Anton Hansson | 0cb36d7 | 2019-01-07 14:36:12 +0000 | [diff] [blame] | 21 | # Add adb keys to debuggable AOSP builds (if they exist) |
| 22 | $(call inherit-product-if-exists, vendor/google/security/adb/vendor_key.mk) |
Anton Hansson | cf27a3d | 2018-06-27 18:25:33 +0100 | [diff] [blame] | 23 | |
Dario Freni | 99f5e40 | 2019-12-06 15:47:23 +0000 | [diff] [blame] | 24 | # Enable updating of APEXes |
| 25 | $(call inherit-product, $(SRC_TARGET_DIR)/product/updatable_apex.mk) |
| 26 | |
Anton Hansson | bfa4338 | 2018-09-27 13:48:17 +0100 | [diff] [blame] | 27 | # Shared java libs |
| 28 | PRODUCT_PACKAGES += \ |
| 29 | com.android.nfc_extras \ |
| 30 | |
Anton Hansson | 017e68e | 2018-09-27 11:57:08 +0100 | [diff] [blame] | 31 | # Applications |
| 32 | PRODUCT_PACKAGES += \ |
Anton Hansson | 017e68e | 2018-09-27 11:57:08 +0100 | [diff] [blame] | 33 | LiveWallpapersPicker \ |
| 34 | PartnerBookmarksProvider \ |
Anton Hansson | da02e86 | 2018-10-16 17:17:36 +0100 | [diff] [blame] | 35 | PresencePolling \ |
Anton Hansson | 017e68e | 2018-09-27 11:57:08 +0100 | [diff] [blame] | 36 | RcsService \ |
Anton Hansson | 017e68e | 2018-09-27 11:57:08 +0100 | [diff] [blame] | 37 | Stk \ |
Anton Hansson | da77c52 | 2019-01-03 16:48:55 +0000 | [diff] [blame] | 38 | Tag \ |
Anton Hansson | cac5bff | 2018-11-06 10:58:44 +0000 | [diff] [blame] | 39 | TimeZoneUpdater \ |
Anton Hansson | 017e68e | 2018-09-27 11:57:08 +0100 | [diff] [blame] | 40 | |
Anton Hansson | deec280 | 2018-09-27 11:07:38 +0100 | [diff] [blame] | 41 | # OTA support |
Anton Hansson | 33611b1 | 2018-08-21 16:17:55 +0100 | [diff] [blame] | 42 | PRODUCT_PACKAGES += \ |
Anton Hansson | 91fddbb | 2019-01-25 11:07:15 +0000 | [diff] [blame] | 43 | recovery-refresh \ |
Anton Hansson | 33611b1 | 2018-08-21 16:17:55 +0100 | [diff] [blame] | 44 | update_engine \ |
| 45 | update_verifier \ |
| 46 | |
Anton Hansson | 2df4bce | 2018-09-28 15:18:53 +0100 | [diff] [blame] | 47 | # Wrapped net utils for /vendor access. |
Anton Hansson | 8879840 | 2018-11-13 15:19:34 +0000 | [diff] [blame] | 48 | PRODUCT_PACKAGES += netutils-wrapper-1.0 |
Anton Hansson | 2df4bce | 2018-09-28 15:18:53 +0100 | [diff] [blame] | 49 | |
Anton Hansson | aa23688 | 2018-10-16 17:34:33 +0100 | [diff] [blame] | 50 | # Charger images |
Anton Hansson | 8879840 | 2018-11-13 15:19:34 +0000 | [diff] [blame] | 51 | PRODUCT_PACKAGES += charger_res_images |
Anton Hansson | aa23688 | 2018-10-16 17:34:33 +0100 | [diff] [blame] | 52 | |
Anton Hansson | deec280 | 2018-09-27 11:07:38 +0100 | [diff] [blame] | 53 | # system_other support |
| 54 | PRODUCT_PACKAGES += \ |
| 55 | cppreopts.sh \ |
| 56 | otapreopt_script \ |
| 57 | |
Anton Hansson | c941007 | 2018-09-27 15:43:22 +0100 | [diff] [blame] | 58 | # Bluetooth libraries |
| 59 | PRODUCT_PACKAGES += \ |
| 60 | audio.a2dp.default \ |
| 61 | audio.hearing_aid.default \ |
| 62 | |
Anton Hansson | 8af128d | 2018-11-06 17:29:32 +0000 | [diff] [blame] | 63 | # For ringtones that rely on forward lock encryption |
| 64 | PRODUCT_PACKAGES += libfwdlockengine |
| 65 | |
Steven Moreland | bf4fd54 | 2019-10-08 09:28:30 -0700 | [diff] [blame] | 66 | # System libraries commonly depended on by things on the system_ext or product partitions. |
| 67 | # These lists will be pruned periodically. |
Anton Hansson | 6d8a179 | 2018-11-20 13:33:27 +0000 | [diff] [blame] | 68 | PRODUCT_PACKAGES += \ |
Anton Hansson | 1f6e024 | 2018-11-26 16:42:57 +0000 | [diff] [blame] | 69 | android.hardware.biometrics.fingerprint@2.1 \ |
Anton Hansson | 6d8a179 | 2018-11-20 13:33:27 +0000 | [diff] [blame] | 70 | android.hardware.radio@1.0 \ |
| 71 | android.hardware.radio@1.1 \ |
| 72 | android.hardware.radio@1.2 \ |
Justin Yun | bfe4a1c | 2019-08-26 17:09:27 +0900 | [diff] [blame] | 73 | android.hardware.radio@1.3 \ |
| 74 | android.hardware.radio@1.4 \ |
Anton Hansson | 6d8a179 | 2018-11-20 13:33:27 +0000 | [diff] [blame] | 75 | android.hardware.radio.config@1.0 \ |
| 76 | android.hardware.radio.deprecated@1.0 \ |
| 77 | android.hardware.secure_element@1.0 \ |
Ahmed ElArabawy | 69e62af | 2019-01-04 13:39:20 -0800 | [diff] [blame] | 78 | android.hardware.wifi@1.0 \ |
Anton Hansson | 6d8a179 | 2018-11-20 13:33:27 +0000 | [diff] [blame] | 79 | libaudio-resampler \ |
Mikhail Naganov | 4fc7e41 | 2019-10-16 10:06:50 -0700 | [diff] [blame] | 80 | libaudiohal \ |
Anton Hansson | 6f964f5 | 2019-04-11 17:00:24 +0100 | [diff] [blame] | 81 | libdrm \ |
Anton Hansson | 6d8a179 | 2018-11-20 13:33:27 +0000 | [diff] [blame] | 82 | liblogwrap \ |
| 83 | liblz4 \ |
| 84 | libminui \ |
Anton Hansson | 1f6e024 | 2018-11-26 16:42:57 +0000 | [diff] [blame] | 85 | libnl \ |
Anton Hansson | 6d8a179 | 2018-11-20 13:33:27 +0000 | [diff] [blame] | 86 | libprotobuf-cpp-full \ |
Anton Hansson | 6d8a179 | 2018-11-20 13:33:27 +0000 | [diff] [blame] | 87 | |
Steven Moreland | bf4fd54 | 2019-10-08 09:28:30 -0700 | [diff] [blame] | 88 | # These libraries are empty and have been combined into libhidlbase, but are still depended |
| 89 | # on by things off /system. |
| 90 | # TODO(b/135686713): remove these |
| 91 | PRODUCT_PACKAGES += \ |
| 92 | libhidltransport \ |
| 93 | libhwbinder \ |
| 94 | |
Anton Hansson | 28e0f03 | 2018-10-17 09:08:27 +0100 | [diff] [blame] | 95 | PRODUCT_PACKAGES_DEBUG += \ |
Anton Hansson | 36c5d0d | 2018-10-16 16:15:39 +0100 | [diff] [blame] | 96 | avbctl \ |
| 97 | bootctl \ |
Anton Hansson | 36c5d0d | 2018-10-16 16:15:39 +0100 | [diff] [blame] | 98 | tinycap \ |
Howard Chen | 2f6bb93 | 2020-05-20 15:06:20 +0800 | [diff] [blame] | 99 | tinyhostless \ |
Anton Hansson | 36c5d0d | 2018-10-16 16:15:39 +0100 | [diff] [blame] | 100 | tinymix \ |
| 101 | tinypcminfo \ |
Howard Chen | 2f6bb93 | 2020-05-20 15:06:20 +0800 | [diff] [blame] | 102 | tinyplay \ |
Anton Hansson | 36c5d0d | 2018-10-16 16:15:39 +0100 | [diff] [blame] | 103 | update_engine_client \ |
| 104 | |
Dan Willemsen | 3d05a08 | 2019-02-22 23:06:03 +0000 | [diff] [blame] | 105 | PRODUCT_HOST_PACKAGES += \ |
| 106 | tinyplay |
| 107 | |
Hongguang Chen | 370a65b | 2020-08-11 10:20:48 -0700 | [diff] [blame] | 108 | # Enable configurable audio policy |
| 109 | PRODUCT_PACKAGES += \ |
| 110 | libaudiopolicyengineconfigurable \ |
| 111 | libpolicy-subsystem |
| 112 | |
Justin Yun | c0b883f | 2019-10-23 12:54:09 +0900 | [diff] [blame] | 113 | # Include all zygote init scripts. "ro.zygote" will select one of them. |
| 114 | PRODUCT_COPY_FILES += \ |
Tom Cherry | 89eea96 | 2019-11-04 10:41:51 -0800 | [diff] [blame] | 115 | system/core/rootdir/init.zygote32.rc:system/etc/init/hw/init.zygote32.rc \ |
| 116 | system/core/rootdir/init.zygote64.rc:system/etc/init/hw/init.zygote64.rc \ |
Tom Cherry | 89eea96 | 2019-11-04 10:41:51 -0800 | [diff] [blame] | 117 | system/core/rootdir/init.zygote64_32.rc:system/etc/init/hw/init.zygote64_32.rc \ |
Justin Yun | c0b883f | 2019-10-23 12:54:09 +0900 | [diff] [blame] | 118 | |
SzuWei Lin | d7ae1bc | 2018-08-08 13:22:36 +0800 | [diff] [blame] | 119 | # Enable dynamic partition size |
| 120 | PRODUCT_USE_DYNAMIC_PARTITION_SIZE := true |
| 121 | |
Yo Chiang | 33b088d | 2019-09-26 17:29:18 +0800 | [diff] [blame] | 122 | PRODUCT_ENFORCE_RRO_TARGETS := * |
| 123 | |
Jeongik Cha | d99e77d | 2020-03-09 12:31:23 +0900 | [diff] [blame] | 124 | # TODO(b/150820813) Settings depends on static overlay, remove this after eliminating the dependency. |
| 125 | PRODUCT_ENFORCE_RRO_EXEMPTED_TARGETS := Settings |
| 126 | |
JaeMan | 20cdc90 | 2020-08-11 02:37:01 +0000 | [diff] [blame] | 127 | PRODUCT_NAME := generic_system |
Anton Hansson | cf27a3d | 2018-06-27 18:25:33 +0100 | [diff] [blame] | 128 | PRODUCT_BRAND := generic |
Anton Hansson | cf27a3d | 2018-06-27 18:25:33 +0100 | [diff] [blame] | 129 | |
Yo Chiang | 96949d3 | 2019-12-15 22:11:36 +0800 | [diff] [blame] | 130 | # Define /system partition-specific product properties to identify that /system |
JaeMan | 20cdc90 | 2020-08-11 02:37:01 +0000 | [diff] [blame] | 131 | # partition is generic_system. |
Yo Chiang | 96949d3 | 2019-12-15 22:11:36 +0800 | [diff] [blame] | 132 | PRODUCT_SYSTEM_NAME := mainline |
| 133 | PRODUCT_SYSTEM_BRAND := Android |
| 134 | PRODUCT_SYSTEM_MANUFACTURER := Android |
| 135 | PRODUCT_SYSTEM_MODEL := mainline |
| 136 | PRODUCT_SYSTEM_DEVICE := generic |
| 137 | |
Colin Cross | c3ad804 | 2020-06-11 11:25:05 -0700 | [diff] [blame] | 138 | _base_mk_allowed_list := |
Anton Hansson | cf27a3d | 2018-06-27 18:25:33 +0100 | [diff] [blame] | 139 | |
Colin Cross | c3ad804 | 2020-06-11 11:25:05 -0700 | [diff] [blame] | 140 | _my_allowed_list := $(_base_mk_allowed_list) |
Anton Hansson | cf27a3d | 2018-06-27 18:25:33 +0100 | [diff] [blame] | 141 | |
Anton Hansson | b65a5ba | 2018-10-18 13:40:22 +0100 | [diff] [blame] | 142 | # For mainline, system.img should be mounted at /, so we include ROOT here. |
Anton Hansson | 173b5e7 | 2018-07-02 15:01:35 +0100 | [diff] [blame] | 143 | _my_paths := \ |
Anton Hansson | dcb5ef1 | 2018-10-15 11:35:15 +0100 | [diff] [blame] | 144 | $(TARGET_COPY_OUT_ROOT)/ \ |
| 145 | $(TARGET_COPY_OUT_SYSTEM)/ \ |
Anton Hansson | 173b5e7 | 2018-07-02 15:01:35 +0100 | [diff] [blame] | 146 | |
Colin Cross | c3ad804 | 2020-06-11 11:25:05 -0700 | [diff] [blame] | 147 | $(call require-artifacts-in-path, $(_my_paths), $(_my_allowed_list)) |