make linux-ti-staging kernel origin configurable
PATCH 1/1 make linux-ti-staging kernel origin configurable
Thanks to Denys for the details on linux-ti-staging's scope and comparison with linux-mainline at
https://lists.yoctoproject.org/pipermail/meta-ti/2014-September/005176.html
I'm assuming the goal to push upstream everything in ti-kernel that they'll accept, and because there's a lot there it's going to take some time. I'm very glad to see that the beagleboard kernel
https://github.com/beagleboard/linux is tracking ti-kernel closely.
The attached patch is submitted in hopes it can be used for the current and future linux-ti-staging recipes to make it easier for people to try patches and combinations that are based on TI's kernel while remaining within the Yocto Project environment.
As a specific example: for my own use I need device tree modifications and in-progress drivers. It's a lot simpler to manage those by keeping them in a local git kernel repository that merges in changes from various sources. The linux-yocto kernel infrastructure supports this when I override SRC_URI in a bbappends file, because the kernel is the only object listed there.
linux-ti-staging's configuration infrastructure adds references to fragments and config files that are in the meta-ti layer, which means I can't just override SRC_URI without having to replicate its contents in my bbappends, which is fragile as I might miss important changes.
Specifying the kernel URI and protocol as variables lets me do the following in a bbappends, which decouples me from meta-ti:
SRCREV = "872959a8eb82aa696bbd936bc052ec9020d9cd6f" KERNEL_GIT_URI = "git:///prj/oe/linux" KERNEL_GIT_PROTOCOL = "file"
BRANCH = "ti-kernel/ti-3.14.y/dev"
# fhandle: CONFIG_FHANDLE=y required for systemd getty # kconfig: make running config available from procfs
SRC_URI =+ "\
file://fhandle.cfg \
file://kconfig.cfg \"
KERNEL_CONFIG_FRAGMENTS =+ "\
${WORKDIR}/fhandle.cfg \
${WORKDIR}/kconfig.cfg \"
This also makes it easy to integrate the beagleboard configurations into YP for people who need meta-ti anyway.
Peter A. Bigot (1):
linux-ti-staging_3.14: make kernel origin configurable
recipes-kernel/linux/linux-ti-staging_3.14.bb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
Signature · 1 line
1.8.5.5
PATCH 1/1 linux-ti-staging_3.14: make kernel origin configurable
Using variables for KERNEL_GIT_URI and KERNEL_GIT_PROTOCOL allows layer bbappends to specify local repositories to test of pending changes that are not available in the official TI kernel, without requiring duplication of config fragments specified in SRC_URI in the base recipe.
--- recipes-kernel/linux/linux-ti-staging_3.14.bb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
recipes-kernel/linux/linux-ti-staging_3.14.bb +3 -1
@@ -59,7 +59,9 @@ KERNEL_CONFIG_FRAGMENTS = "${KERNEL_CONFIG_DIR}/audio_display.cfg ${KERNEL_CONFI KERNEL_CONFIG_FRAGMENTS_append_ti33x = " ${WORKDIR}/non-smp.cfg" KERNEL_CONFIG_FRAGMENTS_append_ti43x = " ${WORKDIR}/non-smp.cfg" -SRC_URI = "git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git;protocol=git;branch=${BRANCH} \ +KERNEL_GIT_URI = "git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git" +KERNEL_GIT_PROTOCOL = "git" +SRC_URI = "${KERNEL_GIT_URI};protocol=${KERNEL_GIT_PROTOCOL};branch=${BRANCH} \ file://defconfig \ file://non-smp.cfg \ "
Signature · 1 line
1.8.5.5