Skip to content

Commit 759f819

Browse files
committed
Test Vendor boot disable and lto full
1 parent 38d4bcc commit 759f819

File tree

2 files changed

+43
-3
lines changed

2 files changed

+43
-3
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ on:
1919
options:
2020
- stable
2121
- next
22-
default: stable
22+
default: next
2323
susfs_branch:
2424
required: true
2525
type: string
@@ -38,6 +38,12 @@ jobs:
3838
manifest: oneplus_11_v.xml
3939
android_version: android13
4040
kernel_version: "5.15"
41+
- model: OP11u
42+
soc: kalama
43+
branch: oneplus/sm8550
44+
manifest: oneplus_11_u.xml
45+
android_version: android13
46+
kernel_version: "5.15"
4147
# - model: OP11r
4248
# soc: waipio
4349
# branch: oneplus/sm8475

.github/workflows/build.yml

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,18 @@ jobs:
3838
runs-on: ubuntu-latest
3939

4040
steps:
41+
- name: Maximize Build Space
42+
uses: easimon/maximize-build-space@master
43+
with:
44+
root-reserve-mb: 1024
45+
temp-reserve-mb: 1024
46+
swap-size-mb: 20971520
47+
remove-dotnet: 'true'
48+
remove-android: 'true'
49+
remove-haskell: 'true'
50+
remove-codeql: 'true'
51+
remove-docker-images: 'true'
52+
4153
- name: Setup Build System
4254
run: |
4355
export DEBIAN_FRONTEND=noninteractive
@@ -84,6 +96,27 @@ jobs:
8496
# Set CONFIG Environment Variable
8597
echo "CONFIG=${{ inputs.model }}" >> $GITHUB_ENV
8698
99+
# - name: Setup SWAP
100+
# run: |
101+
# sudo swapoff -a
102+
# # Check available disk space before creating swap
103+
# AVAILABLE_SPACE=$(df -h . | awk 'NR==2 {print $4}' | grep -o '[0-9]\+')
104+
# if [ "$AVAILABLE_SPACE" -lt 21000 ]; then
105+
# echo "Error: Not enough disk space for 20 GB swap file. Available: $AVAILABLE_SPACE MB"
106+
# exit 1
107+
# fi
108+
# sudo fallocate -l 22G /swapfile
109+
# sudo chmod 600 /swapfile
110+
# sudo mkswap /swapfile
111+
# sudo swapon -p 1 /swapfile
112+
# echo 'vm.swappiness=1' | sudo tee -a /etc/sysctl.conf
113+
# echo 'vm.vfs_cache_pressure=50' | sudo tee -a /etc/sysctl.conf
114+
# echo 'vm.overcommit_memory=1' | sudo tee -a /etc/sysctl.conf
115+
# echo 'vm.overcommit_ratio=200' | sudo tee -a /etc/sysctl.conf
116+
# sudo sysctl -p
117+
# free -h
118+
# df -h
119+
87120
- name: Clone AnyKernel3 and Other Dependencies
88121
run: |
89122
echo "Cloning AnyKernel3 and other dependencies..."
@@ -342,7 +375,7 @@ jobs:
342375
sed -i 's/-dirty//' ./external/dtc/scripts/setlocalversion
343376
sed -i 's/-dirty//' ./build/kernel/kleaf/workspace_status_stamp.py || echo "No workspace_status_stamp.py!"
344377
345-
sed -i '/echo "LTO $LTO "/i export LTO=thin' ./oplus/build/oplus_setup.sh
378+
sed -i '/echo "LTO $LTO "/i export LTO=full' ./oplus/build/oplus_setup.sh
346379
sed -i 's/export REPACK_IMG=true/export REPACK_IMG=false/g' ./oplus/build/oplus_setup.sh
347380
348381
# Run perl command to modify UTS_VERSION
@@ -390,7 +423,8 @@ jobs:
390423
else
391424
# cd ./kernel_platform/common/
392425
# make -j$(nproc --all) LLVM=1 ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- CROSS_COMPILE_ARM32=arm-linux-gnuabeihf- CC="$CONFIG/kernel_platform/prebuilts-master/clang/host/linux-x86/clang-r450784e/bin/clang" LD="$CONFIG/kernel_platform/prebuilts-master/clang/host/linux-x86/clang-r450784e/bin/ld.lld" HOSTCC=clang HOSTLD=ld.lld O="$CONFIG/kernel_platform/out" KCFLAGS+=-Wno-error gki_defconfig all 2>&1 | tee build_$(date +"%Y_%m_%d_%H_%M_%S").log
393-
LTO=thin ./kernel_platform/oplus/build/oplus_build_kernel.sh ${{ inputs.soc }} "$BUILD_TYPE"
426+
sed -i '/export EXTRA_KBUILD_ARGS="--skip abl"/a export SKIP_VENDOR_BOOT=true\nunset BUILD_VENDOR_BOOT_IMG' ./kernel_platform/oplus/build/oplus_build_kernel.sh
427+
LTO=full ./kernel_platform/oplus/build/oplus_build_kernel.sh ${{ inputs.soc }} "$BUILD_TYPE"
394428
fi
395429
396430
- name: Create ZIP Files for Different Formats

0 commit comments

Comments
 (0)