Skip to contentSkip to conversation

AUTOREV not functioning #bitbake #devtool #github

DISCUSSION [email protected] 1 participant 3 messages May 22, 2025

lore
Share & tools
lore
#0 lore raw
$ bitbake --version
BitBake Build Tool Core version 2.8.0
$ cat ~/eps-yocto/poky/meta-poky/conf/distro/poky.conf | grep DISTRO_VERSION
DISTRO_VERSION = "5.0.1"

Looking at the manual: https://docs.yoctoproject.org/5.0.9/singleindex.html#automatically-incrementing-a-package-version-number

I'm finding the -e functionality in bitbake super useful, I'm running 'bitbake -e my-recipe > my-recipe.out' to get an idea of what is going on.

In my recipe I'm using:
....
# Modify these as desired
SRCREV = "${AUTOREV}"
PV = "1.0+git"
....

I see(in my -e output):
....
AUTOREV="AUTOINC"
....
SRCREV="AUTOINC"
....
PV="1.0+git+AUTOINC+04f5ca7725"
....

...and 04f5ca7 is the head version of my repo. It's not causing any bitbake errors, it's just still using code that I revised(which is faulty).

I get no error as seen here: https://lists.yoctoproject.org/g/yocto/topic/autorev_not_works_in_bitbake/97515997
I'm not using BB_SRCREV_POLICY as seen here: https://yocto.yoctoproject.narkive.com/0CH39UMW/autorev-problems

Just to get around this can I just delete the sources/ directory in my workspace? I'm afraid to because, playing around I think I did that once and corrupted my workspace and had to wipe it and restart.

I see references to a 'PR Service' but have no idea if that's in play or not as far as I know.

Thanks.

#1 lore raw

Yeh, definitely can't touch the sources/ directory without significant failure.

Can't manually execute 'git pull' what is in sources/ since all git metadata has been stripped.

I even reverted the PV mechanism and manually set the SRCREV value, still wouldn't update.

#2 lore raw

Attempting to use devtool sync recipe /full/path/to/sources/recipe/ results in:

ERROR: Task do_patch does not exist for target recipe

From what I found searching, this looks like it expects a do_path function that works with literal .patch files....