From 38613fdacf8e0699229811c870f3f7bf317ef32a Mon Sep 17 00:00:00 2001 From: Leonardo Sandoval Date: Sat, 17 Jun 2017 09:49:09 -0700 Subject: recipes-kernel: Skip kernel version check on kernel templates Currently, SRCREV is set to AUTOREV, causing mismatch between PV and the kernel version shown in the makefile (see below to see the bitbake log). The solution is to comment the lines which defaults SRCREV to AUTOREV, leaving the previous comment to replace the SRCREVs for real ones once kernel changes are done. ERROR: linux-yocto-4.8.12+gitAUTOINC+4fb6f24600_d4148a2064-r0.1 do_kernel_version_sanity_check: Package Version (4.8.12+gitAUTOINC +4fb6f24600_d4148a2064) does not match of kernel being built (4.8.21). Please update the PV variable to match the kernel source. ERROR: linux-yocto-4.8.12+gitAUTOINC+4fb6f24600_d4148a2064-r0.1 do_kernel_version_sanity_check: Function failed: do_kernel_version_sanity_check (log file is located at ../tmp/work/myqemu-poky-linux/linux-yocto/4.8.12+gitAUTOINC+4fb6f24600_d4148a2064-r0.1/temp/log.do_kernel_version_sanity_check.17509) [YOCTO #11064] (From meta-yocto rev: 51a42001c39d1b7c8170cc84904fa915295f1358) Signed-off-by: Leonardo Sandoval Signed-off-by: Armin Kuster Signed-off-by: Richard Purdie --- .../arch/arm/recipes-kernel/linux/linux-yocto-tiny_4.8.bbappend | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/linux-yocto-tiny_4.8.bbappend') diff --git a/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/linux-yocto-tiny_4.8.bbappend b/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/linux-yocto-tiny_4.8.bbappend index 5fb45d9ab7..51cb0124cd 100644 --- a/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/linux-yocto-tiny_4.8.bbappend +++ b/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/linux-yocto-tiny_4.8.bbappend @@ -28,6 +28,6 @@ SRC_URI += "file://{{=machine}}-tiny.scc \ # replace these SRCREVs with the real commit ids once you've had # the appropriate changes committed to the upstream linux-yocto repo -SRCREV_machine_pn-linux-yocto-tiny_{{=machine}} ?= "${AUTOREV}" -SRCREV_meta_pn-linux-yocto-tiny_{{=machine}} ?= "${AUTOREV}" +#SRCREV_machine_pn-linux-yocto-tiny_{{=machine}} ?= "${AUTOREV}" +#SRCREV_meta_pn-linux-yocto-tiny_{{=machine}} ?= "${AUTOREV}" #LINUX_VERSION = "4.8" -- cgit v1.2.3-54-g00ecf