From patchwork Wed Dec 18 15:36:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Hatle X-Patchwork-Id: 54289 X-Patchwork-Delegate: steve@sakoman.com Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4039FE77188 for ; Wed, 18 Dec 2024 15:36:06 +0000 (UTC) Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) by mx.groups.io with SMTP id smtpd.web11.108326.1734536163133887536 for ; Wed, 18 Dec 2024 07:36:03 -0800 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=pass (domain: kernel.crashing.org, ip: 63.228.1.57, mailfrom: mark.hatle@kernel.crashing.org) Received: from kernel.crashing.org (70-99-78-136.nuveramail.net [70.99.78.136] (may be forged)) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id 4BIFa2jQ019301; Wed, 18 Dec 2024 09:36:02 -0600 Received: from localhost.localdomain (70-99-78-137.nuveramail.net [70.99.78.137] (may be forged)) by kernel.crashing.org (8.14.7/8.14.7) with ESMTP id 4BIFa2fx024693; Wed, 18 Dec 2024 09:36:02 -0600 From: Mark Hatle To: openembedded-core@lists.openembedded.org Cc: steve@sakoman.com Subject: [OE-core][scarthgap][PATCH] populate_sdk_ext: write_local_conf add shutil import Date: Wed, 18 Dec 2024 09:36:01 -0600 Message-Id: <20241218153601.63649-1-mark.hatle@kernel.crashing.org> X-Mailer: git-send-email 2.39.5 (Apple Git-154) MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 18 Dec 2024 15:36:06 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/208873 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 --- meta/classes-recipe/populate_sdk_ext.bbclass | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/classes-recipe/populate_sdk_ext.bbclass b/meta/classes-recipe/populate_sdk_ext.bbclass index e76ef60720..662cc493ce 100644 --- a/meta/classes-recipe/populate_sdk_ext.bbclass +++ b/meta/classes-recipe/populate_sdk_ext.bbclass @@ -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')