• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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# Enable sparse on all filesystem images
18TARGET_USERIMAGES_SPARSE_EROFS_DISABLED ?= false
19TARGET_USERIMAGES_SPARSE_EXT_DISABLED ?= false
20TARGET_USERIMAGES_SPARSE_F2FS_DISABLED ?= false
21
22#
23# arm64 target for Trout
24#
25ifndef TARGET_BOOTLOADER_BOARD_NAME
26TARGET_BOOTLOADER_BOARD_NAME := trout
27endif
28
29BOARD_BOOT_HEADER_VERSION := 3
30
31-include device/google/cuttlefish/vsoc_arm64/BoardConfig.mk
32
33# Reset this variable to re-enable ramdisk.
34BOARD_INIT_BOOT_IMAGE_PARTITION_SIZE :=
35
36# Android Bluetooth stack configuration
37LOCAL_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR ?= device/google/trout/product_files/bluetooth
38BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(LOCAL_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR)
39
40# Turn off AVB so that trout can boot
41BOARD_AVB_MAKE_VBMETA_IMAGE_ARGS += --flag 2
42BOARD_KERNEL_CMDLINE += androidboot.verifiedbootstate=orange
43
44# Set SELinux to permissive mode for trout
45BOARD_KERNEL_CMDLINE += androidboot.selinux=permissive
46BOARD_KERNEL_CMDLINE += enforcing=0
47
48# Declare trout as a Cuttlefish HW
49BOARD_KERNEL_CMDLINE += androidboot.hardware=cutf_cvm
50BOARD_KERNEL_CMDLINE += androidboot.serialno=CUTTLEFISHCVD01
51BOARD_KERNEL_CMDLINE += androidboot.cf_devcfg=1
52
53# Set GPU properties
54BOARD_KERNEL_CMDLINE += androidboot.cpuvulkan.version=0
55BOARD_KERNEL_CMDLINE += androidboot.hardware.gralloc=minigbm
56BOARD_KERNEL_CMDLINE += androidboot.hardware.hwcomposer=ranchu
57BOARD_KERNEL_CMDLINE += androidboot.hardware.egl=mesa
58BOARD_KERNEL_CMDLINE += androidboot.hardware.hwcomposer.mode=client
59BOARD_KERNEL_CMDLINE += androidboot.hardware.hwcomposer.display_finder_mode=drm
60BOARD_KERNEL_CMDLINE += androidboot.lcd_density=160
61
62# Add WiFi configuration for VirtWifi network
63BOARD_KERNEL_CMDLINE += androidboot.wifi_mac_prefix=5554
64
65# Add default fstab settings
66BOARD_KERNEL_CMDLINE += androidboot.fstab_name=fstab androidboot.fstab_suffix=trout
67