Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
3a50e63
Add plato
A1cInt Jul 10, 2026
a355225
Add plato
A1cInt Jul 10, 2026
e6948aa
Add plato
A1cInt Jul 10, 2026
d2c4ed5
Add plato
A1cInt Jul 10, 2026
5070863
Add plato
A1cInt Jul 10, 2026
dde5107
Add plato
A1cInt Jul 10, 2026
6fa7da4
Add plato
A1cInt Jul 10, 2026
6b9e2e3
Add plato folder for modules
A1cInt Jul 10, 2026
0d747df
Add modules load files for plato
A1cInt Jul 10, 2026
c8fec0f
Delete modules/load/plato/.gitkeep
A1cInt Jul 10, 2026
ba2b40d
Add folder for xaga modules load files
A1cInt Jul 10, 2026
690f237
Delete modules/load/modules.load.vendor_boot
A1cInt Jul 10, 2026
dea415c
Delete modules/load/modules.load
A1cInt Jul 10, 2026
530fd8f
Delete modules/load/modules.load.recovery
A1cInt Jul 10, 2026
2df73d1
Add modules load files for xaga
A1cInt Jul 10, 2026
c030519
Add modules load files target logic
A1cInt Jul 10, 2026
4616568
Delete modules/load/xaga directory
A1cInt Jul 11, 2026
415f79e
Delete modules/load/plato directory
A1cInt Jul 11, 2026
ea7fad4
Create .gitkeep
A1cInt Jul 11, 2026
53af103
Add plato modules load files
A1cInt Jul 11, 2026
b506331
Delete xaga target
A1cInt Jul 11, 2026
be24050
Delete xaga target
A1cInt Jul 11, 2026
09d70bd
Delete xaga target
A1cInt Jul 11, 2026
a0712a9
Delete xaga target
A1cInt Jul 11, 2026
7967056
Delete .github/matrix/xaga.json
A1cInt Jul 11, 2026
d07367a
Delete xaga target
A1cInt Jul 11, 2026
09051dd
idk. fix?
A1cInt Jul 11, 2026
e0ee2da
Delete modules/load/.gitkeep
A1cInt Jul 11, 2026
ea9eb95
Pray for the fix
A1cInt Jul 11, 2026
b28917a
Update kernel and build configuration settings
A1cInt Jul 11, 2026
056d567
Don't go mad...
A1cInt Jul 11, 2026
43c1177
in my mind... in my head...
A1cInt Jul 11, 2026
590aa6d
Changed sources
A1cInt Jul 11, 2026
c3fa975
Xddcc
A1cInt Jul 11, 2026
b708015
Change default build target from 'xaga' to 'plato'
A1cInt Jul 11, 2026
a8705f9
Update comment for module packaging section
A1cInt Jul 12, 2026
f047e18
fix plato boot.img package making
A1cInt Jul 12, 2026
54275ee
Fix number ONE
A1cInt Jul 12, 2026
0423aeb
Fix number TWO
A1cInt Jul 12, 2026
7b447e5
Fix number TREE
A1cInt Jul 12, 2026
59aceb5
Fix number FOUR
A1cInt Jul 13, 2026
6a725e9
Fix number FIVE
A1cInt Jul 13, 2026
4dc8f4a
Fix number SIX
A1cInt Jul 13, 2026
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
5 changes: 1 addition & 4 deletions .github/matrix/xaga.json → .github/matrix/plato.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
{
"variant": [
{ "name": "VNL", "KSU": false, "SUSFS": false, "LXC": false },
{ "name": "VNL-LXC", "KSU": false, "SUSFS": false, "LXC": true },
{ "name": "KSU", "KSU": true, "SUSFS": false, "LXC": false },
{ "name": "KSU-SUSFS", "KSU": true, "SUSFS": true, "LXC": false },
{ "name": "KSU-LXC", "KSU": true, "SUSFS": false, "LXC": true },
{ "name": "KSU-SUSFS-LXC", "KSU": true, "SUSFS": true, "LXC": true }
{ "name": "KSU-SUSFS", "KSU": true, "SUSFS": true, "LXC": false }
]
}
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ on:
inputs:
BUILD_TARGET:
description: "Build target"
default: xaga
default: plato
type: choice
options:
- xaga
- generic
- plato

BRANCH_OVERRIDE:
description: "Kernel branch overriding"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ on:
description: "Build target"
type: choice
required: true
default: xaga
default: plato
options:
- xaga
- generic
- plato
create_release:
description: "Create release?"
type: boolean
Expand Down Expand Up @@ -168,7 +168,7 @@ jobs:
| **-VNL** | No KernelSU |
| **-KSU** | KernelSU |
| **-SUSFS** | SUSFS Support |
| **-LXC** | LXC Support for xaga builds |
| **-LXC** | LXC not tested for plato builds |

> [!IMPORTANT]
> For installation instructions and issue reporting guidelines, please refer to the README.md
Expand Down
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# esk builder

builds esk kernel packages for xaga and generic.
builds esk kernel packages for plato and generic.

pulls sources and tools, applies optional patches, then builds and packages the kernel.

Expand All @@ -17,7 +17,7 @@ just build
for a target-specific build:

```bash
just xaga
just plato
just generic
```

Expand All @@ -28,14 +28,14 @@ just generic
- build/: setup, source fetching, patching, and kernel compile steps
- ci/: packaging, metadata, modules, and telegram helpers
- py/: uv-managed python helper cli
- modules/: `modules.load` files for xaga module packaging
- modules/: `modules.load` files for plato module packaging
- kernel_patches/: optional kernel patches
- .github/workflows/: ci and release workflows

## build flow

```text
just build / just xaga / just generic
just build / just plato / just generic
|
v
build.sh
Expand Down Expand Up @@ -105,10 +105,10 @@ build with the default target:
just build
```

build xaga:
build plato:

```bash
just xaga
just plato
```

build generic:
Expand All @@ -120,7 +120,7 @@ just generic
example:

```bash
just xaga KSU=true SUSFS=true LXC=false
just plato KSU=true SUSFS=true
```

## checks
Expand Down Expand Up @@ -153,12 +153,12 @@ just clean

| env var | purpose | accepted values | default |
| --------------- | -------------------------------------------- | -------------------------------- | --------------------------------- |
| BUILD_TARGET | select the build target | `xaga`, `generic` | `xaga` |
| BUILD_TARGET | select the build target | `plato`, `generic` | `plato` |
| KSU | enable KernelSU setup and config | boolean | `false` |
| SUSFS | apply SuSFS patches and config | boolean | `false` |
| LXC | apply the LXC patch | boolean | `false` |
| STOCK_CONFIG | apply the stock config patch | `auto`, `true`, `false` | `xaga: false`, `generic: true` |
| BRANCH_OVERRIDE | override the target kernel branch | branch name | `xaga: 16.2-rebase`, `generic: main` |
| STOCK_CONFIG | apply the stock config patch | `auto`, `true`, `false` | `plato: false`, `generic: true` |
| BRANCH_OVERRIDE | override the target kernel branch | branch name | `plato: 16.2-rebase`, `generic: main` |
| JOBS | set the make job count | integer | `nproc --all` |
| RESET_SOURCES | reset and re-clone source/tool dirs before build | boolean | `false` locally, `true` in ci |
| TG_NOTIFY | send telegram updates | boolean | `false` locally, `true` in ci |
Expand All @@ -171,9 +171,9 @@ notes:

- boolean values accept `true/false`, `t/f`, `yes/no`, `y/n`, `on/off`, and `1/0`
- only `STOCK_CONFIG` accepts `auto`; other boolean-like inputs fail clearly
- `STOCK_CONFIG=auto` resolves to `false` for xaga and `true` for generic
- `STOCK_CONFIG=auto` resolves to `false` for plato and `true` for generic
- `SUSFS` needs `KSU=true`
- `LXC` only works with `BUILD_TARGET=xaga`
- `LXC` not tested on plato!
- `TG_NOTIFY=true` needs `TG_BOT_TOKEN` and `TG_CHAT_ID`
- `GH_TOKEN` is optional, but helps when fetching latest release assets

Expand Down
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ validate_deps() {
require_cmds patch
;;
modules)
# before xaga module packaging
# before plato module packaging
require_cmds depmod llvm-strip xz
;;
bootimg)
Expand All @@ -107,7 +107,7 @@ main() {
count setup_toolchain
count prepare_build
count build_kernel
if [[ "$BUILD_TARGET" == "xaga" ]]; then
if [[ "$BUILD_TARGET" == "plato" ]]; then
count build_module
fi

Expand Down
6 changes: 3 additions & 3 deletions build/compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ build_kernel() {

prune_bad_artifacts "$KERNEL_OUT"

if [[ "$BUILD_TARGET" == xaga ]]; then
if [[ "$BUILD_TARGET" == plato ]]; then
info "Merging defconfig"
local configs="arch/arm64/configs"
KCONFIG_CONFIG="$configs/gki_defconfig" scripts/kconfig/merge_config.sh -m -r "$configs/gki_defconfig" "$configs/vendor/xiaomi_mt6895.config" "$configs/vendor/xaga.config"
KCONFIG_CONFIG="$configs/gki_defconfig" scripts/kconfig/merge_config.sh -m -r "$configs/gki_defconfig" "$configs/vendor/xiaomi_mt6895.config" "$configs/vendor/plato.config"
fi

info "Generate defconfig: $KERNEL_DEFCONFIG"
Expand All @@ -25,7 +25,7 @@ build_kernel() {
make "${MAKE_ARGS[@]}" Image modules
success "Kernel built successfully"

if [[ "$BUILD_TARGET" == xaga ]]; then
if [[ "$BUILD_TARGET" == plato ]]; then
info "Installing kernel modules..."
make "${MAKE_ARGS[@]}" INSTALL_MOD_PATH="$KERNEL_OUT"/modules modules_install
fi
Expand Down
4 changes: 2 additions & 2 deletions ci/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ package_anykernel() {
}

package_bootimg() {
if [[ "$BUILD_TARGET" == "xaga" ]]; then
if [[ "$BUILD_TARGET" == "plato" ]]; then
return
fi

Expand Down Expand Up @@ -146,7 +146,7 @@ telegram_notify() {
notify_success "$ak3_package" "$build_time" "anykernel3"

# Boot image
if [[ "$BUILD_TARGET" == "xaga" ]]; then
if [[ "$BUILD_TARGET" == "plato" ]]; then
return
fi
pushd "$OUT_DIR" > /dev/null
Expand Down
10 changes: 5 additions & 5 deletions config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
################################################################################
# Project Identity
################################################################################
KERNEL_NAME="ESK"
KERNEL_NAME="ALC-NEXT"
KERNEL_DEFCONFIG="gki_defconfig"

# Kbuild identity
KBUILD_BUILD_USER="builder"
KBUILD_BUILD_HOST="esk"
KBUILD_BUILD_HOST="alc"

# Used for timestamps in logs
TIMEZONE="Asia/Ho_Chi_Minh"
Expand All @@ -24,7 +24,7 @@ RELEASE_BRANCH="main"
################################################################################
# Build target
################################################################################
BUILD_TARGET="${BUILD_TARGET:-xaga}"
BUILD_TARGET="${BUILD_TARGET:-plato}"

################################################################################
# Build options
Expand Down Expand Up @@ -58,9 +58,9 @@ GKI_URL="https://dl.google.com/android/gki/gki-certified-boot-android12-5.10-202
LIBFAKESTAT_RELEASE_API="https://api.github.com/repos/cctv18/libfakestat/releases/latest"

case "$BUILD_TARGET" in
xaga)
plato)
KERNEL_REPO="github.com:ESK-Project/android_kernel_xiaomi_mt6895@${BRANCH_OVERRIDE:-16.2-rebase}"
AK3_REPO="github.com:ESK-Project/AnyKernel3@xaga"
AK3_REPO="github.com:A1cInt/AnyKernel3@plato"
RELEASE_REPO="ESK-Project/esk-releases"
STOCK_CONFIG_DEFAULT="false"
;;
Expand Down
6 changes: 3 additions & 3 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set shell := ["bash", "-euo", "pipefail", "-c"]
alias b := build
alias f := fmt
alias g := generic
alias x := xaga
alias x := plato

default:
@just --list
Expand Down Expand Up @@ -31,8 +31,8 @@ check: fmt-check bash-check lint py-lint py-check
build *args:
env {{args}} ./build.sh

xaga *args:
env BUILD_TARGET=xaga {{args}} ./build.sh
plato *args:
env BUILD_TARGET=plato {{args}} ./build.sh
Comment thread
bachnxuan marked this conversation as resolved.

generic *args:
env BUILD_TARGET=generic {{args}} ./build.sh
Expand Down
Loading