- 264 license table entries with exact download URLs (224/264 resolved) - Complete sources/ directory with all BitBake recipes - Build configuration: tqma6ul-multi-mba6ulx, spaetzle (musl) - Full traceability for Softwarefreigabeantrag - GCC 13.4.0, Linux 6.6.102, U-Boot 2023.04, musl 1.2.4 - License distribution: GPL-2.0 (24), MIT (23), GPL-2.0+ (18), BSD-3 (16)
64 lines
2.4 KiB
Plaintext
64 lines
2.4 KiB
Plaintext
# Freescale Kernel Vivante Kernel Driver handler
|
|
#
|
|
# Enable the kernel to provide or not the Vivante kernel driver and
|
|
# dynamically set the proper providers per machine.
|
|
#
|
|
# The following options are supported:
|
|
#
|
|
# MACHINE_HAS_VIVANTE_KERNEL_DRIVER_SUPPORT
|
|
#
|
|
# Machine does or does not have support for the Vivante kernel
|
|
# driver, options are:
|
|
#
|
|
# 0 - machine does not have Vivante GPU driver support
|
|
# 1 - machine has Vivante GPU driver support
|
|
#
|
|
# MACHINE_USES_VIVANTE_KERNEL_DRIVER_MODULE
|
|
#
|
|
# Machine uses the Vivante kernel driver as module, options are:
|
|
#
|
|
# 0 - enable the builtin kernel driver module
|
|
# 1 - enable the external kernel module
|
|
#
|
|
# Copyright 2015, 2016 (C) O.S. Systems Software LTDA.
|
|
# Released under the MIT license (see COPYING.MIT for the terms)
|
|
|
|
# Handle Vivante kernel driver setting:
|
|
# 0 - machine does not have Vivante GPU driver support
|
|
# 1 - machine has Vivante GPU driver support
|
|
MACHINE_HAS_VIVANTE_KERNEL_DRIVER_SUPPORT ??= "0"
|
|
|
|
# Use Vivante kernel driver module:
|
|
# 0 - enable the builtin kernel driver module
|
|
# 1 - enable the external kernel module
|
|
MACHINE_USES_VIVANTE_KERNEL_DRIVER_MODULE ??= "${@d.getVar('MACHINE_HAS_VIVANTE_KERNEL_DRIVER_SUPPORT', False) or '0'}"
|
|
|
|
python fsl_vivante_kernel_driver_handler () {
|
|
has_vivante_kernel_driver_support = e.data.getVar('MACHINE_HAS_VIVANTE_KERNEL_DRIVER_SUPPORT', True) or "0"
|
|
use_vivante_kernel_driver_module = e.data.getVar('MACHINE_USES_VIVANTE_KERNEL_DRIVER_MODULE', True) or "0"
|
|
|
|
if has_vivante_kernel_driver_support != "1":
|
|
return
|
|
|
|
if use_vivante_kernel_driver_module != "1":
|
|
e.data.appendVar('RPROVIDES:${KERNEL_PACKAGE_NAME}-base', ' ${MLPREFIX}kernel-module-imx-gpu-viv')
|
|
e.data.appendVar('RREPLACES:${KERNEL_PACKAGE_NAME}-base', ' ${MLPREFIX}kernel-module-imx-gpu-viv')
|
|
e.data.appendVar('RCONFLICTS:${KERNEL_PACKAGE_NAME}-base', ' ${MLPREFIX}kernel-module-imx-gpu-viv')
|
|
}
|
|
|
|
addhandler fsl_vivante_kernel_driver_handler
|
|
fsl_vivante_kernel_driver_handler[eventmask] = "bb.event.RecipePreFinalise"
|
|
|
|
do_configure:append () {
|
|
if [ "${MACHINE_HAS_VIVANTE_KERNEL_DRIVER_SUPPORT}" = "1" ]; then
|
|
config="${B}/.config"
|
|
|
|
sed -i "/CONFIG_MXC_GPU_VIV[ =]/d" $config
|
|
if [ "${MACHINE_USES_VIVANTE_KERNEL_DRIVER_MODULE}" = "1" ]; then
|
|
echo "# CONFIG_MXC_GPU_VIV is not set" >> $config
|
|
else
|
|
echo "CONFIG_MXC_GPU_VIV=y" >> $config
|
|
fi
|
|
fi
|
|
}
|