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
20# The modules which need to be loaded in sequential
21BOARD_KERNEL_CMDLINE += fips140.load_sequential=1
22BOARD_KERNEL_CMDLINE += exynos_drm.load_sequential=1
23BOARD_KERNEL_CMDLINE += g2d.load_sequential=1
24BOARD_KERNEL_CMDLINE += samsung_iommu_v9.load_sequential=1
25
26TARGET_BOARD_INFO_FILE := device/google/shusky/board-info.txt
27TARGET_BOOTLOADER_BOARD_NAME := husky
28
29RELEASE_GOOGLE_PRODUCT_RADIO_DIR := $(RELEASE_GOOGLE_HUSKY_RADIO_DIR)
30RELEASE_GOOGLE_PRODUCT_RADIOCFG_DIR := $(RELEASE_GOOGLE_HUSKY_RADIOCFG_DIR)
31RELEASE_GOOGLE_BOOTLOADER_HUSKY_DIR ?= pdk# Keep this for pdk TODO: b/327119000
32RELEASE_GOOGLE_PRODUCT_BOOTLOADER_DIR := bootloader/$(RELEASE_GOOGLE_BOOTLOADER_HUSKY_DIR)
33$(call soong_config_set,shusky_bootloader,prebuilt_dir,$(RELEASE_GOOGLE_BOOTLOADER_HUSKY_DIR))
34
35ifdef PHONE_CAR_BOARD_PRODUCT
36    include vendor/auto/embedded/products/$(PHONE_CAR_BOARD_PRODUCT)/BoardConfig.mk
37else
38    TARGET_SCREEN_DENSITY := 480
39endif
40
41BOARD_USES_GENERIC_AUDIO := true
42USES_DEVICE_GOOGLE_SHUSKY := true
43BOARD_KERNEL_CMDLINE += swiotlb=noforce
44BOARD_KERNEL_CMDLINE += disable_dma32=on
45
46# Wifi
47WIFI_FEATURE_REAR_CAMERA_SAR := true
48$(call soong_config_set,wifi,feature_rear_camera_sar,$(WIFI_FEATURE_REAR_CAMERA_SAR))
49
50include device/google/shusky/BoardConfig-shusky-common.mk
51include device/google/shusky/device-shusky-common.mk
52
53include device/google/zuma/BoardConfig-common.mk
54-include vendor/google_devices/zuma/prebuilts/BoardConfigVendor.mk
55-include vendor/google_devices/husky/proprietary/BoardConfigVendor.mk
56include device/google/shusky-sepolicy/husky-sepolicy.mk
57include device/google/shusky/wifi/BoardConfig-wifi.mk
58
59ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
60-include device/google/common/etm/5_15/BoardUserdebugModules.mk
61endif
62