35 lines
1.2 KiB
BlitzBasic
35 lines
1.2 KiB
BlitzBasic
# Copyright (C) 2024,2025 Digi International Inc.
|
|
|
|
require recipes-kernel/linux/linux-dey.inc
|
|
|
|
SRCBRANCH = "v6.6.52/nxp/master"
|
|
SRCBRANCH:stm32mp2common = "v6.6.48/stm/master"
|
|
SRCREV = "${AUTOREV}"
|
|
SRCREV:stm32mp2common = "${AUTOREV}"
|
|
|
|
# Blacklist btnxpuart module. It will be managed by the bluetooth-init script
|
|
KERNEL_MODULE_PROBECONF += "btnxpuart"
|
|
module_conf_btnxpuart = "blacklist btnxpuart"
|
|
|
|
# ---------------------------------------------------------------------
|
|
# stub for devicetree which are located on digi directory
|
|
do_install:prepend:ccmp2() {
|
|
if [ -d "${B}/arch/${ARCH}/boot/dts/digi" ]; then
|
|
for dtbf in ${KERNEL_DEVICETREE}; do
|
|
install -m 0644 "${B}/arch/${ARCH}/boot/dts/digi/${dtbf}" "${B}/arch/${ARCH}/boot/dts/"
|
|
done
|
|
fi
|
|
}
|
|
|
|
do_install:append:ccmp2() {
|
|
if ${@bb.utils.contains('MACHINE_FEATURES','gpu','true','false',d)}; then
|
|
# when ACCEPT_EULA are filled
|
|
install -d ${D}/${sysconfdir}/modprobe.d/
|
|
echo "blacklist etnaviv" > ${D}/${sysconfdir}/modprobe.d/blacklist.conf
|
|
fi
|
|
}
|
|
|
|
FILES:${KERNEL_PACKAGE_NAME}-modules:ccmp2 += "${sysconfdir}/modprobe.d"
|
|
|
|
COMPATIBLE_MACHINE = "(ccimx6ul|ccimx8x|ccimx9|ccmp2)"
|