blob: 651ece6400d4ec9103c36008077a06364f19851a [file] [log] [blame]
Anton Hanssonc0c39cf2018-06-27 18:30:07 +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
17# TODO(hansson): change inheritance to core_minimal, then generic_no_telephony
18$(call inherit-product, $(SRC_TARGET_DIR)/product/base_system.mk)
19
20PRODUCT_NAME := mainline_system
21PRODUCT_BRAND := generic
22PRODUCT_SHIPPING_API_LEVEL := 28
23
24_selinux_policy_whitelist := \
25 vendor/etc/selinux/vndservice_contexts \
26 vendor/etc/selinux/plat_pub_versioned.cil \
27 vendor/etc/selinux/plat_sepolicy_vers.txt \
28 vendor/etc/selinux/precompiled_sepolicy \
29 vendor/etc/selinux/precompiled_sepolicy.plat_and_mapping.sha256 \
30 vendor/etc/selinux/vendor_file_contexts \
31 vendor/etc/selinux/vendor_hwservice_contexts \
32 vendor/etc/selinux/vendor_mac_permissions.xml \
33 vendor/etc/selinux/vendor_property_contexts \
34 vendor/etc/selinux/vendor_seapp_contexts \
35 vendor/etc/selinux/vendor_sepolicy.cil \
36
37_base_mk_whitelist := \
38 $(_selinux_policy_whitelist) \
39 recovery/root/etc/mke2fs.conf \
Anton Hanssonc0c39cf2018-06-27 18:30:07 +010040 vendor/lib/mediadrm/libdrmclearkeyplugin.so \
41 vendor/lib64/mediadrm/libdrmclearkeyplugin.so \
42
43_my_whitelist := $(_base_mk_whitelist)
44
Anton Hansson173b5e72018-07-02 15:01:35 +010045# Both /system and / are in system.img when PRODUCT_SHIPPING_API_LEVEL>=28.
46_my_paths := \
47 $(TARGET_COPY_OUT_ROOT) \
48 $(TARGET_COPY_OUT_SYSTEM) \
49
50$(call require-artifacts-in-path, $(_my_paths), $(_my_whitelist))