-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
release: bump KSU version to v0.9.3, update interface usage, add arch…
…itecture docs
- Loading branch information
Showing
52 changed files
with
803 additions
and
374 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,27 @@ | ||
from typing import Literal | ||
from pydantic import BaseModel | ||
|
||
from builder.core import AssetsCollector | ||
from builder.interfaces import ICommand | ||
|
||
|
||
class AssetsCommand(BaseModel, ICommand): | ||
"""Command responsible for launching the 'assets_collector' core module directly. | ||
:param str codename: Device codename. | ||
:param str base: Kernel source base. | ||
:param Literal["full","minimal"] chroot: Chroot type. | ||
:param bool rom_only: Flag indicating ROM-only asset collection. | ||
:param bool ksu: Flag indicating KernelSU support. | ||
""" | ||
|
||
codename: str | ||
base: str | ||
chroot: Literal["full", "minimal"] | ||
clean_assets: bool | ||
rom_only: bool | ||
ksu: bool | ||
|
||
class AssetsCommand(AssetsCollector): | ||
"""A command responsible for launching the 'assets_collector' core module directly.""" | ||
def execute(self) -> None: | ||
kb = AssetsCollector(**self.__dict__) | ||
kb.run() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,29 @@ | ||
from pydantic import BaseModel | ||
|
||
from builder.core import KernelBuilder | ||
from builder.managers import ResourceManager | ||
from builder.interfaces import ICommand | ||
|
||
class KernelCommand(BaseModel, ICommand): | ||
"""Command responsible for launching the 'kernel_builder' core module directly. | ||
:param str codename: Device codename. | ||
:param str base: Kernel source base. | ||
:param str lkv: Linux kernel version. | ||
:param bool clean_kernel: Flag to clean folder with kernel sources. | ||
:param bool ksu: Flag indicating KernelSU support. | ||
""" | ||
|
||
class KernelCommand(KernelBuilder): | ||
"""A command responsible for launching the 'kernel_builder' core module directly.""" | ||
codename: str | ||
base: str | ||
lkv: str | ||
clean_kernel: bool | ||
ksu: bool | ||
|
||
def __init__(self, **kwargs) -> None: | ||
super().__init__(**kwargs) | ||
def execute(self) -> None: | ||
# create resource manager and pass it to the builder | ||
kb = KernelBuilder( | ||
**self.__dict__, | ||
rm=ResourceManager(codename=self.codename, lkv=self.lkv, base=self.base) | ||
) | ||
kb.run() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.