diff options
author | Bruce Ashfield <bruce.ashfield@windriver.com> | 2016-09-07 21:08:45 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-09-08 08:25:11 +0100 |
commit | 81297ee22dbe3e8b6fa81cb6f67260e34fc657e2 (patch) | |
tree | 2a639c5e39cd10e7eb2b741b5b6749e356d72ebf /meta/classes/kernel-yocto.bbclass | |
parent | ce4ea7a730a7bec257218533b7c1fcb31134e25b (diff) | |
download | poky-81297ee22dbe3e8b6fa81cb6f67260e34fc657e2.tar.gz |
kernel-yocto: restore kernel-meta data detection for SRC_URI elements
Before the kernel tools were simplified and streamlined, there was code
which not only migrated a patch/cfg/scc to the kernel build tree, it
also migrated any subdirectories of those patches.
The effect of this data migration was that any other meta data in
a patch's directory structure would be available for processing.
While we don't want to do this migration anymore, it is possible to
check the path of any SRC_URI patches, and if they include a "kernel-meta"
subdirectory add it to the search path.
This restores the functionality without the old complexity.
(From OE-Core rev: 7ef7af5c03bad28faf380986f792f7f3d4d5944d)
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/kernel-yocto.bbclass')
-rw-r--r-- | meta/classes/kernel-yocto.bbclass | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/meta/classes/kernel-yocto.bbclass b/meta/classes/kernel-yocto.bbclass index 068378f067..f991f0219b 100644 --- a/meta/classes/kernel-yocto.bbclass +++ b/meta/classes/kernel-yocto.bbclass | |||
@@ -124,14 +124,19 @@ do_kernel_metadata() { | |||
124 | # for the update part of the process | 124 | # for the update part of the process |
125 | for f in ${feat_dirs}; do | 125 | for f in ${feat_dirs}; do |
126 | if [ -d "${WORKDIR}/$f/meta" ]; then | 126 | if [ -d "${WORKDIR}/$f/meta" ]; then |
127 | includes="$includes -I${WORKDIR}/$f/meta" | 127 | includes="$includes -I${WORKDIR}/$f/kernel-meta" |
128 | elif [ -d "${WORKDIR}/$f" ]; then | 128 | elif [ -d "${WORKDIR}/$f" ]; then |
129 | includes="$includes -I${WORKDIR}/$f" | 129 | includes="$includes -I${WORKDIR}/$f" |
130 | fi | 130 | fi |
131 | done | 131 | done |
132 | for s in ${sccs}; do | 132 | for s in ${sccs} ${patches}; do |
133 | sdir=$(dirname $s) | 133 | sdir=$(dirname $s) |
134 | includes="$includes -I${sdir}" | 134 | includes="$includes -I${sdir}" |
135 | # if a SRC_URI passed patch or .scc has a subdir of "kernel-meta", | ||
136 | # then we add it to the search path | ||
137 | if [ -d "${sdir}/kernel-meta" ]; then | ||
138 | includes="$includes -I${sdir}/kernel-meta" | ||
139 | fi | ||
135 | done | 140 | done |
136 | 141 | ||
137 | # expand kernel features into their full path equivalents | 142 | # expand kernel features into their full path equivalents |