stderr: fatal: bad revision 'AUTOINC' #bitbake #devtool
Summary
Command: devtool finish lang-lookup-util-native some-layer
Subcommand: 'sh -c 'git format-patch --no-signature --no-numbered AUTOINC -o /tmp/oepatchw2ggm8rz -- .'
stderr: fatal: bad revision 'AUTOINC'
One thing of note, SRCREV = "${AUTOREV}" has never worked for me, if I want my devtool/workspace/recipe to update the git code I'm working with, I have to reset/remove the recipe, redo devtool add, copy/paste the old recipe and start all over. I executed 'bitbake -e my-recipe' and noticed AUTOINC being referenced, but never set outside of, I believe, a default case of 0. Echo'ing ${AUTOINC} inside of my do_compile step also confirms it is empty.
FULL OUTPUT
NOTE: Starting bitbake server...
NOTE: Reconnecting to bitbake server...
NOTE: Retrying server connection (#1)... (12:15:30.762827)
Loading cache: 100% |#######################################################################################################################################################################################| Time: 0:00:01
Loaded 5098 entries from dependency cache.
WARNING: /home/user/eps-yocto/build/exos-x-vanadium-bmc/workspace/recipes/lang-lookup-util-native/lang-lookup-util-native_git.bb: QA Issue: lang-lookup-util-native: native/nativesdk class is not inherited last, this can result in unexpected behaviour. Classes inherited after native/nativesdk: externalsrc.bbclass [native-last] Parsing recipes: 100% |#####################################################################################################################################################################################| Time: 0:00:00
Parsing of 3098 .bb files complete (3092 cached, 6 parsed). 5103 targets, 719 skipped, 0 masked, 0 errors.
Summary: There was 1 WARNING message.
INFO: Updating SRCREV in recipe lang-lookup-util-native_git.bb
Traceback (most recent call last):
File "/home/user/eps-yocto/scripts/devtool", line 350, in <module>
ret = main()
File "/home/user/eps-yocto/scripts/devtool", line 337, in main
ret = args.func(args, config, basepath, workspace)
File "/home/user/eps-yocto/poky/scripts/lib/devtool/standard.py", line 2234, in finish
updated, appendfile, removed = _update_recipe(args.recipename, workspace, rd, args.mode, appendlayerdir, wildcard_version=True, no_remove=False, no_report_remove=removing_original, initial_rev=args.initial_rev, dry_run_outdir=dry_run_outdir, no_overrides=args.no_overrides, force_patch_refresh=args.force_patch_refresh) File "/home/user/eps-yocto/poky/scripts/lib/devtool/standard.py", line 1928, in _update_recipe
updated, appendf, removed = _update_recipe_srcrev(recipename, workspace, srctree, crd, appendlayerdir, wildcard_version, no_remove, no_report_remove, dry_run_outdir)
File "/home/user/eps-yocto/poky/scripts/lib/devtool/standard.py", line 1618, in _update_recipe_srcrevupd_p, new_p, del_p = _export_patches(srctree, rd, old_srcrev,
File "/home/user/eps-yocto/poky/scripts/lib/devtool/standard.py", line 1365, in _export_patchesGitApplyTree.extractPatches(srctree, start_revs, destdir, patch_pathspec)
File "/home/user/eps-yocto/poky/meta/lib/oe/patch.py", line 523, in extractPatches
out = runcmd(["sh", "-c", " ".join(shellcmd)], os.path.join(tree, name))
File "/home/user/eps-yocto/poky/meta/lib/oe/patch.py", line 49, in runcmd
raise CmdError(cmd, exitstatus >> 8, "stdout: %s\nstderr: %s" % (stdout, stderr))
oe.patch.CmdError: Command Error: 'sh -c 'git format-patch --no-signature --no-numbered AUTOINC -o /tmp/oepatchw2ggm8rz -- .'' exited with 0 Output:
stdout:
stderr: fatal: bad revision 'AUTOINC'
FULL RECIPE
SUMMARY = "Recipe for the purpose of building native/host langLookup"
DESCRIPTION = "The intention is for this executable to be executed prior to ARM/OpenBMC compilation" HOMEPAGE = "TBD"
LICENSE = "Apache-2.0 & Unknown"
SRC_URI = "git://git@/Joseph-Maniaci/mclinux_yocto.git;protocol=ssh;branch=${MC_APP_BRANCH}" inherit cmake native
# Modify these as desired
PV = "1.0+git"
SRCREV = "${AUTOREV}"
S = "${WORKDIR}/git"
OECMAKE_CXX_FLAGS:remove = "-D_FORTIFY_SOURCE=2"
OECMAKE_CXX_FLAGS:remove = "-O2"do_compile () {cmake_do_compile langLookup
}
I tried using SRCPV, which appears now to be deprecated anyway. Tried setting SRCREV_machine. Neither made a difference, tried something I found on SO but can't find anymore that involved generating a string from a half dozen or so other variables, didn't work.