]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
populate_sdk_ext: write_local_conf add shutil import
authorMark Hatle <mark.hatle@kernel.crashing.org>
Tue, 17 Dec 2024 18:04:58 +0000 (12:04 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 18 Dec 2024 11:11:45 +0000 (11:11 +0000)
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>
meta/classes-recipe/populate_sdk_ext.bbclass

index 8cb27ad9958c9de83b0d50945acc9ca596734a67..3019dad0f3b6dd0da90b52566b58c7efc6a26868 100644 (file)
@@ -289,6 +289,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')