[elbe-devel] [PATCH 5/8] elbepack: commands: drop internal buildsdk command

Thomas Weißschuh thomas.weissschuh at linutronix.de
Mon Jul 8 11:23:58 CEST 2024


The buildsdk command is a remnant from the time before the SOAP service
managing all buildenv interaction.
Nowadays it is only a maintenance burden, remove it.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
 debian/python3-elbe-buildenv.install |  1 -
 docs/elbe-buildsdk.rst               | 39 ------------------------------------
 elbepack/commands/buildsdk.py        | 38 -----------------------------------
 newsfragments/+buildsdk.removal.rst  |  1 +
 4 files changed, 1 insertion(+), 78 deletions(-)

diff --git a/debian/python3-elbe-buildenv.install b/debian/python3-elbe-buildenv.install
index 8462aadfc117..9a9611b893eb 100644
--- a/debian/python3-elbe-buildenv.install
+++ b/debian/python3-elbe-buildenv.install
@@ -1,6 +1,5 @@
 usr/lib/python3.*/*-packages/elbepack/commands/adjustpkgs.py
 usr/lib/python3.*/*-packages/elbepack/commands/buildchroot.py
-usr/lib/python3.*/*-packages/elbepack/commands/buildsdk.py
 usr/lib/python3.*/*-packages/elbepack/commands/chroot.py
 usr/lib/python3.*/*-packages/elbepack/commands/db.py
 usr/lib/python3.*/*-packages/elbepack/commands/fetch_initvm_pkgs.py
diff --git a/docs/elbe-buildsdk.rst b/docs/elbe-buildsdk.rst
deleted file mode 100644
index 1b43eb78e1c3..000000000000
--- a/docs/elbe-buildsdk.rst
+++ /dev/null
@@ -1,39 +0,0 @@
-************************
-elbe-buildsdk
-************************
-
-NAME
-====
-
-elbe-buildsdk - Build a yocto style sdk.
-
-SYNOPSIS
-========
-
-   ::
-
-      elbe buildsdk <directory>
-
-<directory>
-   directory containing the elbe project.
-
-DESCRIPTION
-===========
-
-creates a yocto style SDK
-
-EXAMPLES
-========
-
--  Build a root filesystem from *myarm.xml* in */root/myarm*. Log to
-   *myarm.txt*. Then create a SDK for this RFS.
-
-   ::
-
-      # elbe buildchroot --output myarm.txt --target /root/myarm myarm.xml
-      # elbe buildsdk /root/myarm
-
-ELBE
-====
-
-Part of the ``elbe(1)`` suite
diff --git a/elbepack/commands/buildsdk.py b/elbepack/commands/buildsdk.py
deleted file mode 100644
index 1517f272da94..000000000000
--- a/elbepack/commands/buildsdk.py
+++ /dev/null
@@ -1,38 +0,0 @@
-# ELBE - Debian Based Embedded Rootfilesystem Builder
-# SPDX-License-Identifier: GPL-3.0-or-later
-# SPDX-FileCopyrightText: 2017-2018 Linutronix GmbH
-
-import logging
-import sys
-from optparse import OptionParser
-
-from elbepack.elbeproject import ElbeProject
-from elbepack.elbexml import ValidationError
-from elbepack.log import elbe_logging
-
-
-def run_command(argv):
-    oparser = OptionParser(
-        usage='usage: %prog buildsdk [options] <builddir>')
-    oparser.add_option('--skip-validation', action='store_true',
-                       dest='skip_validation', default=False,
-                       help='Skip xml schema validation')
-    oparser.add_option('--buildtype', dest='buildtype',
-                       help='Override the buildtype')
-
-    (opt, args) = oparser.parse_args(argv)
-
-    if len(args) != 1:
-        print('wrong number of arguments')
-        oparser.print_help()
-        sys.exit(39)
-
-    with elbe_logging({'streams': sys.stdout}):
-        try:
-            project = ElbeProject(args[0], override_buildtype=opt.buildtype,
-                                  skip_validate=opt.skip_validation)
-        except ValidationError:
-            logging.exception('xml validation failed.  Bailing out')
-            sys.exit(40)
-
-        project.build_sdk()
diff --git a/newsfragments/+buildsdk.removal.rst b/newsfragments/+buildsdk.removal.rst
new file mode 100644
index 000000000000..00a5389b73a8
--- /dev/null
+++ b/newsfragments/+buildsdk.removal.rst
@@ -0,0 +1 @@
+The *internal* command `elbe buildsdk`.

-- 
2.45.2



More information about the elbe-devel mailing list