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# riscv64 (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
27#HOST_CROSS_OS := linux_musl
28#HOST_CROSS_ARCH := arm64
29#HOST_CROSS_2ND_ARCH :=
30
31# Temporary hack while prebuilt modules are missing riscv64.
32ALLOW_MISSING_DEPENDENCIES := true
33
34TARGET_KERNEL_ARCH ?= $(TARGET_ARCH)
35TARGET_KERNEL_USE ?= mainline
36KERNEL_MODULES_PATH := device/google/cuttlefish_prebuilts/kernel/$(TARGET_KERNEL_USE)-$(TARGET_KERNEL_ARCH)
37TARGET_KERNEL_PATH := $(KERNEL_MODULES_PATH)/kernel-$(TARGET_KERNEL_USE)
38SYSTEM_DLKM_SRC ?= $(KERNEL_MODULES_PATH)/system_dlkm
39
40-include device/google/cuttlefish/shared/minidroid/BoardConfig.mk
41