summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/kernel-yocto.bbclass10
1 files changed, 8 insertions, 2 deletions
diff --git a/meta/classes/kernel-yocto.bbclass b/meta/classes/kernel-yocto.bbclass
index 8650e55de7..9b8bab63ca 100644
--- a/meta/classes/kernel-yocto.bbclass
+++ b/meta/classes/kernel-yocto.bbclass
@@ -139,10 +139,16 @@ do_kernel_metadata() {
139 meta_dir=$(kgit --meta) 139 meta_dir=$(kgit --meta)
140 140
141 # run1: pull all the configuration fragments, no matter where they come from 141 # run1: pull all the configuration fragments, no matter where they come from
142 scc --force -o ${S}/${meta_dir}:cfg,meta ${includes} ${bsp_definition} ${sccs} ${patches} ${KERNEL_FEATURES} 142 elements="`echo -n ${bsp_definition} ${sccs} ${patches} ${KERNEL_FEATURES}`"
143 if [ -n "${elements}" ]; then
144 scc --force -o ${S}/${meta_dir}:cfg,meta ${includes} ${bsp_definition} ${sccs} ${patches} ${KERNEL_FEATURES}
145 fi
143 146
144 # run2: only generate patches for elements that have been passed on the SRC_URI 147 # run2: only generate patches for elements that have been passed on the SRC_URI
145 scc --force -o ${S}/${meta_dir}:patch --cmds patch ${includes} ${sccs} ${patches} ${KERNEL_FEATURES} 148 elements="`echo -n ${sccs} ${patches} ${KERNEL_FEATURES}`"
149 if [ -n "${elements}" ]; then
150 scc --force -o ${S}/${meta_dir}:patch --cmds patch ${includes} ${sccs} ${patches} ${KERNEL_FEATURES}
151 fi
146} 152}
147 153
148do_patch() { 154do_patch() {