1# 2# Copyright 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# 18# All components inherited here go to system image 19# 20ifeq (,$(filter %_64,$(TARGET_PRODUCT))) 21$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk) 22else 23$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit_only.mk) 24endif 25$(call inherit-product, $(SRC_TARGET_DIR)/product/generic_system.mk) 26 27# Enable mainline checking 28PRODUCT_ENFORCE_ARTIFACT_PATH_REQUIREMENTS := strict 29 30# 31# All components inherited here go to system_ext image 32# 33$(call inherit-product, $(SRC_TARGET_DIR)/product/handheld_system_ext.mk) 34$(call inherit-product, $(SRC_TARGET_DIR)/product/telephony_system_ext.mk) 35 36# 37# All components inherited here go to product image 38# 39$(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_product.mk) 40 41# 42# All components inherited here go to vendor image 43# 44# TODO(b/136525499): move *_vendor.mk into the vendor makefile later 45$(call inherit-product, $(SRC_TARGET_DIR)/product/handheld_vendor.mk) 46$(call inherit-product, $(SRC_TARGET_DIR)/product/telephony_vendor.mk) 47 48$(call inherit-product, device/google/redfin/device-redfin.mk) 49$(call inherit-product-if-exists, vendor/google_devices/redfin/proprietary/device-vendor.mk) 50$(call inherit-product-if-exists, vendor/google_devices/redfin/prebuilts/device-vendor-redfin.mk) 51 52# Exclude features that are not available on AOSP devices. 53PRODUCT_COPY_FILES += \ 54 frameworks/native/data/etc/aosp_excluded_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/aosp_excluded_hardware.xml 55 56# Keep the VNDK APEX in /system partition for REL branches and Vendor Freeze targets 57# as these are expected to have stable API/ABI surfaces. 58ifneq (REL,$(PLATFORM_VERSION_CODENAME)) 59ifneq ($(PRODUCT_VENDOR_FREEZE_SYSTEM_BUILD),true) 60 PRODUCT_PACKAGES += com.android.vndk.current.on_vendor 61endif 62endif 63 64# Don't build super.img. 65PRODUCT_BUILD_SUPER_PARTITION := false 66 67# b/113232673 STOPSHIP deal with Qualcomm stuff later 68# PRODUCT_RESTRICT_VENDOR_FILES := all 69 70# b/189477034: Bypass build time check on uses_libs until vendor fixes all their apps 71PRODUCT_BROKEN_VERIFY_USES_LIBRARIES := true 72 73PRODUCT_MANUFACTURER := Google 74PRODUCT_BRAND := Android 75PRODUCT_NAME := aosp_redfin 76PRODUCT_DEVICE := redfin 77PRODUCT_MODEL := AOSP on redfin 78