1#
2# Copyright 2022 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# risv64 (64-bit only) target for Cuttlefish
19#
20
21TARGET_BOARD_PLATFORM := vsoc_riscv64
22TARGET_ARCH := riscv64
23TARGET_ARCH_VARIANT :=
24TARGET_CPU_VARIANT := generic
25TARGET_CPU_ABI := riscv64
26
27AUDIOSERVER_MULTILIB := first
28
29
30ifndef RISCV64_BUILD_X86_64_HOST_TOOLS
31HOST_CROSS_OS := linux_musl
32HOST_CROSS_ARCH := arm64
33HOST_CROSS_2ND_ARCH :=
34endif
35# Include 64-bit mediaserver to support 64-bit only devices
36TARGET_DYNAMIC_64_32_MEDIASERVER := true
37# Temporary hack while prebuilt modules are missing riscv64.
38ALLOW_MISSING_DEPENDENCIES := true
39
40TARGET_KERNEL_ARCH ?= $(TARGET_ARCH)
41TARGET_KERNEL_USE ?= mainline
42KERNEL_MODULES_PATH := device/google/cuttlefish_prebuilts/kernel/$(TARGET_KERNEL_USE)-$(TARGET_KERNEL_ARCH)
43TARGET_KERNEL_PATH := $(KERNEL_MODULES_PATH)/kernel-$(TARGET_KERNEL_USE)
44SYSTEM_DLKM_SRC ?= $(KERNEL_MODULES_PATH)/system_dlkm
45
46-include device/google/cuttlefish/shared/BoardConfig.mk
47-include device/google/cuttlefish/shared/bluetooth/BoardConfig.mk
48-include device/google/cuttlefish/shared/camera/BoardConfig.mk
49-include device/google/cuttlefish/shared/gnss/BoardConfig.mk
50-include device/google/cuttlefish/shared/graphics/BoardConfig.mk
51-include device/google/cuttlefish/shared/identity/BoardConfig.mk
52-include device/google/cuttlefish/shared/reboot_escrow/BoardConfig.mk
53-include device/google/cuttlefish/shared/sensors/BoardConfig.mk
54-include device/google/cuttlefish/shared/swiftshader/BoardConfig.mk
55-include device/google/cuttlefish/shared/telephony/BoardConfig.mk
56-include device/google/cuttlefish/shared/vibrator/BoardConfig.mk
57-include device/google/cuttlefish/shared/virgl/BoardConfig.mk
58