-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdevice.mk
66 lines (53 loc) · 1.92 KB
/
device.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#
# Copyright (C) 2024 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
# Inherit from common
$(call inherit-product, device/virt/virt-common/virt-common.mk)
DEVICE_PATH := device/virt/vboxware
# Graphics (Composer)
PRODUCT_PACKAGES += \
android.hardware.graphics.composer@2.1-service \
android.hardware.graphics.composer@2.4-service \
hwcomposer.drm
# Graphics (Gralloc)
PRODUCT_PACKAGES += \
android.hardware.graphics.allocator-service.minigbm_vboxware \
android.hardware.graphics.mapper@4.0-impl.minigbm_vboxware \
gralloc.minigbm_vboxware \
mapper.minigbm_vboxware
PRODUCT_PACKAGES += \
android.hardware.graphics.allocator@2.0-impl \
android.hardware.graphics.allocator@2.0-service \
android.hardware.graphics.mapper@2.0-impl-2.1
# Init
PRODUCT_COPY_FILES += \
$(DEVICE_PATH)/configs/init/init.vboxware.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.vboxware.rc
PRODUCT_PACKAGES += \
fstab.vboxware
# Input
PRODUCT_COPY_FILES += \
$(DEVICE_PATH)/configs/.emptyfile:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/VirtualBox_mouse_integration.kl
# Kernel
TARGET_PREBUILT_KERNEL_USE ?= 6.6
TARGET_PREBUILT_KERNEL_DIR := device/virt/kernel-vboxware/$(TARGET_PREBUILT_KERNEL_USE)
TARGET_KERNEL_SOURCE := kernel/virt/virtio
ifneq ($(wildcard $(TARGET_KERNEL_SOURCE)/Makefile),)
$(warning Using source built kernel)
else ifneq ($(wildcard $(TARGET_PREBUILT_KERNEL_DIR)/kernel),)
PRODUCT_COPY_FILES += $(TARGET_PREBUILT_KERNEL_DIR)/kernel:kernel
$(warning Using prebuilt kernel from $(TARGET_PREBUILT_KERNEL_DIR)/kernel)
endif
# Recovery
PRODUCT_COPY_FILES += \
$(DEVICE_PATH)/configs/init/init.recovery.vboxware.rc:$(TARGET_COPY_OUT_RECOVERY)/root/init.recovery.vboxware.rc
# Soong namespaces
PRODUCT_SOONG_NAMESPACES += \
$(DEVICE_PATH)
# Vendor ramdisk
PRODUCT_PACKAGES += \
fstab.vboxware.vendor_ramdisk
# Vendor service manager
PRODUCT_PACKAGES += \
vndservicemanager