mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 12:29:55 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
ce4ea7a730
commit
81297ee22d
@@ -124,14 +124,19 @@ do_kernel_metadata() {
|
|||||||
# for the update part of the process
|
# for the update part of the process
|
||||||
for f in ${feat_dirs}; do
|
for f in ${feat_dirs}; do
|
||||||
if [ -d "${WORKDIR}/$f/meta" ]; then
|
if [ -d "${WORKDIR}/$f/meta" ]; then
|
||||||
includes="$includes -I${WORKDIR}/$f/meta"
|
includes="$includes -I${WORKDIR}/$f/kernel-meta"
|
||||||
elif [ -d "${WORKDIR}/$f" ]; then
|
elif [ -d "${WORKDIR}/$f" ]; then
|
||||||
includes="$includes -I${WORKDIR}/$f"
|
includes="$includes -I${WORKDIR}/$f"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
for s in ${sccs}; do
|
for s in ${sccs} ${patches}; do
|
||||||
sdir=$(dirname $s)
|
sdir=$(dirname $s)
|
||||||
includes="$includes -I${sdir}"
|
includes="$includes -I${sdir}"
|
||||||
|
# if a SRC_URI passed patch or .scc has a subdir of "kernel-meta",
|
||||||
|
# then we add it to the search path
|
||||||
|
if [ -d "${sdir}/kernel-meta" ]; then
|
||||||
|
includes="$includes -I${sdir}/kernel-meta"
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# expand kernel features into their full path equivalents
|
# expand kernel features into their full path equivalents
|
||||||
|
|||||||
Reference in New Issue
Block a user