diff options
author | Ross Burton <ross.burton@arm.com> | 2025-06-04 15:03:23 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-06-05 11:02:22 +0100 |
commit | 97a4062189076c827fa8cb283838c8f9ff280de2 (patch) | |
tree | 3723f7912b4cd5d401abb40062cfea13e1a07d08 | |
parent | 632bb571d79e2b21c241357f9bdd623b0bc3bc1b (diff) | |
download | poky-97a4062189076c827fa8cb283838c8f9ff280de2.tar.gz |
scripts/scriptutils: silence warning about S not existing in emptysrc
This function creates an emptysrc recipe, but S points to a directory
that doesn't exist and bitbake warns about this.
As it is under the temporary working directory which will be deleted
later, create it to silence the warning.
(From OE-Core rev: 103cc8fa8a09b8e1fadeb0c8dde5f99eb9c24243)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | scripts/lib/scriptutils.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/lib/scriptutils.py b/scripts/lib/scriptutils.py index 81f0b01fa5..32e749dbb1 100644 --- a/scripts/lib/scriptutils.py +++ b/scripts/lib/scriptutils.py | |||
@@ -182,7 +182,10 @@ def fetch_url(tinfoil, srcuri, srcrev, destdir, logger, preserve_tmp=False, mirr | |||
182 | f.write('UNPACKDIR = "%s"\n' % destdir) | 182 | f.write('UNPACKDIR = "%s"\n' % destdir) |
183 | 183 | ||
184 | # Set S out of the way so it doesn't get created under the workdir | 184 | # Set S out of the way so it doesn't get created under the workdir |
185 | f.write('S = "%s"\n' % os.path.join(tmpdir, 'emptysrc')) | 185 | s_dir = os.path.join(tmpdir, 'emptysrc') |
186 | bb.utils.mkdirhier(s_dir) | ||
187 | f.write('S = "%s"\n' % s_dir) | ||
188 | |||
186 | if not mirrors: | 189 | if not mirrors: |
187 | # We do not need PREMIRRORS since we are almost certainly | 190 | # We do not need PREMIRRORS since we are almost certainly |
188 | # fetching new source rather than something that has already | 191 | # fetching new source rather than something that has already |