COMMON_PATH := device/amlogic/g12-common
-# GPU
-TARGET_AMLOGIC_GPU_ARCH ?= bifrost
-
## HIDL
DEVICE_MANIFEST_FILE += $(COMMON_PATH)/manifest.xml
BOARD_KERNEL_CMDLINE += console=ttyS0,115200 no_console_suspend
endif
+## Kernel modules
+TARGET_KERNEL_EXT_MODULE_ROOT := kernel/amlogic/kernel-modules
+TARGET_KERNEL_EXT_MODULES += \
+ mali-driver/bifrost \
+ media-4.9
+
+ifneq ($(TARGET_HAS_TEE),false)
+TARGET_KERNEL_EXT_MODULES += \
+ optee
+endif
+
+TARGET_MODULE_ALIASES += \
+ mali_kbase.ko:mali.ko
+
## Partitions
SSI_PARTITIONS := product system system_ext
TREBLE_PARTITIONS := odm vendor
PRODUCT_PACKAGES += \
fstab.amlogic
-## Kernel Modules
-PRODUCT_PACKAGES += \
- mali \
- media
-
-ifneq ($(TARGET_HAS_TEE),false)
-PRODUCT_PACKAGES += \
- optee-module
-endif
-
## Keymaster
ifneq ($(TARGET_HAS_TEE),false)
PRODUCT_PACKAGES += \
},
{
"repository": "android_hardware_amlogic_kernel-modules_mali-driver",
- "target_path": "hardware/amlogic/kernel-modules/mali-driver"
+ "target_path": "kernel/amlogic/kernel-modules/mali-driver"
},
{
"repository": "android_hardware_amlogic_kernel-modules_media",
- "target_path": "hardware/amlogic/kernel-modules/media"
+ "target_path": "kernel/amlogic/kernel-modules/media-4.9"
},
{
"repository": "android_hardware_amlogic_kernel-modules_optee",
- "target_path": "hardware/amlogic/kernel-modules/optee"
+ "target_path": "kernel/amlogic/kernel-modules/optee"
},
{
"repository": "android_kernel_amlogic_linux-4.9",