summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/kernel-yocto.bbclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/kernel-yocto.bbclass b/meta/classes/kernel-yocto.bbclass
index 45bdc9670a..5706a9e4e3 100644
--- a/meta/classes/kernel-yocto.bbclass
+++ b/meta/classes/kernel-yocto.bbclass
@@ -179,9 +179,11 @@ do_kernel_checkout() {
179 bberror "S is not set to the linux source directory. Check " 179 bberror "S is not set to the linux source directory. Check "
180 bbfatal "the recipe and set S to the proper extracted subdirectory" 180 bbfatal "the recipe and set S to the proper extracted subdirectory"
181 fi 181 fi
182 rm -f .gitignore
182 git init 183 git init
183 git add . 184 git add .
184 git commit -q -m "baseline commit: creating repo for ${PN}-${PV}" 185 git commit -q -m "baseline commit: creating repo for ${PN}-${PV}"
186 git clean -d -f
185 fi 187 fi
186 # end debare 188 # end debare
187 189
@@ -287,7 +289,7 @@ do_validate_branches() {
287 if [ "${machine_srcrev}" = "AUTOINC" ]; then 289 if [ "${machine_srcrev}" = "AUTOINC" ]; then
288 bbnote "SRCREV validation is not required for AUTOREV" 290 bbnote "SRCREV validation is not required for AUTOREV"
289 elif [ "${machine_srcrev}" = "" ]; then 291 elif [ "${machine_srcrev}" = "" ]; then
290 if [ "${SRCREV}" != "AUTOINC" ]; then 292 if [ "${SRCREV}" != "AUTOINC" ] && [ "${SRCREV}" != "INVALID" ]; then
291 # SRCREV_machine_<MACHINE> was not set. This means that a custom recipe 293 # SRCREV_machine_<MACHINE> was not set. This means that a custom recipe
292 # that doesn't use the SRCREV_FORMAT "machine_meta" is being built. In 294 # that doesn't use the SRCREV_FORMAT "machine_meta" is being built. In
293 # this case, we need to reset to the give SRCREV before heading to patching 295 # this case, we need to reset to the give SRCREV before heading to patching