Skip to content

Commit 539911f

Browse files
committed
Add Support for xx_maps hide
1 parent beadebe commit 539911f

File tree

2 files changed

+20
-9
lines changed

2 files changed

+20
-9
lines changed

.github/actions/action.yml

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,17 @@ runs:
328328
set -euo pipefail
329329
cd "$CONFIG/kernel_platform/common"
330330
patch -p1 < ../../../kernel_patches/next/scope_min_manual_hooks_v1.4.patch
331-
331+
332+
- name: Apply xx_maps patch (untill sus_maps is released)
333+
shell: bash
334+
run: |
335+
set -euo pipefail
336+
cd "$CONFIG/kernel_platform/common"
337+
patch -p1 --forward < "../../../kernel_patches/maps/xx_maps_sus_kernel.patch"
338+
cd "../KernelSU-Next"
339+
patch -p1 --forward < "../../../kernel_patches/maps/xx_maps_ksu.patch"
340+
341+
332342
- name: Add KernelSU-Next and SUSFS Configuration Settings
333343
shell: bash
334344
run: |
@@ -452,10 +462,10 @@ runs:
452462
COMMON="$KERNEL_PATH/common"
453463
cd "$COMMON"
454464
: > "$COMMON/.scmversion"
455-
465+
456466
# Ensure Python warnings are suppressed for scripts invoked by make
457467
export PYTHONWARNINGS="${PYTHONWARNINGS}"
458-
468+
459469
if [ -n "${CLANG_BIN_PATH:-}" ] && [ -x "${CLANG_BIN_PATH}/clang" ]; then
460470
export PATH="${CLANG_BIN_PATH}:$PATH"
461471
fi
@@ -468,14 +478,14 @@ runs:
468478
OUT=out
469479
mkdir -p "$OUT"
470480
make O="$OUT" gki_defconfig
471-
481+
472482
# LOCALVERSION branding
473483
if [ -n "${CUSTOM_LOCALVERSION:-}" ]; then
474484
scripts/config --file "$OUT/.config" --set-str LOCALVERSION "${CUSTOM_LOCALVERSION}"
475485
scripts/config --file "$OUT/.config" -d LOCALVERSION_AUTO || true
476486
sed -i 's/scm_version="$(scm_version --short)"/scm_version=""/' scripts/setlocalversion
477487
fi
478-
488+
479489
# Optimize level config and flags
480490
if [ "${{ inputs.optimize_level }}" = "O3" ]; then
481491
scripts/config --file "$OUT/.config" -d CC_OPTIMIZE_FOR_PERFORMANCE
@@ -486,18 +496,18 @@ runs:
486496
scripts/config --file "$OUT/.config" -d CC_OPTIMIZE_FOR_PERFORMANCE_O3
487497
KCFLAGS_EXTRA="-O2"
488498
fi
489-
499+
490500
# Consistent flags; include -pipe and disable stack protector
491501
KCFLAGS="-Wno-error -pipe -fno-stack-protector ${KCFLAGS_EXTRA}"
492502
KCPPFLAGS="-DCONFIG_OPTIMIZE_INLINING"
493-
503+
494504
# Regenerate defaults after config edits
495505
make O="$OUT" olddefconfig
496-
506+
497507
echo "Starting build with $(nproc --all) threads..."
498508
set -o pipefail
499509
make -j"$(nproc --all)" O="$OUT" KCFLAGS="$KCFLAGS" KCPPFLAGS="$KCPPFLAGS" 2>&1 | tee build.log
500-
510+
501511
IMG="$OUT/arch/arm64/boot/Image"
502512
if [ ! -f "$IMG" ]; then
503513
echo "Kernel Image missing"

.github/workflows/build-kernel-release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,7 @@ jobs:
333333
- [+] BBR v1 Support
334334
- [+] HMBIRD scx support for OnePlus 13 & OnePlus Ace 5 Pro
335335
- [+] Baseband Guard Support (BBG).
336+
- [+] xx_maps hide.
336337
EOF
337338
338339
# Output for debugging

0 commit comments

Comments
 (0)