blob: 74a3b193707f3e99419d14d46175a410044a181f [file] [log] [blame]
Anton Hanssoncf27a3d2018-06-27 18:25:33 +01001#
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 Hanssoncac1fc82018-07-10 17:25:52 +010017# This makefile is the basis of a generic system image for a handheld
18# device with no telephony.
19$(call inherit-product, $(SRC_TARGET_DIR)/product/handheld_system.mk)
Anton Hanssoncf27a3d2018-06-27 18:25:33 +010020
SzuWei Lind7ae1bc2018-08-08 13:22:36 +080021# Enable dynamic partition size
22PRODUCT_USE_DYNAMIC_PARTITION_SIZE := true
23
Anton Hanssoncf27a3d2018-06-27 18:25:33 +010024PRODUCT_NAME := mainline_system
25PRODUCT_BRAND := generic
26PRODUCT_SHIPPING_API_LEVEL := 28
27
Anton Hanssoncf27a3d2018-06-27 18:25:33 +010028_base_mk_whitelist := \
Anton Hanssoncf27a3d2018-06-27 18:25:33 +010029 recovery/root/etc/mke2fs.conf \
Tom Cherry12542bd2018-08-07 13:12:02 -070030 recovery/root/system/bin/init \
31 recovery/root/system/bin/ueventd \
32 recovery/root/system/lib64/ld-android.so \
33 recovery/root/system/lib64/libbase.so \
34 recovery/root/system/lib64/libc++.so \
35 recovery/root/system/lib64/libc.so \
36 recovery/root/system/lib64/libcrypto.so \
37 recovery/root/system/lib64/libcutils.so \
38 recovery/root/system/lib64/libdl.so \
39 recovery/root/system/lib64/liblog.so \
40 recovery/root/system/lib64/libm.so \
41 recovery/root/system/lib64/libpackagelistparser.so \
42 recovery/root/system/lib64/libpcre2.so \
43 recovery/root/system/lib64/libselinux.so \
44 recovery/root/system/lib64/libz.so \
Anton Hanssoncf27a3d2018-06-27 18:25:33 +010045
46_my_whitelist := $(_base_mk_whitelist)
47
Anton Hansson173b5e72018-07-02 15:01:35 +010048# Both /system and / are in system.img when PRODUCT_SHIPPING_API_LEVEL>=28.
49_my_paths := \
50 $(TARGET_COPY_OUT_ROOT) \
51 $(TARGET_COPY_OUT_SYSTEM) \
52
53$(call require-artifacts-in-path, $(_my_paths), $(_my_whitelist))