summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
authorAlexander Kanavin <alex@linutronix.de>2025-06-16 11:50:46 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-06-20 12:03:37 +0100
commitbe8123d8dfd502f88fe2f6646e746db140753d6e (patch)
treed081b6fd5e9664ed5495491598fb96834d313823 /bitbake/lib
parent55c4f54106514cf3a34fdcb38eac9e08335bb087 (diff)
downloadpoky-be8123d8dfd502f88fe2f6646e746db140753d6e.tar.gz
bitbake: fetch2/git: allow overriding default unpack directory with a variable
This will allow setting the variable in oe-core such that it matches S, which in turn will allow dropping S from almost all git:// fetching recipes, and not having to set it in newly written ones. (Bitbake rev: 378db0fdd95f8704fccd852452555bfddcad384d) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/fetch2/git.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py
index 55dd084abc..0af8070080 100644
--- a/bitbake/lib/bb/fetch2/git.py
+++ b/bitbake/lib/bb/fetch2/git.py
@@ -660,7 +660,7 @@ class Git(FetchMethod):
660 subdir = ud.parm.get("subdir") 660 subdir = ud.parm.get("subdir")
661 subpath = ud.parm.get("subpath") 661 subpath = ud.parm.get("subpath")
662 readpathspec = "" 662 readpathspec = ""
663 def_destsuffix = "git/" 663 def_destsuffix = (d.getVar("BB_GIT_DEFAULT_DESTSUFFIX") or "git") + "/"
664 664
665 if subpath: 665 if subpath:
666 readpathspec = ":%s" % subpath 666 readpathspec = ":%s" % subpath