From patchwork Mon Jan 13 23:39:08 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adrian Freihofer X-Patchwork-Id: 55458 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 EBED9C02180 for ; Mon, 13 Jan 2025 23:39:19 +0000 (UTC) Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) by mx.groups.io with SMTP id smtpd.web10.32802.1736811556290021920 for ; Mon, 13 Jan 2025 15:39:16 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=XcMkPUFC; spf=pass (domain: gmail.com, ip: 209.85.128.48, mailfrom: adrian.freihofer@gmail.com) Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-436249df846so33846595e9.3 for ; Mon, 13 Jan 2025 15:39:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1736811554; x=1737416354; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=ZcfvNt2gSgftEQfq+3xAxbZwOWoZ7uzLNBNzIZ2CNx4=; b=XcMkPUFC94M33/dzQUxr5HTTUgxPrSpRLf0x8anYU5IB5i/+IBSc6hpgJp0ualqrq8 UyNze6IQ5eU+RcSArt9Nd1OkYKgaRtqXDTK3x1E4VnPU0M8JXElnCdthv907EKXc/kke F42wDAUGrjOM5IMlF53bdmWSaiaMRLq+II0DwWVPqdv9r94yBS6cUNai5wChiM17gyo+ gyXr/8znCfB5y5iuNI9bDMd5Y4hpZB60m4m5AQh6RbGqV5dn/ZE2+57QAE8V1aHGkjuA ZaCt3irM8gSKu7ZKFvLOMN1G2pWeYYfxcWWPzcmrqLJncvXvBIx5G/yBEhbJf2ml7dqY VR3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736811554; x=1737416354; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ZcfvNt2gSgftEQfq+3xAxbZwOWoZ7uzLNBNzIZ2CNx4=; b=vYEseDbPaTeYnUH42jBg9JFWn0Bd90fzzBa2ZsoWXfryAvWgNBNLIDprrGNmngJMlK pNrBUN9t9gAhqPObS7P1mq6euYTrviunjy9jfK6r9P/MHOY1nNKHc9eegRm128JCL1jq FSANTLE5w61NTfSPMRY/WLolwAR8QVq9ydbtyrtUkC5QqmR6LqyS/84k3s3upiKkzp/c WBl9vTvy9d2ye2uP0xnJ07FlZ2i/GquDPAIZxd+ZxqmtM5PmtPRK5DTozh+hpuEYnmu5 DfaHJEuzHo4U5HBM62HRZqcR+Urb5ukHtr9bslMlrRQ0f0q/f7InWWZsv6TYeSSJLIGB G/2A== X-Gm-Message-State: AOJu0YxPaBSJBR3Zl0F1pEiZqvaYincjguZfibBmz1HKEa+Havnc5ffg OGjFnOHpYc6W6uKfwSCVc3ZnsiA7UjW7o6OVHNO/zipP7tPaxE8DeBcy1VYY X-Gm-Gg: ASbGncutU6HpD0jHfMTZql+lkjGhHSkYWHMbI1th6ny1DxeRfN97uy4u4K2XCRtRUyb 334Fxrr2F2UNVUUYXjSalDqpzA7yc763c8xw/nfGzsBSskto2TdVnqQduZb3BsWx2p8fUmogE8c ytDIz8vRKvB6HomIo57SanLyI0qXOplF9xGfHVyWQP4N1IUHm7AptFAE3t0fuQgi7Sg8WrDcwlH 6xPArtDPxk2hf8ec8YffU98s+FW73NSM+JINqd33cmIeIi+gmwHOnlNbIjywzDxCfY/QBBWypLF thE= X-Google-Smtp-Source: AGHT+IECP2O7oPclw0sOHl+a9sMQcZlDSBtjmjD4h/DPv0dbejv6jmlliag8dFnc/NP2PLivy7aVDA== X-Received: by 2002:a05:600c:3b0c:b0:434:fa24:b84a with SMTP id 5b1f17b1804b1-436e26d96d8mr179990795e9.25.1736811554387; Mon, 13 Jan 2025 15:39:14 -0800 (PST) Received: from wsadrian16.fritz.box ([2a02:169:59a6:0:55c4:f628:91f3:4287]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-436e2da7768sm194596605e9.5.2025.01.13.15.39.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jan 2025 15:39:13 -0800 (PST) From: Adrian Freihofer X-Google-Original-From: Adrian Freihofer To: openembedded-core@lists.openembedded.org Cc: Adrian Freihofer Subject: [PATCH 1/2] devtool: build-sdk remove unused imports Date: Tue, 14 Jan 2025 00:39:08 +0100 Message-ID: <20250113233909.4182045-1-adrian.freihofer@siemens.com> X-Mailer: git-send-email 2.47.1 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 ; Mon, 13 Jan 2025 23:39:19 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/209769 These imports are not needed. Signed-off-by: Adrian Freihofer --- scripts/lib/devtool/build_sdk.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/scripts/lib/devtool/build_sdk.py b/scripts/lib/devtool/build_sdk.py index 1cd4831d2b8..990303982c1 100644 --- a/scripts/lib/devtool/build_sdk.py +++ b/scripts/lib/devtool/build_sdk.py @@ -5,14 +5,7 @@ # SPDX-License-Identifier: GPL-2.0-only # -import os -import subprocess import logging -import glob -import shutil -import errno -import sys -import tempfile from devtool import DevtoolError from devtool import build_image From patchwork Mon Jan 13 23:39:09 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adrian Freihofer X-Patchwork-Id: 55459 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 EBFAFC02183 for ; Mon, 13 Jan 2025 23:39:19 +0000 (UTC) Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) by mx.groups.io with SMTP id smtpd.web11.32971.1736811558426345474 for ; Mon, 13 Jan 2025 15:39:18 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ZQcZqeqJ; spf=pass (domain: gmail.com, ip: 209.85.128.51, mailfrom: adrian.freihofer@gmail.com) Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-4368a293339so55842905e9.3 for ; Mon, 13 Jan 2025 15:39:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1736811556; x=1737416356; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=1bP1LM+ckcsRvcik0eTZ2CBHyHrq8jsqTbnD4Ze//4s=; b=ZQcZqeqJezmUsOIbM80UZ2g1pQip5saa5MFOWgO+Q+fdQS2efa1mUDl68Dkjic8Xgh b8bSMqZtPDKIYpqF14g8wUGph0Xqve5kI1REHmug8Y2FKvnh9ONUX5p9nUXCUC31Q3eO ARUFZicUIHEXxbT2wb62Vrham9VG3GL2WoFEJYwv7bUtKGgjEhdb31JQR3vXQhAzaV3o OT/earUof8idAg1dxjji3nWfKkNHW7QCWFEwUFv1DU/K2dTU29tmaTOi8StRw/yTkLsR j4peAQLZtoT2ZKJYLyw1Cc7PNQG/dDLb66kqi/nxDmN8W4Cn8B0SpyOgGm+hyGaN871g vSQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736811556; x=1737416356; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1bP1LM+ckcsRvcik0eTZ2CBHyHrq8jsqTbnD4Ze//4s=; b=pCab9vkp/EHnbl2q1d5X0mkDmryXebOWQjeAjZB/kC2V2I0nyX++8vtpaSCXb/kVmY xEhZpbRr+ouNySjmMUvaO9tRsEkO75hZlyRA6/avvmAuCuRCMGXhbBlLk3DHFRD+MjP7 HIJoCOaRgpKwoCW2XrvPoCgE/jk6Zx8LlCVMADqgLlFKr0UyrB2wajX4hhdlnDzb9c4D sAucNxZUp4j9Bl/ABU+qPK65eQuGXQVKQB/okwJb/8LWSUYL9sE9kxsZkSZXQF+DHteZ nwrS4IvcPeP8EWOO1VM2/ElACwIVv1JVq7pG5kGuxnpgJ3GbyExCPfurnf1tja6jS6pg huOA== X-Gm-Message-State: AOJu0YygBb2d/fMnYvH6UNuKv7MyK5Z5UVriOelhDLOgyqJiiAs0++Kz Y0L+ahLRSx1yVjy1xrO3Ruvf5VjSTWDk0pNXc0u6RhjvRpnLgBon1CDMuttu X-Gm-Gg: ASbGncs2CcFfrHQl0DXWroIuIHOOfYfGmrVqcire8LN5SJNMdSf5Tx530bxXGSTm1Aq /nRt9J7Fj+xzhpIgWh6PfazBQlo+xNenCe0s2QRpD16FxA3iMlrAqcVJy+gFgnHGcoizFJDdPB8 zYuBLDBzfdbMvG3rNjTmPb1Y91sPTwVo6LPYjvKBc1pLusIkjgPF03QZHZswapV6lMR1fuvl3Al O+LUcCKl6QrLLpKPQ4s4vt4C9Ll8Lybr/iorRLqWuuppF0kbWKslew4+JdZ1g0xP8nGmXtVE7AN 74g= X-Google-Smtp-Source: AGHT+IFpQXbI/ZPLVKhDRc/duoLUcFmP4iP9dcKRP8cgKm6+rW6u7JQMhtbCvRCB7f1iu2M0hYQDUA== X-Received: by 2002:a5d:6484:0:b0:385:fd07:85f4 with SMTP id ffacd0b85a97d-38a87312c8dmr20570658f8f.31.1736811556478; Mon, 13 Jan 2025 15:39:16 -0800 (PST) Received: from wsadrian16.fritz.box ([2a02:169:59a6:0:55c4:f628:91f3:4287]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-436e2da7768sm194596605e9.5.2025.01.13.15.39.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jan 2025 15:39:15 -0800 (PST) From: Adrian Freihofer X-Google-Original-From: Adrian Freihofer To: openembedded-core@lists.openembedded.org Cc: Adrian Freihofer Subject: [PATCH 2/2] devtool: ide-sdk remove the plugin from eSDK installer Date: Tue, 14 Jan 2025 00:39:09 +0100 Message-ID: <20250113233909.4182045-2-adrian.freihofer@siemens.com> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250113233909.4182045-1-adrian.freihofer@siemens.com> References: <20250113233909.4182045-1-adrian.freihofer@siemens.com> 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 ; Mon, 13 Jan 2025 23:39:19 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/209770 The ide-sdk command bootstraps the SDK from the bitbake environment before the IDE configuration is generated. In the case of the eSDK installer, the bootstrapping is performed during the installation of the eSDK installer. Running the ide-sdk plugin from an eSDK installer based setup would require skipping the bootstrapping and probably taking some other differences into account when generating the IDE configurations. This would be possible. But it will probably never be implemented, as running devtool ide-sdk directly from the bitbake environment is much more flexible. Also, some of the recent improvements that have made it into the core have the potential to make the eSDK installer obsolete at some point in the future: - bitbake-layers create-layers-setup replicates the layers - bitbake-config-build replicates the build configuration - The new sstate mirror features replicate the sstate - bblock locks the sstate more flexible than the eSDK installer - devtool ide-sdk bootstraps the SDK directly from the bitbake environment. The same environment-setup... file is provided with --mode=shared. The devtool modify based workflow is supported since always by devtool and also the default --mode of devtool ide-sdk. These functions essentially cover what the eSDK installer does without a need for the current implementation of the eSDK installer and the populate_sdk_ext, which is hard to maintain and takes a lot of time to build. This means that instead of making the ide-sdk plugin compatible with the eSDK installer, we should rather replace the current implementation of the eSDK installer and populate_sdk_ext with an implementation that can replicate a normal bitbake environment in a convenient way where the ide-sdk plugin also just works without additional complexity. Signed-off-by: Adrian Freihofer --- scripts/lib/devtool/ide_sdk.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/lib/devtool/ide_sdk.py b/scripts/lib/devtool/ide_sdk.py index 42ac20c6547..f8cf65f4a84 100755 --- a/scripts/lib/devtool/ide_sdk.py +++ b/scripts/lib/devtool/ide_sdk.py @@ -927,6 +927,15 @@ def ide_setup(args, config, basepath, workspace): def register_commands(subparsers, context): """Register devtool subcommands from this plugin""" + # The ide-sdk command bootstraps the SDK from the bitbake environment before the IDE + # configuration is generated. In the case of the eSDK, the bootstrapping is performed + # during the installation of the eSDK installer. Running the ide-sdk plugin from an + # eSDK installer-based setup would require skipping the bootstrapping and probably + # taking some other differences into account when generating the IDE configurations. + # This would be possible. But it is not implemented. + if context.fixed_setup: + return + global ide_plugins # Search for IDE plugins in all sub-folders named ide_plugins where devtool seraches for plugins.