1#
2# Copyright (C) 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# Enable load module in parallel
18BOARD_BOOTCONFIG += androidboot.load_modules_parallel=true
19
20RELEASE_GOOGLE_PRODUCT_RADIO_DIR := $(RELEASE_GOOGLE_CHEETAH_RADIO_DIR)
21RELEASE_GOOGLE_BOOTLOADER_CHEETAH_DIR ?= pdk# Keep this for pdk TODO: b/327119000
22RELEASE_GOOGLE_PRODUCT_BOOTLOADER_DIR := bootloader/$(RELEASE_GOOGLE_BOOTLOADER_CHEETAH_DIR)
23$(call soong_config_set,pantah_bootloader,prebuilt_dir,$(RELEASE_GOOGLE_BOOTLOADER_CHEETAH_DIR))
24ifneq ($(filter trunk%, $(RELEASE_GOOGLE_BOOTLOADER_CHEETAH_DIR)),)
25$(call soong_config_set,pantah_fingerprint,prebuilt_dir,trunk)
26else
27$(call soong_config_set,pantah_fingerprint,prebuilt_dir,$(RELEASE_GOOGLE_BOOTLOADER_CHEETAH_DIR))
28endif
29
30# The modules which need to be loaded in sequential
31BOARD_KERNEL_CMDLINE += fips140.load_sequential=1
32BOARD_KERNEL_CMDLINE += exynos_drm.load_sequential=1
33
34TARGET_BOARD_INFO_FILE := device/google/pantah/board-info.txt
35TARGET_BOOTLOADER_BOARD_NAME := cheetah
36TARGET_SCREEN_DENSITY := 560
37BOARD_USES_GENERIC_AUDIO := true
38USES_DEVICE_GOOGLE_CLOUDRIPPER := true
39BOARD_KERNEL_CMDLINE += swiotlb=noforce
40
41include device/google/gs201/BoardConfig-common.mk
42-include vendor/google_devices/gs201/prebuilts/BoardConfigVendor.mk
43-include vendor/google_devices/cheetah/proprietary/BoardConfigVendor.mk
44include device/google/pantah-sepolicy/cheetah-sepolicy.mk
45include device/google/pantah/wifi/BoardConfig-wifi.mk
46