Skip to content
This repository was archived by the owner on Nov 1, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added .gitmodules
Empty file.
4 changes: 2 additions & 2 deletions kernel_builder/config/variants.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
},
"config": {
"CONFIG_KSU": true,
"CONFIG_KPM": false,
"CONFIG_KPM": true,
"CONFIG_KSU_SUSFS": false,
"CONFIG_KSU_KPROBES_HOOK": false,
"CONFIG_KSU_TRACEPOINT_HOOK": true
Expand Down Expand Up @@ -79,7 +79,7 @@
},
"config": {
"CONFIG_KSU": true,
"CONFIG_KPM": false,
"CONFIG_KPM": true,
"CONFIG_KSU_KPROBES_HOOK": false,
"CONFIG_KSU_TRACEPOINT_HOOK": true,
"CONFIG_KSU_SUSFS": true,
Expand Down
3 changes: 3 additions & 0 deletions kernel_builder/kernel_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
from kernel_builder.constants import OUTPUT, TOOLCHAIN, WORKSPACE
from kernel_builder.post_build.export_env import GithubExportEnv
from kernel_builder.post_build.flashable import FlashableBuilder
from kernel_builder.post_build.kpm import KPMPatcher
from kernel_builder.pre_build.ksu import KSUInstaller
from kernel_builder.pre_build.lxc import LXCPatcher
from kernel_builder.pre_build.susfs import SUSFSPatcher
Expand All @@ -33,6 +34,7 @@ def __init__(self, ksu: str, susfs: bool, lxc: bool) -> None:
self.use_susfs: bool = susfs
self.use_lxc: bool = lxc

self.kpm: KPMPatcher = KPMPatcher(ksu)
self.ksu: KSUInstaller = KSUInstaller(ksu, susfs)
self.susfs: SUSFSPatcher = SUSFSPatcher(ksu, susfs)
self.lxc: LXCPatcher = LXCPatcher(lxc)
Expand Down Expand Up @@ -104,6 +106,7 @@ def run_build(self) -> None:
self.builder.build()

# Post build
self.kpm.patch()
self.export_env.export_github_env()

# Build flashable
Expand Down
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[project]
name = "kernel_builder"
version = "1.0.0"
description = "A python android12-5.10 gki kernel builder"
description = "A python gki kernel builder"
readme = "README.md"
license = "GPL-3.0"
license-files = ["LICENSE"]
license-files = ["LICEN[CS]E*"]
requires-python = ">=3.12"
dependencies = [
"lz4>=4.4.4",
Expand All @@ -22,7 +22,7 @@ dependencies = [
[tool.ruff]
target-version = "py312"
line-length = 120
extend-exclude = ["tests", "typings", "preserved"]
extend-exclude = ["tests", "typings"]

[tool.ruff.lint]
extend-select = ["I"]
Expand All @@ -41,7 +41,7 @@ line-ending = "auto"

[tool.basedpyright]
include = ["kernel_builder"]
exclude = ["tests", "typings", "preserved"]
exclude = ["tests", "typings"]

pythonVersion = "3.12"
pythonPlatform = "Linux"
Expand Down
6 changes: 3 additions & 3 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.