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 | cf27a3d | 2018-06-27 18:25:33 +0100 | [diff] [blame] | 20 | |
Anton Hansson | bfa4338 | 2018-09-27 13:48:17 +0100 | [diff] [blame] | 21 | # Shared java libs |
| 22 | PRODUCT_PACKAGES += \ |
| 23 | com.android.nfc_extras \ |
| 24 | |
Anton Hansson | 017e68e | 2018-09-27 11:57:08 +0100 | [diff] [blame] | 25 | # Applications |
| 26 | PRODUCT_PACKAGES += \ |
| 27 | DMService \ |
| 28 | LiveWallpapersPicker \ |
| 29 | PartnerBookmarksProvider \ |
| 30 | RcsService \ |
| 31 | SafetyRegulatoryInfo \ |
| 32 | Stk \ |
| 33 | |
Anton Hansson | deec280 | 2018-09-27 11:07:38 +0100 | [diff] [blame] | 34 | # OTA support |
Anton Hansson | 33611b1 | 2018-08-21 16:17:55 +0100 | [diff] [blame] | 35 | PRODUCT_PACKAGES += \ |
| 36 | update_engine \ |
| 37 | update_verifier \ |
| 38 | |
Anton Hansson | 2df4bce | 2018-09-28 15:18:53 +0100 | [diff] [blame] | 39 | # Wrapped net utils for /vendor access. |
| 40 | PRODUCT_PACKAGES += \ |
| 41 | netutils-wrapper-1.0 \ |
| 42 | |
Anton Hansson | deec280 | 2018-09-27 11:07:38 +0100 | [diff] [blame] | 43 | # system_other support |
| 44 | PRODUCT_PACKAGES += \ |
| 45 | cppreopts.sh \ |
| 46 | otapreopt_script \ |
| 47 | |
Anton Hansson | c941007 | 2018-09-27 15:43:22 +0100 | [diff] [blame] | 48 | # Bluetooth libraries |
| 49 | PRODUCT_PACKAGES += \ |
| 50 | audio.a2dp.default \ |
| 51 | audio.hearing_aid.default \ |
| 52 | |
SzuWei Lin | d7ae1bc | 2018-08-08 13:22:36 +0800 | [diff] [blame] | 53 | # Enable dynamic partition size |
| 54 | PRODUCT_USE_DYNAMIC_PARTITION_SIZE := true |
| 55 | |
Anton Hansson | cf27a3d | 2018-06-27 18:25:33 +0100 | [diff] [blame] | 56 | PRODUCT_NAME := mainline_system |
| 57 | PRODUCT_BRAND := generic |
| 58 | PRODUCT_SHIPPING_API_LEVEL := 28 |
| 59 | |
Tao Bao | 696bb33 | 2018-08-17 16:27:01 -0700 | [diff] [blame] | 60 | _base_mk_whitelist := |
Anton Hansson | cf27a3d | 2018-06-27 18:25:33 +0100 | [diff] [blame] | 61 | |
| 62 | _my_whitelist := $(_base_mk_whitelist) |
| 63 | |
Anton Hansson | 173b5e7 | 2018-07-02 15:01:35 +0100 | [diff] [blame] | 64 | # Both /system and / are in system.img when PRODUCT_SHIPPING_API_LEVEL>=28. |
Tom Cherry | 16f45d6 | 2018-09-26 15:56:49 -0700 | [diff] [blame] | 65 | # Though we do have a new ramdisk partition for logical partitions. |
Anton Hansson | 173b5e7 | 2018-07-02 15:01:35 +0100 | [diff] [blame] | 66 | _my_paths := \ |
Anton Hansson | 46bf4b5 | 2018-10-15 10:13:35 +0000 | [diff] [blame] | 67 | $(TARGET_COPY_OUT_ROOT) \ |
| 68 | $(TARGET_COPY_OUT_SYSTEM) \ |
| 69 | $(TARGET_COPY_OUT_RAMDISK) \ |
Anton Hansson | 173b5e7 | 2018-07-02 15:01:35 +0100 | [diff] [blame] | 70 | |
| 71 | $(call require-artifacts-in-path, $(_my_paths), $(_my_whitelist)) |