From be8123d8dfd502f88fe2f6646e746db140753d6e Mon Sep 17 00:00:00 2001 From: Alexander Kanavin Date: Mon, 16 Jun 2025 11:50:46 +0200 Subject: 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 Signed-off-by: Richard Purdie --- bitbake/lib/bb/fetch2/git.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bitbake/lib/bb/fetch2/git.py') 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): subdir = ud.parm.get("subdir") subpath = ud.parm.get("subpath") readpathspec = "" - def_destsuffix = "git/" + def_destsuffix = (d.getVar("BB_GIT_DEFAULT_DESTSUFFIX") or "git") + "/" if subpath: readpathspec = ":%s" % subpath -- cgit v1.2.3-54-g00ecf