summaryrefslogtreecommitdiffstats
path: root/scripts/lib/devtool/ide_sdk.py
diff options
context:
space:
mode:
authorAdrian Freihofer <adrian.freihofer@gmail.com>2025-01-26 13:48:06 +0100
committerSteve Sakoman <steve@sakoman.com>2025-02-03 06:24:37 -0800
commit6b2ad54a4381af1c14f6253b62fde6df0964bfe5 (patch)
tree62b75308030bebf060f349d408d14e8813df5ca5 /scripts/lib/devtool/ide_sdk.py
parenta39666e2ad802c954957c8afb085586da727b2bd (diff)
downloadpoky-6b2ad54a4381af1c14f6253b62fde6df0964bfe5.tar.gz
devtool: ide-sdk remove the plugin from eSDK installer
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. (From OE-Core rev: a5e7ff4424a68335fc768e49a232a58011a5b160) Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'scripts/lib/devtool/ide_sdk.py')
-rwxr-xr-xscripts/lib/devtool/ide_sdk.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/lib/devtool/ide_sdk.py b/scripts/lib/devtool/ide_sdk.py
index 5e4c543275..0b50165a12 100755
--- a/scripts/lib/devtool/ide_sdk.py
+++ b/scripts/lib/devtool/ide_sdk.py
@@ -965,6 +965,15 @@ def ide_setup(args, config, basepath, workspace):
965def register_commands(subparsers, context): 965def register_commands(subparsers, context):
966 """Register devtool subcommands from this plugin""" 966 """Register devtool subcommands from this plugin"""
967 967
968 # The ide-sdk command bootstraps the SDK from the bitbake environment before the IDE
969 # configuration is generated. In the case of the eSDK, the bootstrapping is performed
970 # during the installation of the eSDK installer. Running the ide-sdk plugin from an
971 # eSDK installer-based setup would require skipping the bootstrapping and probably
972 # taking some other differences into account when generating the IDE configurations.
973 # This would be possible. But it is not implemented.
974 if context.fixed_setup:
975 return
976
968 global ide_plugins 977 global ide_plugins
969 978
970 # Search for IDE plugins in all sub-folders named ide_plugins where devtool seraches for plugins. 979 # Search for IDE plugins in all sub-folders named ide_plugins where devtool seraches for plugins.