Anton Hansson | c0c39cf | 2018-06-27 18:30:07 +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 | |
| 17 | # TODO(hansson): change inheritance to core_minimal, then generic_no_telephony |
| 18 | $(call inherit-product, $(SRC_TARGET_DIR)/product/base_system.mk) |
| 19 | |
| 20 | PRODUCT_NAME := mainline_system |
| 21 | PRODUCT_BRAND := generic |
| 22 | PRODUCT_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 Hansson | c0c39cf | 2018-06-27 18:30:07 +0100 | [diff] [blame] | 40 | vendor/lib/mediadrm/libdrmclearkeyplugin.so \ |
| 41 | vendor/lib64/mediadrm/libdrmclearkeyplugin.so \ |
| 42 | |
| 43 | _my_whitelist := $(_base_mk_whitelist) |
| 44 | |
Anton Hansson | 173b5e7 | 2018-07-02 15:01:35 +0100 | [diff] [blame^] | 45 | # 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)) |