mirror of
https://github.com/Evolution-X-Devices/device_google_redfin
synced 2026-02-01 05:34:34 +00:00
The Pixel 3 and 4 are using the identical RecoveryUI class. So consolidate them into the pixel common directory. This will ease the work to unify the vendor space /misc access later. Bug: 144810561 Test: wipe data in bramble and redfin Change-Id: I43b7d04fe65ce919eb5c81a39034f50ce2ca9626 Signed-off-by: Chenglu Lin <chenglulin@google.com>
76 lines
2.9 KiB
Makefile
76 lines
2.9 KiB
Makefile
#
|
|
# Copyright (C) 2018 The Android Open-Source Project
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
#
|
|
|
|
TARGET_BOOTLOADER_BOARD_NAME := redfin
|
|
TARGET_SCREEN_DENSITY := 440
|
|
TARGET_RECOVERY_UI_MARGIN_HEIGHT := 165
|
|
|
|
CAMERA_VSYNC_COUNT := 3
|
|
|
|
include device/google/redbull/BoardConfig-common.mk
|
|
include device/google/redfin-sepolicy/redfin-sepolicy.mk
|
|
|
|
TARGET_BOARD_INFO_FILE := device/google/redfin/board-info.txt
|
|
USES_DEVICE_GOOGLE_REDFIN := true
|
|
|
|
TARGET_BOARD_COMMON_PATH := device/google/redfin/sm7250
|
|
|
|
# DTBO partition definitions
|
|
BOARD_PREBUILT_DTBOIMAGE := device/google/redfin-kernel/dtbo.img
|
|
|
|
TARGET_FS_CONFIG_GEN := device/google/redfin/config.fs
|
|
|
|
# Kernel modules
|
|
ifeq (,$(filter-out redfin_kasan, $(TARGET_PRODUCT)))
|
|
BOARD_VENDOR_KERNEL_MODULES += \
|
|
$(wildcard device/google/redfin-kernel/kasan/*.ko)
|
|
else ifeq (,$(filter-out redfin_kernel_debug_memory, $(TARGET_PRODUCT)))
|
|
BOARD_VENDOR_KERNEL_MODULES += \
|
|
$(wildcard device/google/redfin-kernel/debug_memory/*.ko)
|
|
else ifeq (,$(filter-out redfin_kernel_debug_locking, $(TARGET_PRODUCT)))
|
|
BOARD_VENDOR_KERNEL_MODULES += \
|
|
$(wildcard device/google/redfin-kernel/debug_locking/*.ko)
|
|
else ifeq (,$(filter-out redfin_kernel_debug_hang, $(TARGET_PRODUCT)))
|
|
BOARD_VENDOR_KERNEL_MODULES += \
|
|
$(wildcard device/google/redfin-kernel/debug_hang/*.ko)
|
|
else ifeq (,$(filter-out redfin_kernel_debug_api, $(TARGET_PRODUCT)))
|
|
BOARD_VENDOR_KERNEL_MODULES += \
|
|
$(wildcard device/google/redfin-kernel/debug_api/*.ko)
|
|
else
|
|
BOARD_VENDOR_KERNEL_MODULES += \
|
|
$(wildcard device/google/redfin-kernel/*.ko)
|
|
endif
|
|
|
|
# DTB
|
|
ifeq (,$(filter-out redfin_kasan, $(TARGET_PRODUCT)))
|
|
BOARD_PREBUILT_DTBIMAGE_DIR := device/google/redfin-kernel/kasan
|
|
else ifeq (,$(filter-out redfin_kernel_debug_memory, $(TARGET_PRODUCT)))
|
|
BOARD_PREBUILT_DTBIMAGE_DIR := device/google/redfin-kernel/debug_memory
|
|
else ifeq (,$(filter-out redfin_kernel_debug_locking, $(TARGET_PRODUCT)))
|
|
BOARD_PREBUILT_DTBIMAGE_DIR := device/google/redfin-kernel/debug_locking
|
|
else ifeq (,$(filter-out redfin_kernel_debug_hang, $(TARGET_PRODUCT)))
|
|
BOARD_PREBUILT_DTBIMAGE_DIR := device/google/redfin-kernel/debug_hang
|
|
else ifeq (,$(filter-out redfin_kernel_debug_api, $(TARGET_PRODUCT)))
|
|
BOARD_PREBUILT_DTBIMAGE_DIR := device/google/redfin-kernel/debug_api
|
|
else
|
|
BOARD_PREBUILT_DTBIMAGE_DIR := device/google/redfin-kernel
|
|
endif
|
|
|
|
# Testing related defines
|
|
#BOARD_PERFSETUP_SCRIPT := platform_testing/scripts/perf-setup/r3-setup.sh
|
|
|
|
-include vendor/google_devices/redfin/proprietary/BoardConfigVendor.mk
|