[elbe-devel] [PATCH 4/5] elbepack: debianize: Remove the module and templates

Bastian Germann bage at linutronix.de
Mon Mar 6 20:28:53 CET 2023


The `elbe debianize` command creates bad packages.
Elbe should not encourage this but rather make people use alternatives or
create their packages from scratch.

Signed-off-by: Bastian Germann <bage at linutronix.de>
---
 elbepack/debianize/__init__.py                |   0
 elbepack/debianize/base/__init__.py           |   0
 elbepack/debianize/base/tui.py                | 180 ------------------
 elbepack/debianize/panels/__init__.py         |   0
 elbepack/debianize/panels/barebox.py          |  65 -------
 elbepack/debianize/panels/base.py             | 112 -----------
 elbepack/debianize/panels/factory.py          |  31 ---
 elbepack/debianize/panels/kernel.py           | 107 -----------
 elbepack/debianize/panels/uboot.py            |  92 ---------
 elbepack/debianize/widgets/__init__.py        |   0
 elbepack/debianize/widgets/button.py          |  52 -----
 elbepack/debianize/widgets/edit.py            |  14 --
 elbepack/debianize/widgets/form.py            |  70 -------
 elbepack/debianize/widgets/grid.py            | 130 -------------
 elbepack/debianize/widgets/radio.py           |  53 ------
 .../debianize/barebox/barebox-image.install   |   1 -
 .../debianize/barebox/barebox-tools.install   |   1 -
 .../makofiles/debianize/barebox/control.mako  |  25 ---
 .../makofiles/debianize/barebox/format.mako   |   7 -
 .../makofiles/debianize/barebox/rules.mako    |  73 -------
 .../makofiles/debianize/kernel/control.mako   |  39 ----
 .../makofiles/debianize/kernel/format.mako    |   6 -
 .../debianize/kernel/linux-headers.install    |   2 -
 .../debianize/kernel/linux-image.install      |   5 -
 .../debianize/kernel/linux-libc-dev.install   |   1 -
 .../makofiles/debianize/kernel/postinst.mako  |  18 --
 .../makofiles/debianize/kernel/postrm.mako    |  18 --
 .../makofiles/debianize/kernel/preinst.mako   |  18 --
 .../makofiles/debianize/kernel/prerm.mako     |  18 --
 .../makofiles/debianize/kernel/rules.mako     | 115 -----------
 .../makofiles/debianize/u-boot/control.mako   |  28 ---
 .../makofiles/debianize/u-boot/format.mako    |   6 -
 .../makofiles/debianize/u-boot/rules.mako     |  49 -----
 .../debianize/u-boot/u-boot-image.install     |   1 -
 .../debianize/u-boot/u-boot-tools.install     |   1 -
 .../debianize/u-boot/u-boot-tools.links       |   1 -
 setup.py                                      |   8 -
 37 files changed, 1347 deletions(-)
 delete mode 100644 elbepack/debianize/__init__.py
 delete mode 100644 elbepack/debianize/base/__init__.py
 delete mode 100644 elbepack/debianize/base/tui.py
 delete mode 100644 elbepack/debianize/panels/__init__.py
 delete mode 100644 elbepack/debianize/panels/barebox.py
 delete mode 100644 elbepack/debianize/panels/base.py
 delete mode 100644 elbepack/debianize/panels/factory.py
 delete mode 100644 elbepack/debianize/panels/kernel.py
 delete mode 100644 elbepack/debianize/panels/uboot.py
 delete mode 100644 elbepack/debianize/widgets/__init__.py
 delete mode 100644 elbepack/debianize/widgets/button.py
 delete mode 100644 elbepack/debianize/widgets/edit.py
 delete mode 100644 elbepack/debianize/widgets/form.py
 delete mode 100644 elbepack/debianize/widgets/grid.py
 delete mode 100644 elbepack/debianize/widgets/radio.py
 delete mode 100644 elbepack/makofiles/debianize/barebox/barebox-image.install
 delete mode 100644 elbepack/makofiles/debianize/barebox/barebox-tools.install
 delete mode 100644 elbepack/makofiles/debianize/barebox/control.mako
 delete mode 100644 elbepack/makofiles/debianize/barebox/format.mako
 delete mode 100755 elbepack/makofiles/debianize/barebox/rules.mako
 delete mode 100644 elbepack/makofiles/debianize/kernel/control.mako
 delete mode 100644 elbepack/makofiles/debianize/kernel/format.mako
 delete mode 100644 elbepack/makofiles/debianize/kernel/linux-headers.install
 delete mode 100644 elbepack/makofiles/debianize/kernel/linux-image.install
 delete mode 100644 elbepack/makofiles/debianize/kernel/linux-libc-dev.install
 delete mode 100755 elbepack/makofiles/debianize/kernel/postinst.mako
 delete mode 100755 elbepack/makofiles/debianize/kernel/postrm.mako
 delete mode 100755 elbepack/makofiles/debianize/kernel/preinst.mako
 delete mode 100755 elbepack/makofiles/debianize/kernel/prerm.mako
 delete mode 100755 elbepack/makofiles/debianize/kernel/rules.mako
 delete mode 100644 elbepack/makofiles/debianize/u-boot/control.mako
 delete mode 100644 elbepack/makofiles/debianize/u-boot/format.mako
 delete mode 100755 elbepack/makofiles/debianize/u-boot/rules.mako
 delete mode 100644 elbepack/makofiles/debianize/u-boot/u-boot-image.install
 delete mode 100644 elbepack/makofiles/debianize/u-boot/u-boot-tools.install
 delete mode 100644 elbepack/makofiles/debianize/u-boot/u-boot-tools.links

diff --git a/elbepack/debianize/__init__.py b/elbepack/debianize/__init__.py
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/elbepack/debianize/base/__init__.py b/elbepack/debianize/base/__init__.py
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/elbepack/debianize/base/tui.py b/elbepack/debianize/base/tui.py
deleted file mode 100644
index e0ca5e26e4..0000000000
--- a/elbepack/debianize/base/tui.py
+++ /dev/null
@@ -1,180 +0,0 @@
-# ELBE - Debian Based Embedded Rootfilesystem Builder
-# Copyright (c) 2019 Olivier Dion <dion at linutronix.de>
-#
-# SPDX-License-Identifier: GPL-3.0-or-later
-
-
-import os
-import signal
-
-from urwid import (
-    ExitMainLoop,
-    Frame,
-    MainLoop,
-    Text
-)
-
-
-# +=====================================================+
-# |+-: root (box) -------------------------------------+|
-# ||+-: header (flow) --------------------------------+||
-# |||                                                 |||
-# ||+-------------------------------------------------+||
-# ||+-: body (box) -----------------------------------+||
-# |||                                                 |||
-# |||                                                 |||
-# |||                                                 |||
-# |||                                                 |||
-# |||                                                 |||
-# |||                                                 |||
-# |||                                                 |||
-# |||                                                 |||
-# |||                                                 |||
-# |||                                                 |||
-# ||+-------------------------------------------------+||
-# ||+-: helper (flow) --------------------------------+||
-# |||                                                 | |
-# ||+-------------------------------------------------+||
-# |+---------------------------------------------------+|
-# +=====================================================+
-
-
-def generate_helper_text(hints):
-    markup = []
-    for key, text, text_palette in hints:
-        markup.extend((("helper_key", key), " ", (text_palette, text), " "))
-    return markup
-
-
-class TUISignal(object):
-    QUIT = "on_quit"
-    CLICK = "on_click"
-    FLUSH = "on_flush"
-
-class TUIException(Exception):
-    pass
-
-
-class TUI(object):
-
-    palette = [
-        ("blue_head", "dark blue", ""),
-        ("red_head", "dark red", ""),
-        ("header", "bold, underline, default", ""),
-        ("error", "bold, light red", ""),
-        ("normal_box", "default", "default"),
-        ("selected_box", "black", "light gray"),
-        ("confirm_button", "default", "dark green"),
-        ("abort_button", "light red", "dark red"),
-        ("progress_low", "default", "yellow"),
-        ("progress_hight", "default", "dark green"),
-        ("helper_key", "bold", "default"),
-        ("helper_text_brown", "black", "brown"),
-        ("helper_text_red", "black", "dark red"),
-        ("helper_text_green", "black", "dark green"),
-        ("helper_text_light", "white", "dark blue"),
-    ]
-
-    main_helper_text = generate_helper_text([
-        ("C-f", "Forward", "helper_text_brown"),
-        ("C-b", "Backward", "helper_text_brown"),
-        ("C-p", "Previous", "helper_text_brown"),
-        ("C-n", "Next", "helper_text_brown"),
-        ("TAB", "Next", "helper_text_brown"),
-        ("backtab", "Previous", "helper_text_brown"),
-        ("C-\\", "Quit", "helper_text_red"),
-    ])
-
-    keybind = {}
-
-    def __init__(self, body):
-
-        TUI.root = Frame(body.root,
-                         Text(("header", ""), "center"),
-                         Text(TUI.main_helper_text, "center"))
-
-        TUI.loop = MainLoop(TUI.root, TUI.palette,
-                            unhandled_input=TUI.unhandled_input)
-
-        TUI.install_signals_handler()
-
-    def __call__(self):
-        TUI.loop.run()
-
-    @classmethod
-    def focus_header(cls):
-        cls.root.focus_position = "header"
-
-    @classmethod
-    def focus_body(cls):
-        cls.root.focus_position = "body"
-
-    @classmethod
-    def focus_footer(cls):
-        cls.root.focus_position = "footer"
-
-    @classmethod
-    def header(cls, flow_widget=None):
-        if flow_widget is not None:
-            if "flow" not in flow_widget.sizing():
-                raise TUIException("Header must be of sizing flow")
-            cls.root.contents["header"] = flow_widget
-        return cls.root.contents["header"]
-
-    @classmethod
-    def body(cls, box_widget=None):
-        if box_widget is not None:
-            if "box" not in box_widget.sizing():
-                raise TUIException("Body must be of sizing box")
-            cls.root.contents["body"] = (box_widget, TUI.root.options())
-        return cls.root.contents["body"]
-
-    @classmethod
-    def footer(cls, flow_widget=None):
-        if flow_widget is not None:
-            if "flow" not in flow_widget.sizing():
-                raise TUIException("Header must be of sizing flow")
-            cls.root.contents["footer"] = flow_widget
-        return cls.root.contents["footer"]
-
-    @classmethod
-    def unhandled_input(cls, key):
-        if key in cls.keybind:
-            cls.keybind[key]()
-            return None
-
-    @classmethod
-    def bind_global(cls, key, callback):
-        cls.keybind[key] = callback
-
-    @classmethod
-    def printf(cls, fmt, *args):
-        cls.header()[0].set_text(("header", fmt.format(*args)))
-
-    @classmethod
-    def clear(cls):
-        cls.printf("")
-
-    @staticmethod
-    def quit(*args):
-        raise ExitMainLoop()
-
-    @staticmethod
-    def pause(*args):
-        TUI.loop.stop()
-        os.kill(os.getpid(), signal.SIGSTOP)
-        TUI.loop.start()
-        TUI.loop.draw_screen()
-
-    @staticmethod
-    def interrupt(*kargs):
-        pass
-
-    @staticmethod
-    def install_signals_handler():
-
-        if os.sys.platform != "win32":
-            signal.signal(signal.SIGQUIT, TUI.quit)
-            signal.signal(signal.SIGTSTP, TUI.pause)
-
-        signal.signal(signal.SIGINT, TUI.interrupt)
diff --git a/elbepack/debianize/panels/__init__.py b/elbepack/debianize/panels/__init__.py
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/elbepack/debianize/panels/barebox.py b/elbepack/debianize/panels/barebox.py
deleted file mode 100644
index aac8624375..0000000000
--- a/elbepack/debianize/panels/barebox.py
+++ /dev/null
@@ -1,65 +0,0 @@
-# ELBE - Debian Based Embedded Rootfilesystem Builder
-# Copyright (c) 2017 Torben Hohn <torben.hohn at linutronix.de>
-# Copyright (c) 2017 Manuel Traut <manut at linutronix.de>
-# Copyright (c) 2019 Olivier Dion <dion at linutronix.de>
-#
-# SPDX-License-Identifier: GPL-3.0-or-later
-
-import os
-import stat
-
-from shutil import copyfile
-
-from elbepack.debianize.panels.base import Panel
-from elbepack.debianize.widgets.edit import Edit
-
-from elbepack.directories import mako_template_dir
-from elbepack.templates import template
-from elbepack.shellhelper import system
-
-
-class BareBox(Panel):
-
-    match_files = ['Kbuild', 'Kconfig', 'README', 'Documentation/barebox.svg']
-
-    def __init__(self):
-
-        imgname = Edit(
-            "Image name", "barebox-phytec-phycore-imx6dl-som-nand-256mb.img")
-        defconfig = Edit("Def config", "imx_v7_defconfig")
-        cross = Edit("CROSS_COMPILE", "arm-linux-gnueabihf-")
-        k_version = Edit("BareBox Version", "2016.10")
-
-        grid_elements = [
-            {"imgname": imgname, "defconfig": defconfig},
-            {"cross_compile": cross, "k_version": k_version}
-        ]
-
-        super(BareBox, self).__init__(grid_elements)
-
-    def debianize(self):
-
-        self.tmpl_dir = os.path.join(mako_template_dir, 'debianize/barebox')
-        pkg_name = self.deb['p_name'] + '-' + self.deb['k_version']
-
-        for tmpl in ['control', 'rules']:
-            with open(os.path.join('debian/', tmpl), 'w') as f:
-                mako = os.path.join(self.tmpl_dir, tmpl + '.mako')
-                f.write(template(mako, self.deb))
-
-        st = os.stat(os.path.join('debian', 'rules'))
-        os.chmod(os.path.join('debian', 'rules'), st.st_mode | stat.S_IEXEC)
-
-        cmd = 'dch --package barebox-' + pkg_name + \
-            ' -v ' + self.deb['p_version'] + \
-            ' --create -M -D ' + self.deb['release'] + \
-            ' "generated by elbe debianize"'
-        system(cmd)
-
-        copyfile(os.path.join(self.tmpl_dir, 'barebox-image.install'),
-                 'debian/barebox-image-' + pkg_name + '.install')
-        copyfile(os.path.join(self.tmpl_dir, 'barebox-tools.install'),
-                 'debian/barebox-tools-' + pkg_name + '.install')
-
-        self.hint = (f"use 'dpkg-buildpackage -a{self.deb['p_arch']}' "
-                     "to build the package")
diff --git a/elbepack/debianize/panels/base.py b/elbepack/debianize/panels/base.py
deleted file mode 100644
index a350e33f09..0000000000
--- a/elbepack/debianize/panels/base.py
+++ /dev/null
@@ -1,112 +0,0 @@
-# ELBE - Debian Based Embedded Rootfilesystem Builder
-# Copyright (c) 2016-2017 Manuel Traut <manut at linutronix.de>
-# Copyright (c) 2017 Torben Hohn <torben.hohn at linutronix.de>
-# Copyright (c) 2017 Martin Kaistra <martin.kaistra at linutronix.de>
-# Copyright (c) 2019 Olivier Dion <dion at linutronix.de>
-#
-# SPDX-License-Identifier: GPL-3.0-or-later
-
-
-import os
-
-from shutil import copyfile
-
-from elbepack.debianize.base.tui import TUI
-from elbepack.debianize.widgets.form import Form
-from elbepack.debianize.widgets.edit import Edit
-from elbepack.debianize.widgets.radio import RadioGroup
-
-from elbepack.templates import template
-
-
-class Arch(object):
-    ARM64 = "arm64"
-    ARMHF = "armhf"
-    ARMEL = "armel"
-    AMD64 = "amd64"
-    I386  = "i386"
-    POWER = "powerpc"
-
-
-class Format(object):
-    NATIVE = "native"
-    GIT = "git"
-    QUILT = "quilt"
-
-
-class Release(object):
-    STABLE = "stable"
-    OLDSTABLE = "oldstable"
-    TESTING = "testing"
-    UNSTABLE = "unstable"
-    EXPERIMENTAL = "experimental"
-
-
-class Panel(Form):
-
-    copyright_fname = "COPYING"
-
-    def __init__(self, grid_elements):
-
-        self.deb = {}
-        self.tmpl_dir = None
-        self.hint = None
-
-        fullname = os.environ.get('DEBFULLNAME', "Max Mustermann")
-        email = os.environ.get('DEBEMAIL', "max at mustermann.org")
-
-        p_name = Edit("Name", "elbe")
-        p_version = Edit("Version", "1.0")
-        p_arch = RadioGroup("Arch", Arch, Arch.ARM64)
-        src_fmt = RadioGroup("Format", Format, Format.NATIVE)
-        release = RadioGroup("Release", Release, Release.STABLE)
-
-        m_name = Edit("Maintainer", fullname)
-        m_mail = Edit("Mail", email)
-
-        grid = [
-            {"p_name":p_name, "p_version":p_version},
-            {"p_arch":p_arch,"release":release},
-            {"source_format":src_fmt},
-            {"m_name":m_name, "m_mail":m_mail},
-        ]
-
-        for element in grid_elements:
-            grid.append(element)
-
-        super(Panel, self).__init__(grid)
-
-
-    def get_k_arch(self):
-        """ get_k_arch() may be used in debianize() """
-
-        if self.deb['p_arch'] == 'armhf':
-            return 'arm'
-        elif self.deb['p_arch'] == 'armel':
-            return 'arm'
-        elif self.deb['p_arch'] == 'amd64':
-            return 'x86_64'
-        else:
-            return self.deb['p_arch']
-
-    def on_submit(self, datas):
-
-        for key, value in datas.items():
-            self.deb[key] = str(value)
-
-        self.deb['k_arch'] = self.get_k_arch()
-
-        os.mkdir('debian')
-        os.mkdir('debian/source')
-
-        self.debianize()
-
-        with open('debian/source/format', 'w') as f:
-            mako = os.path.join(self.tmpl_dir, 'format.mako')
-            f.write(template(mako, self.deb))
-
-        copyfile(self.copyright_fname, 'debian/copyright')
-        with open('debian/compat', 'w') as f:
-            f.write('9')
-
-        TUI.quit()
diff --git a/elbepack/debianize/panels/factory.py b/elbepack/debianize/panels/factory.py
deleted file mode 100644
index 3234046a07..0000000000
--- a/elbepack/debianize/panels/factory.py
+++ /dev/null
@@ -1,31 +0,0 @@
-# ELBE - Debian Based Embedded Rootfilesystem Builder
-# Copyright (c) 2019 Olivier Dion <dion at linutronix.de>
-#
-# SPDX-License-Identifier: GPL-3.0-or-later
-
-
-import os
-
-from elbepack.debianize.panels.uboot import UBoot
-from elbepack.debianize.panels.kernel import Kernel
-from elbepack.debianize.panels.barebox import BareBox
-
-
-panels = [
-    UBoot,
-    Kernel,
-    BareBox
-]
-
-
-def detect_panel():
-    for panel in panels:
-        match = True
-        for f in panel.match_files:
-            if not os.path.exists(f):
-                match = False
-                break
-        if match:
-            return panel()
-
-    raise KeyError
diff --git a/elbepack/debianize/panels/kernel.py b/elbepack/debianize/panels/kernel.py
deleted file mode 100644
index 74519e9c65..0000000000
--- a/elbepack/debianize/panels/kernel.py
+++ /dev/null
@@ -1,107 +0,0 @@
-# ELBE - Debian Based Embedded Rootfilesystem Builder
-# Copyright (c) 2016-2017 John Ogness <john.ogness at linutronix.de>
-# Copyright (c) 2016-2017 Manuel Traut <manut at linutronix.de>
-# Copyright (c) 2017 Torben Hohn <torben.hohn at linutronix.de>
-# Copyright (c) 2019 Olivier Dion <dion at linutronix.de>
-#
-# SPDX-License-Identifier: GPL-3.0-or-later
-
-import os
-import stat
-
-from shutil import copyfile
-
-from elbepack.debianize.panels.base import Panel
-from elbepack.debianize.widgets.edit import Edit
-from elbepack.debianize.widgets.radio import RadioGroup
-
-from elbepack.directories import mako_template_dir
-from elbepack.templates import template
-from elbepack.shellhelper import system
-from pkg_resources import parse_version
-
-class ImgType(object):
-    BZ = "bzImage"
-    ZI = "zImage"
-    UI = "uImage"
-    I = "Image"
-
-class Kernel(Panel):
-
-    match_files = ['Kbuild', 'Kconfig', 'MAINTAINERS', 'kernel/futex.c']
-
-    def __init__(self):
-
-        loadaddr = Edit("Load Addr", "0x800800")
-        defconfig = Edit("defconfig", "omap2plus_defconfig")
-        imgtype = RadioGroup("Image Format", ImgType, ImgType.BZ)
-        cross = Edit("Cross compile", "arm-linux-gnueabihf-")
-        k_version = Edit("Kernel version", "4.4")
-
-        grid_elements = [
-            {"loadaddr":loadaddr, "defconfig":defconfig},
-            {"imgtype":imgtype, "cross_compile":cross},
-            {"k_version":k_version}
-        ]
-
-        super(Kernel, self).__init__(grid_elements)
-
-    @staticmethod
-    def imgtype_to_install(imgtype):
-        c = imgtype[0]
-        if c == 'z':
-            return "zinstall"
-        if c == 'u':
-            return "uinstall"
-        return "install"
-
-    def pattern_delete(filename, pattern):
-        f_r = open(filename,"r")
-        lines = f_r.readlines()
-        f_r.close()
-        f_w = open(filename,"w")
-        for line in lines:
-            if not pattern in line:
-                f_w.write(line)
-        f_w.close()
-
-    def debianize(self):
-
-        self.deb['imgtype_install'] = Kernel.imgtype_to_install(self.deb['imgtype'])
-        self.tmpl_dir = os.path.join(mako_template_dir, 'debianize/kernel')
-        pkg_name = self.deb['k_version'] + '-' + self.deb['p_name']
-        self.deb['in_kernel_firmware'] = int(parse_version(self.deb['k_version']) <= parse_version('v4.13'))
-        self.image_dst = f'debian/linux-image-{pkg_name}.install'
-
-        for tmpl in [
-            'control',
-            'rules',
-            'preinst',
-            'postinst',
-            'prerm',
-                'postrm']:
-            with open(os.path.join('debian/', tmpl), 'w') as f:
-                mako = os.path.join(self.tmpl_dir, tmpl + '.mako')
-                f.write(template(mako, self.deb))
-
-        st = os.stat(os.path.join('debian', 'rules'))
-        os.chmod(os.path.join('debian', 'rules'), st.st_mode | stat.S_IEXEC)
-
-        cmd = 'dch --package linux-' + pkg_name + \
-            ' -v ' + self.deb['p_version'] + \
-            ' --create -M -D ' + self.deb['release'] + \
-            ' "generated by elbe debianize"'
-        system(cmd)
-
-        copyfile(os.path.join(self.tmpl_dir, 'linux-image.install'),
-                 'debian/linux-image-' + pkg_name + '.install')
-        copyfile(os.path.join(self.tmpl_dir, 'linux-headers.install'),
-                 'debian/linux-headers-' + pkg_name + '.install')
-        copyfile(os.path.join(self.tmpl_dir, 'linux-libc-dev.install'),
-                 'debian/linux-libc-dev-' + pkg_name + '.install')
-
-        self.hint = (f"use 'dpkg-buildpackage -a{self.deb['p_arch']}' "
-                     "to build the package")
-
-        if not self.deb['in_kernel_firmware']:
-            Kernel.pattern_delete(self.image_dst, "firmware")
diff --git a/elbepack/debianize/panels/uboot.py b/elbepack/debianize/panels/uboot.py
deleted file mode 100644
index ca55d63539..0000000000
--- a/elbepack/debianize/panels/uboot.py
+++ /dev/null
@@ -1,92 +0,0 @@
-# ELBE - Debian Based Embedded Rootfilesystem Builder
-# Copyright (c) 2018 Philipp Rosenberger <p.rosenberger at linutronix.de>
-# Copyright (c) 2018 Torben Hohn <torben.hohn at linutronix.de>
-# Copyright (c) 2019 Olivier Dion <dion at linutronix.de>
-#
-# SPDX-License-Identifier: GPL-3.0-or-later
-
-import os
-import stat
-
-from shutil import copyfile
-
-from pkg_resources import parse_version as V
-
-from elbepack.debianize.base.tui import TUI
-from elbepack.debianize.panels.base import Panel
-from elbepack.debianize.widgets.edit import Edit
-
-from elbepack.templates import template
-from elbepack.directories import mako_template_dir
-from elbepack.shellhelper import system
-
-
-class UBoot(Panel):
-
-    copyright_fname = 'Licenses/README'
-    match_files = ['Makefile', 'Kbuild', 'Kconfig', 'MAINTAINERS', 'config.mk']
-
-    def __init__(self):
-
-        defconfig = Edit("defconfig", "mx7dsabresd_defconfig")
-        cross = Edit("Cross compile", "arm-linux-gnueabihf-")
-        imgname = Edit("Image name", "u-boot-dtb.imx")
-        k_version = Edit("U-Boot Version")
-
-        grid_elements = [
-            {"defconfig": defconfig, "imgname": imgname},
-            {"cross_compile": cross, "k_version": k_version},
-        ]
-
-        super(UBoot, self).__init__(grid_elements)
-
-        self.get_version()
-        k_version.base_widget.set_edit_text(self.verstr)
-
-    def get_version(self):
-        with open('Makefile', 'r') as f:
-            for line in f:
-                if line.startswith('VERSION = '):
-                    version = line.split('=')[1].strip()
-                elif line.startswith('PATCHLEVEL = '):
-                    patchlevel = line.split('=')[1].strip()
-                    break
-
-        self.verstr = version + '.' + patchlevel
-        # With v2014.04 the u-boot Makefile knows the 'tools-only' target.
-        if V(self.verstr) < V('2014.04'):
-            TUI.printf("Only U-Boot >= 2014.04 is supported.\n"
-                       f"This is version '{self.verstr}'")
-
-        if V(self.verstr) >= V('2017.09'):
-            self.deb['envtools'] = 'envtools'
-        else:
-            self.deb['envtools'] = 'env'
-
-    def debianize(self):
-
-        self.tmpl_dir = os.path.join(mako_template_dir, 'debianize/u-boot')
-        pkg_name = self.deb['p_name'] + '-' + self.deb['k_version']
-
-        for tmpl in ['control', 'rules']:
-            with open(os.path.join('debian/', tmpl), 'w') as f:
-                mako = os.path.join(self.tmpl_dir, tmpl + '.mako')
-                f.write(template(mako, self.deb))
-
-        st = os.stat(os.path.join('debian', 'rules'))
-        os.chmod(os.path.join('debian', 'rules'), st.st_mode | stat.S_IEXEC)
-
-        cmd = 'dch --package u-boot-' + pkg_name + \
-            ' -v ' + self.deb['p_version'] + \
-            ' --create -M -D ' + self.deb['release'] + \
-            ' "generated by elbe debianize"'
-        system(cmd)
-
-        copyfile(os.path.join(self.tmpl_dir, 'u-boot-image.install'),
-                 'debian/u-boot-image-' + pkg_name + '.install')
-        copyfile(os.path.join(self.tmpl_dir, 'u-boot-tools.install'),
-                 'debian/u-boot-tools-' + pkg_name + '.install')
-
-        TUI.printf(
-            f"use 'dpkg-buildpackage -a{self.deb['p_arch']}' "
-            "to build the package")
diff --git a/elbepack/debianize/widgets/__init__.py b/elbepack/debianize/widgets/__init__.py
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/elbepack/debianize/widgets/button.py b/elbepack/debianize/widgets/button.py
deleted file mode 100644
index fff9748983..0000000000
--- a/elbepack/debianize/widgets/button.py
+++ /dev/null
@@ -1,52 +0,0 @@
-# ELBE - Debian Based Embedded Rootfilesystem Builder
-# Copyright (c) 2019 Olivier Dion <dion at linutronix.de>
-#
-# SPDX-License-Identifier: GPL-3.0-or-later
-
-
-from urwid import (
-    AttrMap,
-    LineBox,
-    Text,
-    WidgetWrap,
-    connect_signal,
-    emit_signal
-)
-
-from elbepack.debianize.base.tui import TUISignal
-
-
-class Button(WidgetWrap):
-    """
-    A simple and clean button widget
-    """
-
-    signals = [TUISignal.CLICK]
-
-    def __init__(self, text, palette, callback):
-        """
-        @text:  The text of show in the button.
-        @palette:  A valid palette name to apply on the button.  See @TUI::palette
-        @callback:  The callback to call when the button is clicked.
-        """
-
-        widget = LineBox(AttrMap(Text(f"[{text}]", align="center"),
-                                 "default", palette))
-        super(Button, self).__init__(widget)
-        connect_signal(self, TUISignal.CLICK, callback)
-
-        # Very important!  This is not documented in urwid's
-        # documentation!  Without this, the button would only text.
-        self._w.base_widget._selectable = True
-
-    def keypress(self, size, key):
-        if key == "enter":
-            emit_signal(self, TUISignal.CLICK)
-            return None
-        return key
-
-    def mouse_event(self, size, event, button, col, row, focus):
-        if focus and event == "mouse release":
-            emit_signal(self, TUISignal.CLICK)
-            return True
-        return False
diff --git a/elbepack/debianize/widgets/edit.py b/elbepack/debianize/widgets/edit.py
deleted file mode 100644
index 85dfccbba1..0000000000
--- a/elbepack/debianize/widgets/edit.py
+++ /dev/null
@@ -1,14 +0,0 @@
-# ELBE - Debian Based Embedded Rootfilesystem Builder
-# Copyright (c) 2019 Olivier Dion <dion at linutronix.de>
-#
-# SPDX-License-Identifier: GPL-3.0-or-later
-
-
-import urwid
-
-
-def Edit(header='', default='', linebox=True, multiline=False):
-    this = urwid.Edit(("header", f"{header}\n"), default, multiline=multiline)
-    if linebox:
-        this = urwid.LineBox(this)
-    return this
diff --git a/elbepack/debianize/widgets/form.py b/elbepack/debianize/widgets/form.py
deleted file mode 100644
index af8fd7b63a..0000000000
--- a/elbepack/debianize/widgets/form.py
+++ /dev/null
@@ -1,70 +0,0 @@
-# ELBE - Debian Based Embedded Rootfilesystem Builder
-# Copyright (c) 2019 Olivier Dion <dion at linutronix.de>
-#
-# SPDX-License-Identifier: GPL-3.0-or-later
-
-
-from urwid import (
-    Edit,
-    Filler,
-    IntEdit,
-    WidgetDecoration,
-    emit_signal
-)
-
-from elbepack.debianize.base.tui import TUISignal
-from elbepack.debianize.base.tui import TUI
-from elbepack.debianize.widgets.button import Button
-from elbepack.debianize.widgets.grid import Grid
-
-
-WidgetDecoration.get_data = lambda wrapped_widget: wrapped_widget.base_widget.get_data()
-Edit.get_data = Edit.get_edit_text
-IntEdit.get_data = IntEdit.value
-
-
-class Form(Grid):
-
-    signals = [TUISignal.QUIT]
-
-    def __init__(self, named_grid_elements):
-        self.named_widgets = {}
-        unnamed_grid_elements = []
-        for row in named_grid_elements:
-            self.named_widgets.update(row)
-            unnamed_grid_elements.append(list(row.values()))
-
-        confirm = Button("Confirm", "confirm_button", self.confirm)
-        abort = Button("Abort", "abort_button", self.abort)
-        unnamed_grid_elements.append([confirm, abort])
-
-        super(Form, self).__init__(unnamed_grid_elements)
-        self.root = Filler(self, valign="top")
-
-        self.keybind["f5"] = self.confirm
-        self.keybind["f10"] = self.abort
-
-    def confirm(self):
-        data = self.get_form_data()
-        sanitize = self.sanitize_inputs(data)
-        if sanitize:
-            # TODO - Better sanitization handling
-            buf = []
-            for key, value in sanitize.items():
-                buf.append(f"{key}: {value}")
-            TUI.printf('\n'.join(buf))
-        else:
-            self.on_submit(data)
-
-    def abort(self):
-        emit_signal(self, TUISignal.QUIT)
-        TUI.quit()
-
-    def get_form_data(self):
-        return {name: widget.get_data() for name, widget in self.named_widgets.items()}
-
-    def on_submit(self, data):
-        raise Exception("Form can not submit")
-
-    def sanitize_inputs(self, data):
-        return False
diff --git a/elbepack/debianize/widgets/grid.py b/elbepack/debianize/widgets/grid.py
deleted file mode 100644
index 7460f3085e..0000000000
--- a/elbepack/debianize/widgets/grid.py
+++ /dev/null
@@ -1,130 +0,0 @@
-# ELBE - Debian Based Embedded Rootfilesystem Builder
-# Copyright (c) 2019 Olivier Dion <dion at linutronix.de>
-#
-# SPDX-License-Identifier: GPL-3.0-or-later
-
-
-from urwid import (
-    Columns,
-    Pile as Rows,
-    WidgetWrap
-)
-
-
-class Grid(WidgetWrap):
-
-    def __init__(self, rows):
-
-        m = 1
-        cols = []
-
-        for row in rows:
-            if len(row) > m:
-                m = len(row)
-
-            for c in row:
-                if isinstance(c, Grid):
-                    c.parent = self
-
-            cols.append(Columns(row))
-
-        super(Grid, self).__init__(Rows(cols))
-
-        self.n = len(rows)
-        self.m = m
-
-        self.i = 0
-        self.j = 0
-
-        self.focus(self.i, self.j)
-
-        self.keybind = {
-            "down"     : lambda: self.focus_recursive(forward=True, horizontal=False),
-            "up"       : lambda: self.focus_recursive(forward=False, horizontal=False),
-            "tab"      : lambda: self.focus_recursive(forward=True, horizontal=True),
-            "shift tab": lambda: self.focus_recursive(forward=False, horizontal=True)
-        }
-
-        self.aliases = {
-            "ctrl f": "right",
-            "ctrl b": "left",
-            "ctrl p": "up",
-            "ctrl n": "down"
-        }
-
-        self.parent = None
-
-    def focus_direction(self, forward, horizontal):
-
-        j = self.j
-        i = self.i
-        direction = 1 if forward else -1
-
-        while True:
-            if horizontal:
-                j += direction
-                i += j // self.m
-            else:
-                i += direction
-                j += i // self.n
-
-            i %= self.n
-            j %= self.m
-
-            try:
-                self.focus(i, j)
-                break
-            except IndexError:
-                pass
-
-    def focus_recursive(self, forward, horizontal):
-        while True:
-            child = self.current_focus()
-
-            if isinstance(child, Grid):
-                child.focus_recursive(forward, horizontal)
-            elif not forward and self._is_first():
-                if self.parent is not None and not self.parent._is_first():
-                    return self.parent.focus_direction(forward, horizontal)
-                else:
-                    self.focus_direction(forward, horizontal)
-            elif forward and self._is_last():
-                if self.parent is not None and not self.parent._is_last():
-                    return self.parent.focus_direction(forward, horizontal)
-                else:
-                    self.focus_direction(forward, horizontal)
-            else:
-                self.focus_direction(forward, horizontal)
-
-            if self.current_focus().selectable():
-                break
-
-    def focus_first(self):
-        self.focus(0, 0)
-        self.i = 0
-        self.j = 0
-
-    def focus(self, i, j):
-        self._w.base_widget.set_focus_path([i, j])
-        self.i = i
-        self.j = j
-
-    def current_focus(self):
-        return self._w.base_widget.contents[self.i][0].contents[self.j][0].base_widget
-
-    def _is_last(self):
-        return self.i == self.n - 1 and self.j == self.m - 1
-
-    def _is_first(self):
-        return self.i == 0 and self.j == 0
-
-    def keypress(self, size, key):
-
-        if key in self.aliases:
-            key = self.aliases[key]
-
-        if key in self.keybind:
-            self.keybind[key]()
-            return None
-
-        return super(Grid, self).keypress(size, key)
diff --git a/elbepack/debianize/widgets/radio.py b/elbepack/debianize/widgets/radio.py
deleted file mode 100644
index 3432246372..0000000000
--- a/elbepack/debianize/widgets/radio.py
+++ /dev/null
@@ -1,53 +0,0 @@
-# ELBE - Debian Based Embedded Rootfilesystem Builder
-# Copyright (c) 2019 Olivier Dion <dion at linutronix.de>
-#
-# SPDX-License-Identifier: GPL-3.0-or-later
-
-
-from urwid import (
-    LineBox,
-    RadioButton,
-    Text
-)
-
-from elbepack.debianize.widgets.grid import Grid
-
-
-class RadioPolicy(object):
-    HORIZONTAL = 0
-    VERTICAL   = 1
-
-
-class RadioGroup(Grid):
-    def __init__(self, title, enum_type, starting_value, policy=RadioPolicy.VERTICAL):
-        self.selected_value = starting_value
-        self.enum_type = enum_type
-
-        self.radio_group = []
-        for choice in enum_type.__dict__.keys():
-            if choice.startswith('_'):
-                continue
-            RadioButton(self.radio_group,
-                        label=choice.capitalize(),
-                        state=choice == starting_value)
-
-        rows = [
-            [Text(("header", title))]
-        ]
-
-        if policy is RadioPolicy.VERTICAL:
-            for radio in self.radio_group:
-                rows.append([radio])
-        else:
-            col = []
-            for radio in self.radio_group:
-                col.append(radio)
-            rows.append(col)
-
-        super(RadioGroup, self).__init__(rows)
-        self._w = LineBox(self._w)
-
-    def get_data(self):
-        for radio in self.radio_group:
-            if radio.state:
-                return self.enum_type.__dict__[radio.label.upper()]
diff --git a/elbepack/makofiles/debianize/barebox/barebox-image.install b/elbepack/makofiles/debianize/barebox/barebox-image.install
deleted file mode 100644
index a79c136d99..0000000000
--- a/elbepack/makofiles/debianize/barebox/barebox-image.install
+++ /dev/null
@@ -1 +0,0 @@
-./boot/*
diff --git a/elbepack/makofiles/debianize/barebox/barebox-tools.install b/elbepack/makofiles/debianize/barebox/barebox-tools.install
deleted file mode 100644
index 94924c6d6f..0000000000
--- a/elbepack/makofiles/debianize/barebox/barebox-tools.install
+++ /dev/null
@@ -1 +0,0 @@
-./usr/bin/*
diff --git a/elbepack/makofiles/debianize/barebox/control.mako b/elbepack/makofiles/debianize/barebox/control.mako
deleted file mode 100644
index acc2ccbca6..0000000000
--- a/elbepack/makofiles/debianize/barebox/control.mako
+++ /dev/null
@@ -1,25 +0,0 @@
-## ELBE - Debian Based Embedded Rootfilesystem Builder
-## Copyright (c) 2017 Torben Hohn <torben.hohn at linutronix.de>
-## Copyright (c) 2017 Manuel Traut <manut at linutronix.de>
-##
-## SPDX-License-Identifier: GPL-3.0-or-later
-##
-Source: barebox-${p_name}-${k_version}
-Section: admin
-Priority: optional
-Maintainer: ${m_name} <${m_mail}>
-Build-Depends: debhelper (>= 9), bc, lzop | lzop:native, flex | flex:native, bison
-Standards-Version: 3.8.4
-Homepage: http://www.barebox.org/
-
-Package: barebox-image-${p_name}-${k_version}
-Provides: barebox-image
-Architecture: ${p_arch}
-Description: Barebox, version ${p_name} ${k_version}
- This package contains barebox
-
-Package: barebox-tools-${p_name}-${k_version}
-Provides: barebox-tools 
-Architecture: ${p_arch}
-Description: Barebox tools 
- This package provides Barebox Userspace tools
diff --git a/elbepack/makofiles/debianize/barebox/format.mako b/elbepack/makofiles/debianize/barebox/format.mako
deleted file mode 100644
index 5062aaa59e..0000000000
--- a/elbepack/makofiles/debianize/barebox/format.mako
+++ /dev/null
@@ -1,7 +0,0 @@
-## ELBE - Debian Based Embedded Rootfilesystem Builder
-## Copyright (c) 2017 Torben Hohn <torben.hohn at linutronix.de>
-## Copyright (c) 2017 Manuel Traut <manut at linutronix.de>
-##
-## SPDX-License-Identifier: GPL-3.0-or-later
-##
-3.0 (${source_format})
diff --git a/elbepack/makofiles/debianize/barebox/rules.mako b/elbepack/makofiles/debianize/barebox/rules.mako
deleted file mode 100755
index 3f141d5cc2..0000000000
--- a/elbepack/makofiles/debianize/barebox/rules.mako
+++ /dev/null
@@ -1,73 +0,0 @@
-## ELBE - Debian Based Embedded Rootfilesystem Builder
-## Copyright (c) 2017 Torben Hohn <torben.hohn at linutronix.de>
-## Copyright (c) 2017 Manuel Traut <manut at linutronix.de>
-##
-## SPDX-License-Identifier: GPL-3.0-or-later
-##
-#!/usr/bin/make -f
-
-<%
-items = imgname.split(' ')
-img_name_aux = ''
-img_name = items[0]
-if len(items) > 1:
-    img_name_aux = items[1]
-
-items = defconfig.split(' ')
-def_config_aux = ''
-def_config = items[0]
-if len(items) > 1:
-    def_config_aux = items[1]
-%>
-
-BOOT_PATH=`pwd`/debian/tmp/boot
-TOOL_PATH=`pwd`/debian/tmp/usr/bin
-
-MAKE_OPTS= \
-ARCH=${k_arch} \
-CROSS_COMPILE=${cross_compile} \
-KERNELRELEASE=${k_version}-${p_name}
-
-#export DH_VERBOSE=1
-export LDFLAGS=
-
-override_dh_auto_clean:
-	mkdir -p debian/build
-% if def_config_aux:
-	mkdir -p debian/build-aux
-% endif
-	rm -f debian/files
-	rm -rf debian/tmp
-	make $(MAKE_OPTS) O=debian/build clean
-% if def_config_aux:
-	make $(MAKE_OPTS) O=debian/build-aux clean
-% endif
-
-override_dh_auto_configure:
-	mkdir -p debian/build
-	make $(MAKE_OPTS) O=debian/build ${def_config}
-% if def_config_aux:
-	mkdir -p debian/build-aux
-	make $(MAKE_OPTS) O=debian/build-aux ${def_config_aux}
-% endif
-
-override_dh_auto_build:
-	rm -rf include/config
-	make -j`nproc` $(MAKE_OPTS) O=debian/build
-% if def_config_aux:
-	make -j`nproc` $(MAKE_OPTS) O=debian/build-aux
-% endif
-
-override_dh_auto_test:
-
-override_dh_auto_install:
-	mkdir -p $(TOOL_PATH) $(BOOT_PATH)
-	cp debian/build/images/${img_name} $(BOOT_PATH)
-% if img_name_aux:
-	cp debian/build-aux/images/${img_name_aux} $(BOOT_PATH)
-% endif
-	-cp debian/build/scripts/bareboxcrc32-target $(TOOL_PATH)/bareboxcrc32
-	-cp debian/build/scripts/bareboxenv-target $(TOOL_PATH)/bareboxenv
-
-%%:
-	dh $@
diff --git a/elbepack/makofiles/debianize/kernel/control.mako b/elbepack/makofiles/debianize/kernel/control.mako
deleted file mode 100644
index 5016330d52..0000000000
--- a/elbepack/makofiles/debianize/kernel/control.mako
+++ /dev/null
@@ -1,39 +0,0 @@
-## ELBE - Debian Based Embedded Rootfilesystem Builder
-## Copyright (c) 2016-2017 Manuel Traut <manut at linutronix.de>
-## Copyright (c) 2016 John Ogness <john.ogness at linutronix.de>
-## Copyright (c) 2017 Philipp Rosenberger <p.rosenberger at linutronix.de>
-##
-## SPDX-License-Identifier: GPL-3.0-or-later
-##
-Source: linux-${k_version}-${p_name}
-Section: kernel
-Priority: optional
-Maintainer: ${m_name} <${m_mail}>
-Build-Depends: debhelper (>= 9), bc, rsync, kmod, cpio, bison, flex | flex:native, libelf-dev:native, libssl-dev:native, lzop | lzop:native, u-boot-tools
-Standards-Version: 3.8.4
-Homepage: http://www.kernel.org/
-
-Package: linux-image-${k_version}-${p_name}
-Depends: kmod | module-init-tools, linux-base (>= 3~), debconf (>= 0.5) | debconf-2.0, initramfs-tools (>= 0.99~) | linux-initramfs-tool, busybox
-Pre-Depends: debconf | debconf-2.0
-Provides: linux-image, linux-image-2.6
-Architecture: ${p_arch}
-Description: Linux kernel, version ${k_version} ${p_name}
- This package contains the Linux kernel, modules and corresponding other
- files
-
-Package: linux-headers-${k_version}-${p_name}
-Provides: linux-headers, linux-headers-2.6
-Architecture: ${p_arch}
-Description: Linux kernel headers
- This package provides kernel header files
- .
- This is useful for people who need to build external modules
-
-Package: linux-libc-dev-${k_version}-${p_name}
-Provides: linux-libc-dev, linux-kernel-headers, linux-headers-2.6
-Replaces: linux-libc-dev
-Architecture: ${p_arch}
-Description: Linux support headers for userspace development
- This package provides userspaces headers from the Linux kernel. These headers
- are used by the installed headers for GNU glibc and other system libraries.
diff --git a/elbepack/makofiles/debianize/kernel/format.mako b/elbepack/makofiles/debianize/kernel/format.mako
deleted file mode 100644
index f4d82fb3cb..0000000000
--- a/elbepack/makofiles/debianize/kernel/format.mako
+++ /dev/null
@@ -1,6 +0,0 @@
-## ELBE - Debian Based Embedded Rootfilesystem Builder
-## Copyright (c) 2016-2017 Manuel Traut <manut at linutronix.de>
-##
-## SPDX-License-Identifier: GPL-3.0-or-later
-##
-3.0 (${source_format})
diff --git a/elbepack/makofiles/debianize/kernel/linux-headers.install b/elbepack/makofiles/debianize/kernel/linux-headers.install
deleted file mode 100644
index c2304b3255..0000000000
--- a/elbepack/makofiles/debianize/kernel/linux-headers.install
+++ /dev/null
@@ -1,2 +0,0 @@
-./lib/modules/*/build
-./usr/src/*
diff --git a/elbepack/makofiles/debianize/kernel/linux-image.install b/elbepack/makofiles/debianize/kernel/linux-image.install
deleted file mode 100644
index aa29869ed9..0000000000
--- a/elbepack/makofiles/debianize/kernel/linux-image.install
+++ /dev/null
@@ -1,5 +0,0 @@
-./boot/*
-./lib/modules/*/modules.*
-./lib/modules/*/kernel/*
-./lib/firmware/*
-./usr/lib/*
diff --git a/elbepack/makofiles/debianize/kernel/linux-libc-dev.install b/elbepack/makofiles/debianize/kernel/linux-libc-dev.install
deleted file mode 100644
index 8083740b84..0000000000
--- a/elbepack/makofiles/debianize/kernel/linux-libc-dev.install
+++ /dev/null
@@ -1 +0,0 @@
-./debian/tmp/usr/include/
diff --git a/elbepack/makofiles/debianize/kernel/postinst.mako b/elbepack/makofiles/debianize/kernel/postinst.mako
deleted file mode 100755
index f8fa1345fc..0000000000
--- a/elbepack/makofiles/debianize/kernel/postinst.mako
+++ /dev/null
@@ -1,18 +0,0 @@
-## ELBE - Debian Based Embedded Rootfilesystem Builder
-## Copyright (c) 2016 John Ogness <john.ogness at linutronix.de>
-## Copyright (c) 2017 Manuel Traut <manut at linutronix.de>
-##
-## SPDX-License-Identifier: GPL-3.0-or-later
-##
-#!/bin/sh
-
-set -e
-
-# Pass maintainer script parameters to hook scripts
-export DEB_MAINT_PARAMS="$*"
-
-# Tell initramfs builder whether it's wanted
-export INITRD=Yes
-
-test -d /etc/kernel/postinst.d && run-parts --arg="${k_version}-${p_name}" --arg="/boot/vmlinuz-${k_version}-${p_name}" /etc/kernel/postinst.d
-exit 0
diff --git a/elbepack/makofiles/debianize/kernel/postrm.mako b/elbepack/makofiles/debianize/kernel/postrm.mako
deleted file mode 100755
index 22585559d6..0000000000
--- a/elbepack/makofiles/debianize/kernel/postrm.mako
+++ /dev/null
@@ -1,18 +0,0 @@
-## ELBE - Debian Based Embedded Rootfilesystem Builder
-## Copyright (c) 2016 John Ogness <john.ogness at linutronix.de>
-## Copyright (c) 2017 Manuel Traut <manut at linutronix.de>
-##
-## SPDX-License-Identifier: GPL-3.0-or-later
-##
-#!/bin/sh
-
-set -e
-
-# Pass maintainer script parameters to hook scripts
-export DEB_MAINT_PARAMS="$*"
-
-# Tell initramfs builder whether it's wanted
-export INITRD=Yes
-
-test -d /etc/kernel/postrm.d && run-parts --arg="${k_version}-${p_name}" --arg="/boot/vmlinuz-${k_version}-${p_name}" /etc/kernel/postrm.d
-exit 0
diff --git a/elbepack/makofiles/debianize/kernel/preinst.mako b/elbepack/makofiles/debianize/kernel/preinst.mako
deleted file mode 100755
index bd6d2f2f2d..0000000000
--- a/elbepack/makofiles/debianize/kernel/preinst.mako
+++ /dev/null
@@ -1,18 +0,0 @@
-## ELBE - Debian Based Embedded Rootfilesystem Builder
-## Copyright (c) 2016 John Ogness <john.ogness at linutronix.de>
-## Copyright (c) 2017 Manuel Traut <manut at linutronix.de>
-##
-## SPDX-License-Identifier: GPL-3.0-or-later
-##
-#!/bin/sh
-
-set -e
-
-# Pass maintainer script parameters to hook scripts
-export DEB_MAINT_PARAMS="$*"
-
-# Tell initramfs builder whether it's wanted
-export INITRD=Yes
-
-test -d /etc/kernel/preinst.d && run-parts --arg="${k_version}-${p_name}" --arg="/boot/vmlinuz-${k_version}-${p_name}" /etc/kernel/preinst.d
-exit 0
diff --git a/elbepack/makofiles/debianize/kernel/prerm.mako b/elbepack/makofiles/debianize/kernel/prerm.mako
deleted file mode 100755
index 865223e993..0000000000
--- a/elbepack/makofiles/debianize/kernel/prerm.mako
+++ /dev/null
@@ -1,18 +0,0 @@
-## ELBE - Debian Based Embedded Rootfilesystem Builder
-## Copyright (c) 2016 John Ogness <john.ogness at linutronix.de>
-## Copyright (c) 2017 Manuel Traut <manut at linutronix.de>
-##
-## SPDX-License-Identifier: GPL-3.0-or-later
-##
-#!/bin/sh
-
-set -e
-
-# Pass maintainer script parameters to hook scripts
-export DEB_MAINT_PARAMS="$*"
-
-# Tell initramfs builder whether it's wanted
-export INITRD=Yes
-
-test -d /etc/kernel/prerm.d && run-parts --arg="${k_version}-${p_name}" --arg="/boot/vmlinuz-${k_version}-${p_name}" /etc/kernel/prerm.d
-exit 0
diff --git a/elbepack/makofiles/debianize/kernel/rules.mako b/elbepack/makofiles/debianize/kernel/rules.mako
deleted file mode 100755
index b91813312d..0000000000
--- a/elbepack/makofiles/debianize/kernel/rules.mako
+++ /dev/null
@@ -1,115 +0,0 @@
-## ELBE - Debian Based Embedded Rootfilesystem Builder
-## Copyright (c) 2016-2017 Manuel Traut <manut at linutronix.de>
-## Copyright (c) 2016 John Ogness <john.ogness at linutronix.de>
-## Copyright (c) 2017 Martin Kaistra <martin.kaistra at linutronix.de>
-## Copyright (c) 2017 Philipp Rosenberger <p.rosenberger at linutronix.de>
-##
-## SPDX-License-Identifier: GPL-3.0-or-later
-##
-#!/usr/bin/make -f
-
-PWD:=$(shell pwd)
-REL:=${k_version}-${p_name}
-
-DEB_DIR:=$(PWD)/debian
-TMP_DIR:=$(DEB_DIR)/tmp
-BUILD_DIR:=$(DEB_DIR)/build
-
-MOD_PATH:=$(TMP_DIR)
-ifeq ($(in_kernel_firmware), 1)
-FW_PATH:=$(TMP_DIR)/lib/firmware
-else
-FW_PATH:=
-endif
-KERNEL_PATH:=$(TMP_DIR)/boot
-HDR_PATH:=$(TMP_DIR)/usr
-KERNEL_HDR_PATH:=$(TMP_DIR)/usr/src/linux-headers-$(REL)
-DTBS_PATH:=$(TMP_DIR)/usr/lib/linux-image-$(REL)
-
-ARCH:=${k_arch}
-SRCARCH:=$(ARCH)
-# Additional ARCH settings for x86
-ifeq ($(ARCH),i386)
-        SRCARCH := x86
-endif
-ifeq ($(ARCH),x86_64)
-        SRCARCH := x86
-endif
-
-MAKE_OPTS= \
-ARCH=$(ARCH) \
-CROSS_COMPILE=${cross_compile} \
-KERNELRELEASE=$(REL) \
-LOADADDR=${loadaddr} \
-INSTALL_MOD_PATH=$(MOD_PATH) \
-INSTALL_HDR_PATH=$(HDR_PATH) \
-INSTALL_PATH=$(KERNEL_PATH) \
-INSTALL_DTBS_PATH=$(DTBS_PATH) \
-O=$(BUILD_DIR)
-
-ifeq ($(in_kernel_firmware), 1)
-MAKE_OPTS += INSTALL_FW_PATH=$(FW_PATH)
-endif
-
-ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
-    NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
-    MAKE_OPTS += -j$(NUMJOBS)
-endif
-
-#export DH_VERBOSE=1
-
-override_dh_auto_clean:
-	mkdir -p debian/build
-	rm -f debian/files
-	rm -rf debian/tmp
-	$(MAKE) $(MAKE_OPTS) clean
-
-override_dh_auto_configure:
-	mkdir -p debian/build
-	$(MAKE) $(MAKE_OPTS) ${defconfig}
-
-override_dh_auto_build:
-	rm -rf include/config
-	$(MAKE) $(MAKE_OPTS) ${imgtype} modules
-	if test ${k_arch} = arm -o ${k_arch} = arm64; then \
-		make -j`nproc` $(MAKE_OPTS) dtbs; \
-	fi
-
-override_dh_auto_install:
-	mkdir -p $(MOD_PATH) $(FW_PATH) $(HDR_PATH) $(KERNEL_PATH) $(DTBS_PATH)
-	$(MAKE) $(MAKE_OPTS) ${imgtype_install}
-	$(MAKE) $(MAKE_OPTS) INSTALL_MOD_STRIP=1 modules_install
-	if test $(in_kernel_firmware) -eq 1; then \
-		$(MAKE) $(MAKE_OPTS) firmware_install; \
-	fi
-	$(MAKE) $(MAKE_OPTS) headers_install
-	if test ${k_arch} = arm -o ${k_arch} = arm64; then \
-		make $(MAKE_OPTS) dtbs_install; \
-	fi
-	# Build kernel header package
-	rm -f "$(TMP_DIR)/lib/modules/$(REL)/build" "$(TMP_DIR)/lib/modules/$(REL)/source"
-	find . -name Makefile\* -o -name Kconfig\* -o -name \*.pl > $(DEB_DIR)/hdrsrcfiles
-	find arch/*/include include scripts -type f >> $(DEB_DIR)/hdrsrcfiles
-	find arch/$(SRCARCH) -name module.lds -o -name Kbuild.platforms -o -name Platform >> $(DEB_DIR)/hdrsrcfiles
-	find `find arch/$(SRCARCH) -name include -o -name scripts -type d` -type f >> $(DEB_DIR)/hdrsrcfiles
-	if grep -q '^CONFIG_STACK_VALIDATION=y' $(BUILD_DIR)/.config ; then \
-		(cd $(BUILD_DIR); find tools/objtool -type f -executable) >> $(DEB_DIR)/hdrobjfiles ; \
-	fi
-	(cd $(BUILD_DIR); find arch/$(SRCARCH)/include Module.symvers include scripts -type f) >> $(DEB_DIR)/hdrobjfiles
-	if grep -q '^CONFIG_GCC_PLUGINS=y' $(BUILD_DIR)/.config ; then \
-			(cd $(BUILD_DIR); find scripts/gcc-plugins -name \*.so -o -name gcc-common.h) >> $(DEB_DIR)/hdrobjfiles ; \
-	fi
-	mkdir -p "$(KERNEL_HDR_PATH)"
-	tar -c -f - -T - < "$(DEB_DIR)/hdrsrcfiles" | (cd $(KERNEL_HDR_PATH); tar -xf -)
-	(cd $(BUILD_DIR); tar -c -f - -T -) < "$(DEB_DIR)/hdrobjfiles" | (cd $(KERNEL_HDR_PATH); tar -xf -)
-	(cd $(BUILD_DIR); cp $(BUILD_DIR)/.config $(KERNEL_HDR_PATH)/.config) # copy .config manually to be where it's expected to be
-	ln -sf "/usr/src/linux-headers-$(REL)" "$(TMP_DIR)/lib/modules/$(REL)/build"
-	rm -f "$(DEB_DIR)/hdrsrcfiles" "$(DEB_DIR)/hdrobjfiles"
-
-override_dh_install:
-	dh_install -X/scripts/
-
-override_dh_auto_test:
-
-%%:
-	dh $@
diff --git a/elbepack/makofiles/debianize/u-boot/control.mako b/elbepack/makofiles/debianize/u-boot/control.mako
deleted file mode 100644
index f76d48b83e..0000000000
--- a/elbepack/makofiles/debianize/u-boot/control.mako
+++ /dev/null
@@ -1,28 +0,0 @@
-## ELBE - Debian Based Embedded Rootfilesystem Builder
-## Copyright (c) 2018 Philipp Rosenberger <p.rosenberger at linutronix.de>
-##
-## SPDX-License-Identifier: GPL-3.0-or-later
-##
-Source: u-boot-${p_name}-${k_version}
-Section: admin
-Priority: optional
-Maintainer: ${m_name} <${m_mail}>
-Build-Depends: debhelper (>= 9), bc
-Standards-Version: 3.8.4
-Homepage: http://www.denx.de/wiki/U-Boot/
-
-Package: u-boot-image-${p_name}-${k_version}
-Provides: u-boot-image
-Architecture: ${p_arch}
-Description: A boot loader for embedded systems
- Das U-Boot is a cross-platform bootloader for embedded systems, used as the default boot loader by several board
- vendors.  It is intended to be easy to port and to debug, and runs on many supported architectures, including PPC,
- ARM, MIPS, x86, m68k, NIOS, and Microblaze.
-
-Package: u-boot-tools-${p_name}-${k_version}
-Provides: u-boot-tools
-Architecture: ${p_arch}
-Description: companion tools for Das U-Boot bootloader
- This package includes the mkimage program, which allows generation of U-Boot
- images in various formats, and the fw_printenv and fw_setenv programs to read
- and modify U-Boot's environment.
diff --git a/elbepack/makofiles/debianize/u-boot/format.mako b/elbepack/makofiles/debianize/u-boot/format.mako
deleted file mode 100644
index 8f87974dfd..0000000000
--- a/elbepack/makofiles/debianize/u-boot/format.mako
+++ /dev/null
@@ -1,6 +0,0 @@
-## ELBE - Debian Based Embedded Rootfilesystem Builder
-## Copyright (c) 2018 Philipp Rosenberger <p.rosenberger at linutronix.de>
-##
-## SPDX-License-Identifier: GPL-3.0-or-later
-##
-3.0 (${source_format})
diff --git a/elbepack/makofiles/debianize/u-boot/rules.mako b/elbepack/makofiles/debianize/u-boot/rules.mako
deleted file mode 100755
index fd1c987eba..0000000000
--- a/elbepack/makofiles/debianize/u-boot/rules.mako
+++ /dev/null
@@ -1,49 +0,0 @@
-## ELBE - Debian Based Embedded Rootfilesystem Builder
-## Copyright (c) 2018 Philipp Rosenberger <p.rosenberger at linutronix.de>
-##
-## SPDX-License-Identifier: GPL-3.0-or-later
-##
-#!/usr/bin/make -f
-
-BOOT_PATH=`pwd`/debian/tmp/boot
-TOOL_PATH=`pwd`/debian/tmp/usr/bin
-
-BUILD_DIR=`pwd`/debian/build
-
-MAKE_OPTS= \
-ARCH=${k_arch} \
-CROSS_COMPILE=${cross_compile} \
-KERNELRELEASE=${k_version}-${p_name} \
-O=$(BUILD_DIR)
-
-#export DH_VERBOSE=1
-export LDFLAGS=
-
-override_dh_auto_test:
-	# skip tests.
-
-override_dh_auto_clean:
-	mkdir -p $(BUILD_DIR)
-	rm -f debian/files
-	rm -rf debian/tmp
-	make $(MAKE_OPTS) clean
-
-override_dh_auto_configure:
-	mkdir -p $(BUILD_DIR)
-	make $(MAKE_OPTS) ${defconfig}
-
-override_dh_auto_build:
-	make -j`nproc` $(MAKE_OPTS)
-	make -j`nproc` $(MAKE_OPTS) ${envtools}
-	make -j`nproc` $(MAKE_OPTS) CROSS_BUILD_TOOLS=y tools-only
-
-override_dh_auto_install:
-	mkdir -p $(TOOL_PATH) $(BOOT_PATH)
-	cp $(BUILD_DIR)/${imgname} $(BOOT_PATH)
-	-cp $(BUILD_DIR)/tools/dumpimage $(TOOL_PATH)
-	-cp $(BUILD_DIR)/tools/mkenvimage $(TOOL_PATH)
-	-cp $(BUILD_DIR)/tools/mkimage $(TOOL_PATH)
-	-cp $(BUILD_DIR)/tools/env/fw_printenv $(TOOL_PATH)
-
-%%:
-	dh $@
diff --git a/elbepack/makofiles/debianize/u-boot/u-boot-image.install b/elbepack/makofiles/debianize/u-boot/u-boot-image.install
deleted file mode 100644
index a79c136d99..0000000000
--- a/elbepack/makofiles/debianize/u-boot/u-boot-image.install
+++ /dev/null
@@ -1 +0,0 @@
-./boot/*
diff --git a/elbepack/makofiles/debianize/u-boot/u-boot-tools.install b/elbepack/makofiles/debianize/u-boot/u-boot-tools.install
deleted file mode 100644
index 94924c6d6f..0000000000
--- a/elbepack/makofiles/debianize/u-boot/u-boot-tools.install
+++ /dev/null
@@ -1 +0,0 @@
-./usr/bin/*
diff --git a/elbepack/makofiles/debianize/u-boot/u-boot-tools.links b/elbepack/makofiles/debianize/u-boot/u-boot-tools.links
deleted file mode 100644
index 92f5a6cbc4..0000000000
--- a/elbepack/makofiles/debianize/u-boot/u-boot-tools.links
+++ /dev/null
@@ -1 +0,0 @@
-/usr/bin/fw_printenv /usr/bin/fw_setenv
diff --git a/setup.py b/setup.py
index b629684fd0..10a1123ca8 100644
--- a/setup.py
+++ b/setup.py
@@ -56,16 +56,8 @@ setup(name='elbe',
                 'elbepack.commands',
                 'elbepack.daemons',
                 'elbepack.daemons.soap',
-                'elbepack.debianize',
-                'elbepack.debianize.panels',
-                'elbepack.debianize.widgets',
-                'elbepack.debianize.base',
                 ],
       package_data={'elbepack': ["makofiles/*.mako",
-                                 "makofiles/debianize/*/*.mako",
-                                 "makofiles/debianize/*/*.install",
-                                 "makofiles/debianize/*/*.links",
-                                 "makofiles/debianize/*/copyright",
                                  "init/*.mako",
                                  "init/*.xml",
                                  "default-preseed.xml",
-- 
2.39.2



More information about the elbe-devel mailing list