Message ID | 20220425220325.2761246-1-richard.purdie@linuxfoundation.org |
---|---|
State | Accepted, archived |
Commit | 52c37e133fa55846aca2248ffcf3a10648dbb8d7 |
Headers | show |
Series | base: Avoid circular references to our own scripts | expand |
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index 3515720bf95..16b7c69995e 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass @@ -115,6 +115,9 @@ def setup_hosttools_dir(dest, toolsvar, d, fatal=True): tools = d.getVar(toolsvar).split() origbbenv = d.getVar("BB_ORIGENV", False) path = origbbenv.getVar("PATH") + # Need to ignore our own scripts directory to avoid circular links + ourscripts = d.expand("${COREBASE}/scripts") + path = path.replace(ourscripts, "/ignoreme") bb.utils.mkdirhier(dest) notfound = [] for tool in tools:
We'd like to intercept git calls but we don't want circular references and HOSTTOOLS currently sets them up. Tweak to avoid them. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> --- meta/classes/base.bbclass | 3 +++ 1 file changed, 3 insertions(+)