By default the -dev kernel uses the "AUTOREV" to pull in the branch head as the revision. Some of our BSPs are based on the -dev kernel and we choose to nail down the kernel to a specific revision when releasing our product by using some setting like below: PREFERRED_PROVIDER_virtual/kernel = "linux-yocto-dev" SRCREV_machine:pn-linux-yocto-dev = "6fb48ae18a10770702266dd1f1aa500149e361ec" KBRANCH:pn-linux-yocto-dev = "standard/x86" LINUX_VERSION = "5.15"
Since all the standard/* branches will be rebased after each kernel version bump, we would get bitbake fetch failure due to that specific commit is not reachable in the new version branch. This kind of issue can be fixed by setting the "nobranch" parameter in the SRC_URI because it will cause the fetcher to skip the SHA validation for the branch. And this also won't cause other side effect because all the branches will be created in the do_kernel_checkout() and the current branch will be reset to the reversion we want in do_validate_branches(). Signed-off-by: Kevin Hao <kexin....@windriver.com> --- meta/recipes-kernel/linux/linux-yocto-dev.bb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meta/recipes-kernel/linux/linux-yocto-dev.bb b/meta/recipes-kernel/linux/linux-yocto-dev.bb index 6b6ea9a7e864..7204c3eddc11 100644 --- a/meta/recipes-kernel/linux/linux-yocto-dev.bb +++ b/meta/recipes-kernel/linux/linux-yocto-dev.bb @@ -19,7 +19,8 @@ include recipes-kernel/linux/linux-yocto-dev-revisions.inc KBRANCH = "standard/base" KMETA = "kernel-meta" -SRC_URI = "git://git.yoctoproject.org/linux-yocto-dev.git;branch=${KBRANCH};name=machine \ +# Set nobranch to skip the SHA validation for branch if a fixed revesion is used +SRC_URI = "git://git.yoctoproject.org/linux-yocto-dev.git;branch=${KBRANCH};name=machine;nobranch=1 \ git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=master;destsuffix=${KMETA}" # Set default SRCREVs. Both the machine and meta SRCREVs are statically set -- 2.31.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#159002): https://lists.openembedded.org/g/openembedded-core/message/159002 Mute This Topic: https://lists.openembedded.org/mt/87421079/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-