From 97a4062189076c827fa8cb283838c8f9ff280de2 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Wed, 4 Jun 2025 15:03:23 +0100 Subject: 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 Signed-off-by: Richard Purdie --- scripts/lib/scriptutils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'scripts/lib/scriptutils.py') 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 f.write('UNPACKDIR = "%s"\n' % destdir) # Set S out of the way so it doesn't get created under the workdir - f.write('S = "%s"\n' % os.path.join(tmpdir, 'emptysrc')) + s_dir = os.path.join(tmpdir, 'emptysrc') + bb.utils.mkdirhier(s_dir) + f.write('S = "%s"\n' % s_dir) + if not mirrors: # We do not need PREMIRRORS since we are almost certainly # fetching new source rather than something that has already -- cgit v1.2.3-54-g00ecf