Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 1 | # |
| 2 | # Copyright 2020 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 | # |
| 18 | # All components inherited here go to system image |
| 19 | # |
Gina Ko | d8a9805 | 2022-03-14 18:26:30 +0000 | [diff] [blame] | 20 | DEVICE_IS_64BIT_ONLY ?= $(if $(filter %_64,$(TARGET_PRODUCT)),true,false) |
Gina Ko | 18bd11a | 2022-02-25 17:05:22 -0800 | [diff] [blame] | 21 | |
| 22 | ifeq ($(DEVICE_IS_64BIT_ONLY),true) |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 23 | $(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit_only.mk) |
Gina Ko | 18bd11a | 2022-02-25 17:05:22 -0800 | [diff] [blame] | 24 | else |
| 25 | $(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk) |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 26 | endif |
Pat Tjin | dae7d3e | 2022-01-11 15:10:07 -0800 | [diff] [blame] | 27 | |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 28 | $(call inherit-product, $(SRC_TARGET_DIR)/product/generic_system.mk) |
| 29 | |
| 30 | # Enable CSI checking |
| 31 | PRODUCT_ENFORCE_ARTIFACT_PATH_REQUIREMENTS := relaxed |
| 32 | |
| 33 | # |
| 34 | # All components inherited here go to system_ext image |
| 35 | # |
| 36 | $(call inherit-product, $(SRC_TARGET_DIR)/product/handheld_system_ext.mk) |
| 37 | $(call inherit-product, $(SRC_TARGET_DIR)/product/telephony_system_ext.mk) |
| 38 | |
| 39 | # |
| 40 | # All components inherited here go to product image |
| 41 | # |
| 42 | $(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_product.mk) |
| 43 | |
| 44 | # |
| 45 | # All components inherited here go to vendor image |
| 46 | # |
| 47 | # TODO(b/136525499): move *_vendor.mk into the vendor makefile later |
| 48 | $(call inherit-product, $(SRC_TARGET_DIR)/product/handheld_vendor.mk) |
| 49 | $(call inherit-product, $(SRC_TARGET_DIR)/product/telephony_vendor.mk) |
| 50 | |
| 51 | #$(call inherit-product, device/google/gs101/device.mk) |
| 52 | #$(call inherit-product-if-exists, vendor/google_devices/gs101/proprietary/device-vendor.mk) |
| 53 | |
| 54 | # TODO: fix |
| 55 | # PRODUCT_RESTRICT_VENDOR_FILES := all |