diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-05-06 16:56:01 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-05-07 22:31:21 +0100 |
commit | 057bd9b7721e4dcb5ac8859ebd536d47733a98fb (patch) | |
tree | f9619d0c4812cf156d6fba9912c569745e1efa4a | |
parent | f28cca6abcae12ef4d4c4b5299f993b7acbcf4bd (diff) | |
download | poky-057bd9b7721e4dcb5ac8859ebd536d47733a98fb.tar.gz |
base: Avoid circular references to our own scripts
We'd like to intercept git calls but we don't want circular references
and HOSTTOOLS currently sets them up. Tweak to avoid them.
(From OE-Core rev: 52c37e133fa55846aca2248ffcf3a10648dbb8d7)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes/base.bbclass | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index 3515720bf9..bdb3ac33c6 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass | |||
@@ -115,6 +115,10 @@ def setup_hosttools_dir(dest, toolsvar, d, fatal=True): | |||
115 | tools = d.getVar(toolsvar).split() | 115 | tools = d.getVar(toolsvar).split() |
116 | origbbenv = d.getVar("BB_ORIGENV", False) | 116 | origbbenv = d.getVar("BB_ORIGENV", False) |
117 | path = origbbenv.getVar("PATH") | 117 | path = origbbenv.getVar("PATH") |
118 | # Need to ignore our own scripts directories to avoid circular links | ||
119 | for p in path.split(":"): | ||
120 | if p.endswith("/scripts"): | ||
121 | path = path.replace(p, "/ignoreme") | ||
118 | bb.utils.mkdirhier(dest) | 122 | bb.utils.mkdirhier(dest) |
119 | notfound = [] | 123 | notfound = [] |
120 | for tool in tools: | 124 | for tool in tools: |