-
Notifications
You must be signed in to change notification settings - Fork 1
/
BoardConfig.mk
44 lines (35 loc) · 1.02 KB
/
BoardConfig.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#
# Copyright (C) 2024 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
# Boot manager
TARGET_BOOT_MANAGER ?= grub
# Inherit from common
include device/virt/virtio-common/BoardConfigCommon.mk
USES_DEVICE_VIRT_VIRTIO_ARM64 := true
DEVICE_PATH := device/virt/virtio_arm64
# Arch
TARGET_ARCH := arm64
TARGET_ARCH_VARIANT := armv8-a
TARGET_CPU_ABI := arm64-v8a
TARGET_CPU_ABI2 :=
TARGET_CPU_VARIANT := generic
TARGET_2ND_ARCH := arm
TARGET_2ND_ARCH_VARIANT := armv8-a
TARGET_2ND_CPU_ABI := armeabi-v7a
TARGET_2ND_CPU_ABI2 := armeabi
TARGET_2ND_CPU_VARIANT := generic
# GRUB
TARGET_GRUB_ARCH := arm64-efi
TARGET_GRUB_HOST_PREBUILT_TAG := linux-arm64
TARGET_GRUB_BOOT_EFI_PREBUILT := $(DEVICE_PATH)/bootmgr/grub/prebuilt/boot/BOOTAA64.EFI
TARGET_GRUB_INSTALL_EFI_PREBUILT := $(DEVICE_PATH)/bootmgr/grub/prebuilt/install/BOOTAA64.EFI
# Kernel
BOARD_KERNEL_CMDLINE += \
console=ttyAMA0
BOARD_KERNEL_IMAGE_NAME := Image
TARGET_KERNEL_ARCH := arm64
# SELinux
BOARD_VENDOR_SEPOLICY_DIRS += \
$(DEVICE_PATH)/sepolicy/vendor