]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
populate_sdk_ext: write_local_conf add shutil import
authorMark Hatle <mark.hatle@kernel.crashing.org>
Wed, 18 Dec 2024 15:36:01 +0000 (09:36 -0600)
committerSteve Sakoman <steve@sakoman.com>
Thu, 2 Jan 2025 18:34:12 +0000 (10:34 -0800)
Add shutil import to resolve error:

Exception: NameError: name 'shutil' is not defined, Did you forget to import 'shutil'

Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit b64263a43b4d82f1ebba13815bccb8a8cd3127f9)
Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/classes-recipe/populate_sdk_ext.bbclass

index e76ef60720033d35da76d91952eb39eaea25076c..662cc493ce71e5f414f5373fe56bc08c8409bfa1 100644 (file)
@@ -290,6 +290,8 @@ def copy_uninative(d, baseoutpath):
     return uninative_checksum
 
 def write_local_conf(d, baseoutpath, derivative, core_meta_subdir, uninative_checksum):
+    import shutil
+
     #check if custome templateconf path is set
     use_custom_templateconf = d.getVar('SDK_CUSTOM_TEMPLATECONF')