From: Mark Hatle Date: Wed, 18 Dec 2024 15:35:42 +0000 (-0600) Subject: populate_sdk_ext: write_local_conf add shutil import X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f0d75ed7bbae03301bd41db1076ce926c5e742c;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git populate_sdk_ext: write_local_conf add shutil import Add shutil import to resolve error: Exception: NameError: name 'shutil' is not defined, Did you forget to import 'shutil' Signed-off-by: Mark Hatle Signed-off-by: Richard Purdie (cherry picked from commit b64263a43b4d82f1ebba13815bccb8a8cd3127f9) Signed-off-by: Mark Hatle Signed-off-by: Steve Sakoman --- diff --git a/meta/classes-recipe/populate_sdk_ext.bbclass b/meta/classes-recipe/populate_sdk_ext.bbclass index 8cb27ad9958..3019dad0f3b 100644 --- a/meta/classes-recipe/populate_sdk_ext.bbclass +++ b/meta/classes-recipe/populate_sdk_ext.bbclass @@ -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')