diff options
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 |