[meta-ti] [PATCH] make linux-ti-staging kernel origin configurable

Peter A. Bigot pab at pabigot.com
Fri Sep 5 05:34:42 PDT 2014


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(-)

-- 
1.8.5.5



More information about the meta-ti mailing list