1
0
mirror of https://git.yoctoproject.org/meta-ti synced 2026-05-30 07:20:53 +00:00

linux-ti-*: Add filtering for which dtb/dtbo to include

We often carry more dtbs/dtbos in our kernel than we have upstreamed.
The inclusion of all of the dtb/dtbo in the KERNEL_DEVICETREE has become
problematic as we start testing the linux-next and 6.1 as part of our
LTS migration.  To address this issue we are adding in two step method
for managing the KERNEL_DEVICETREE.

Going forward we will only accept dtb/dtbo in KERNEL_DEVICETREE if it is
available in upstream.  This way we ensure that the variable is more
accurate for whichever kernel you might be looking at.  We have also
added a new variable KERNEL_DEVICETREE_PREFIX which our kernel recipes
will use to auto set KERNEL_DEVICETREE based on what files are in the
kernel and not a fixed list in the conf files.

Signed-off-by: Ryan Eatmon <reatmon@ti.com>
Signed-off-by: Andrew Davis <afd@ti.com>
Signed-off-by: Ryan Eatmon <reatmon@ti.com>
This commit is contained in:
Ryan Eatmon
2023-03-17 10:20:53 -05:00
parent 2d5d741f9b
commit 4baa0cbd9b
20 changed files with 115 additions and 189 deletions
@@ -19,21 +19,6 @@ PV = "6.1.0-rc1+git${SRCPV}"
SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git;protocol=https;branch=master"
def list_dtbs(dts_dir, dts_subdir):
import os
import fnmatch
matches = []
for root,dirnames,filenames in os.walk(os.path.join(dts_dir, dts_subdir)):
for filename in fnmatch.filter(filenames, '*.dtb'):
matches.append(os.path.join(dts_subdir, filename))
for filename in fnmatch.filter(filenames, '*.dtbo'):
matches.append(os.path.join(dts_subdir, filename))
return ' '.join(matches)
DTS_SUBDIR = ""
DTS_SUBDIR:k3 = "ti"
KERNEL_DEVICETREE = "${@list_dtbs('${B}/arch/${ARCH}/boot/dts', '${DTS_SUBDIR}')}"
DEFCONFIG_NAME = "multi_v7_defconfig"
DEFCONFIG_NAME:k3 = "defconfig"
KERNEL_CONFIG_COMMAND = "oe_runmake -C ${S} O=${B} ${DEFCONFIG_NAME}"