summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/kernel-yocto.bbclass15
1 files changed, 15 insertions, 0 deletions
diff --git a/meta/classes/kernel-yocto.bbclass b/meta/classes/kernel-yocto.bbclass
index ed9bcfa57c..87c681f1c3 100644
--- a/meta/classes/kernel-yocto.bbclass
+++ b/meta/classes/kernel-yocto.bbclass
@@ -182,6 +182,14 @@ do_kernel_metadata() {
182 if [ $? -ne 0 ]; then 182 if [ $? -ne 0 ]; then
183 bbfatal_log "Could not locate BSP definition for ${KMACHINE}/${LINUX_KERNEL_TYPE} and no defconfig was provided" 183 bbfatal_log "Could not locate BSP definition for ${KMACHINE}/${LINUX_KERNEL_TYPE} and no defconfig was provided"
184 fi 184 fi
185
186 # if the bsp definition has "define KMETA_EXTERNAL_BSP t",
187 # then we need to set a flag that will instruct the next
188 # steps to use the BSP as both configuration and patches.
189 grep -q KMETA_EXTERNAL_BSP $bsp_definition
190 if [ $? -eq 0 ]; then
191 KMETA_EXTERNAL_BSPS="t"
192 fi
185 fi 193 fi
186 meta_dir=$(kgit --meta) 194 meta_dir=$(kgit --meta)
187 195
@@ -195,6 +203,13 @@ do_kernel_metadata() {
195 fi 203 fi
196 fi 204 fi
197 205
206 # if KMETA_EXTERNAL_BSPS has been set, or it has been detected from
207 # the bsp definition, then we inject the bsp_definition into the
208 # patch phase below. we'll piggy back on the sccs variable.
209 if [ -n "${KMETA_EXTERNAL_BSPS}" ]; then
210 sccs="${bsp_definition} ${sccs}"
211 fi
212
198 # run2: only generate patches for elements that have been passed on the SRC_URI 213 # run2: only generate patches for elements that have been passed on the SRC_URI
199 elements="`echo -n ${sccs} ${patches} ${KERNEL_FEATURES}`" 214 elements="`echo -n ${sccs} ${patches} ${KERNEL_FEATURES}`"
200 if [ -n "${elements}" ]; then 215 if [ -n "${elements}" ]; then