Skip to content

Commit 5a5f0fb

Browse files
authored
Add Support for older OnePlus kernels (WildKernels#222)
* Add Support for older sm8550 kernels OOS16, 5.15.167: - OP12r - OP11 - OP-OPEN - OP-ACE-3 OOS15, 5.5.149: - OP12r - OP11 - OP-OPEN - OP-ACE-3 - OP-ACE-2-PRO * Add Support for older sm8650 & sm8635 kernels OOS16, 6.1.118: - OP12 - OP-ACE-5 - OP-NORD-5 OOS15, 6.1.75: - OP13r - OP12 - OP-PAD-PRO - OP-PAD-2 - OP-ACE-5 - OP-ACE-3-PRO * Add Support for older sm7550 kernels OOS15, 5.15.167: - OP-NORD-4-CE * Add Support for older sm7675 kernels OOS16, 6.1.118: - OP-NORD-4 - OP-ACE-3V OOS15, 6.1.75: - OP-NORD-4 - OP-ACE-3V * Add Support for older sm8450 & sm8475 kernels OOS15, 5.10.209: - OP11r - OP10t - OP10pro - OP-ACE-2 * Add Support for older sm8750 kernels OOS15, 6.6.56: - OP13T - OP13-CPH OOS15, 6.6.30: - OP13-PJZ - OP-PAD-3-SM8750 - OP-PAD-2-PRO - OP-ACE-5-PRO * Add Support for older mediatek kernels OOS15, 6.6.50: - OP-ACE-5-ULTRA OOS15, 6.1.75: - OP-PAD-3-MT6897 OOS15, 5.10.226: - OP-ACE-RACE OOS15, 5.10.209: - OP-PAD-MT6983 - OP-NORD-3 - OP-ACE-5 - OP-ACE-2V * fix: correct hmbird patch lookup and ntsync model matching - hmbird: strip trailing kernel version suffix (e.g. -6.6.50) from OP_MODEL before constructing fengchi patch filename, so old-kernel configs resolve to the correct patch - hmbird: route OP-ACE-5-ULTRA-6.6.50, OP-ACE-5-PRO-6.6.30, OP13-PJZ-6.6.30 and OP13-CPH-6.6.56 to oneplus/hmbird/deprecated/fengchi_* patches - ntsync: replace broken &&-chain with case/esac + NTSYNC_PATCH="" flag; android12-5.10 models on OOS15 now correctly fall back to ntsync_compat_android12-5.10_OOS14.patch
1 parent 40927b0 commit 5a5f0fb

82 files changed

Lines changed: 1643 additions & 5 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/actions/build-kernel/action.yml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1255,8 +1255,15 @@ runs:
12551255
fi
12561256
if [ "$OP_HMBIRD" = true ]; then
12571257
echo "Patching hmbird!"
1258-
dos2unix "$KERNEL_PATCHES_FOLDER/oneplus/hmbird/fengchi_${OP_MODEL}_${OP_OS_VERSION}.patch"
1259-
patch -p1 -F 3 < "$KERNEL_PATCHES_FOLDER/oneplus/hmbird/fengchi_${OP_MODEL}_${OP_OS_VERSION}.patch"
1258+
HMBIRD_MODEL=$(echo "$OP_MODEL" | sed 's/-[0-9]\+\.[0-9]\+\.[0-9]\+$//')
1259+
case "$OP_MODEL" in
1260+
OP-ACE-5-ULTRA-6.6.50|OP-ACE-5-PRO-6.6.30|OP13-PJZ-6.6.30|OP13-CPH-6.6.56)
1261+
FENGCHI_DIR="$KERNEL_PATCHES_FOLDER/oneplus/hmbird/deprecated" ;;
1262+
*)
1263+
FENGCHI_DIR="$KERNEL_PATCHES_FOLDER/oneplus/hmbird" ;;
1264+
esac
1265+
dos2unix "$FENGCHI_DIR/fengchi_${HMBIRD_MODEL}_${OP_OS_VERSION}.patch"
1266+
patch -p1 -F 3 < "$FENGCHI_DIR/fengchi_${HMBIRD_MODEL}_${OP_OS_VERSION}.patch"
12601267
dos2unix "$KERNEL_PATCHES_FOLDER/oneplus/hmbird/overwriter.patch"
12611268
patch -p1 -F 3 < "$KERNEL_PATCHES_FOLDER/oneplus/hmbird/overwriter.patch"
12621269
chmod +x ./drivers/of/overwriter/overwrite_configs/convert_configs.sh
@@ -1333,8 +1340,17 @@ runs:
13331340
GKI_KEY="${ANDROID_VER}-${KERNEL_VER}"
13341341
BRANCH_SUFFIX=$(basename "$OP_BRANCH")
13351342
1336-
if [[ "$OP_MODEL" == "OP10r" ]] && [[ "$OP_OS_VERSION" == "OOS15" ]]; then
1337-
NTSYNC_PATCH="$NTSYNC_FOLDER/ntsync_compat_android12-5.10_OOS14.patch"
1343+
NTSYNC_PATCH=""
1344+
case "$OP_MODEL" in
1345+
OP10r|OP-ACE-2-5.10.209|OP-ACE-2V-5.10.209|OP-PAD-MT6983-5.10.209|\
1346+
OP10pro-5.10.209|OP10t-5.10.209|OP-ACE-5.10.209|OP11r-5.10.209|\
1347+
OP-NORD-3-5.10.209)
1348+
if [[ "$OP_OS_VERSION" == "OOS15" ]]; then
1349+
NTSYNC_PATCH="$NTSYNC_FOLDER/ntsync_compat_android12-5.10_OOS14.patch"
1350+
fi
1351+
;;
1352+
esac
1353+
if [ -n "$NTSYNC_PATCH" ]; then
13381354
if [ ! -f "$NTSYNC_PATCH" ]; then
13391355
echo "::error::NTSync compat patch not found for ${OP_MODEL}: $(basename $NTSYNC_PATCH)"
13401356
exit 1
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"model": "OP-ACE-2-5.10.209",
3+
"soc": "waipio",
4+
"branch": "wild/sm8475",
5+
"manifest": "oneplus_ace2_5.10.209_v.xml",
6+
"android_version": "android12",
7+
"kernel_version": "5.10",
8+
"os_version": "OOS15",
9+
"lto": "thin",
10+
"zyc_compiler": "",
11+
"c_compiler": "kernel_platform/prebuilts-master/clang/host/linux-x86/clang-r416183c/bin",
12+
"rust_compiler": "",
13+
"bindgen": "",
14+
"rust_build": false,
15+
"disk_cleanup": false,
16+
"hmbird": false,
17+
"susfs": true,
18+
"ds": true,
19+
"bbg": true,
20+
"bbr": true,
21+
"ttl": true,
22+
"ip_set": true,
23+
"unicode": true,
24+
"ntsync": true,
25+
"uname": "OP-WILD"
26+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"model": "OP-ACE-2-PRO-5.15.149",
3+
"soc": "kalama",
4+
"branch": "wild/sm8550",
5+
"manifest": "oneplus_ace2_pro_5.15.149_v.xml",
6+
"android_version": "android13",
7+
"kernel_version": "5.15",
8+
"os_version": "OOS15",
9+
"lto": "thin",
10+
"zyc_compiler": "",
11+
"c_compiler": "kernel_platform/prebuilts/clang/host/linux-x86/clang-r450784e/bin",
12+
"rust_compiler": "",
13+
"bindgen": "",
14+
"rust_build": false,
15+
"disk_cleanup": false,
16+
"hmbird": false,
17+
"susfs": true,
18+
"ds": true,
19+
"bbg": true,
20+
"bbr": true,
21+
"ttl": true,
22+
"ip_set": true,
23+
"unicode": true,
24+
"ntsync": true,
25+
"uname": "OP-WILD"
26+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"model": "OP-ACE-2V-5.10.209",
3+
"soc": "dimensity9000",
4+
"branch": "wild/mt6983",
5+
"manifest": "oneplus_ace2v_5.10.209_v.xml",
6+
"android_version": "android12",
7+
"kernel_version": "5.10",
8+
"os_version": "OOS15",
9+
"lto": "thin",
10+
"zyc_compiler": "",
11+
"c_compiler": "kernel_platform/prebuilts-master/clang/host/linux-x86/clang-r416183c/bin",
12+
"rust_compiler": "",
13+
"bindgen": "",
14+
"rust_build": false,
15+
"disk_cleanup": false,
16+
"hmbird": false,
17+
"susfs": true,
18+
"ds": true,
19+
"bbg": true,
20+
"bbr": true,
21+
"ttl": true,
22+
"ip_set": true,
23+
"unicode": true,
24+
"ntsync": true,
25+
"uname": "OP-WILD"
26+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"model": "OP-ACE-3-5.15.149",
3+
"soc": "kalama",
4+
"branch": "wild/sm8550",
5+
"manifest": "oneplus_ace3_5.15.149_v.xml",
6+
"android_version": "android13",
7+
"kernel_version": "5.15",
8+
"os_version": "OOS15",
9+
"lto": "thin",
10+
"zyc_compiler": "",
11+
"c_compiler": "kernel_platform/prebuilts/clang/host/linux-x86/clang-r450784e/bin",
12+
"rust_compiler": "",
13+
"bindgen": "",
14+
"rust_build": false,
15+
"disk_cleanup": false,
16+
"hmbird": false,
17+
"susfs": true,
18+
"ds": true,
19+
"bbg": true,
20+
"bbr": true,
21+
"ttl": true,
22+
"ip_set": true,
23+
"unicode": true,
24+
"ntsync": true,
25+
"uname": "OP-WILD"
26+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"model": "OP-ACE-3-PRO-6.1.75",
3+
"soc": "pineapple",
4+
"branch": "wild/sm8650",
5+
"manifest": "oneplus_ace3_pro_6.1.75_v.xml",
6+
"android_version": "android14",
7+
"kernel_version": "6.1",
8+
"os_version": "OOS15",
9+
"lto": "thin",
10+
"zyc_compiler": "",
11+
"c_compiler": "kernel_platform/prebuilts/clang/host/linux-x86/clang-r487747c/bin",
12+
"rust_compiler": "",
13+
"bindgen": "",
14+
"rust_build": false,
15+
"disk_cleanup": false,
16+
"hmbird": false,
17+
"susfs": true,
18+
"ds": true,
19+
"bbg": true,
20+
"bbr": true,
21+
"ttl": true,
22+
"ip_set": true,
23+
"unicode": true,
24+
"ntsync": true,
25+
"uname": "OP-WILD"
26+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"model": "OP-ACE-3V-6.1.75",
3+
"soc": "pineapple",
4+
"branch": "wild/sm7675",
5+
"manifest": "oneplus_ace_3v_6.1.75_v.xml",
6+
"android_version": "android14",
7+
"kernel_version": "6.1",
8+
"os_version": "OOS15",
9+
"lto": "thin",
10+
"zyc_compiler": "",
11+
"c_compiler": "kernel_platform/prebuilts/clang/host/linux-x86/clang-r487747c/bin",
12+
"rust_compiler": "",
13+
"bindgen": "",
14+
"rust_build": false,
15+
"disk_cleanup": false,
16+
"hmbird": false,
17+
"susfs": true,
18+
"ds": true,
19+
"bbg": true,
20+
"bbr": true,
21+
"ttl": true,
22+
"ip_set": true,
23+
"unicode": true,
24+
"ntsync": true,
25+
"uname": "OP-WILD"
26+
}

configs/oos15/OP-ACE-5-6.1.75.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"model": "OP-ACE-5-6.1.75",
3+
"soc": "pineapple",
4+
"branch": "wild/sm8650",
5+
"manifest": "oneplus_ace5_6.1.75_v.xml",
6+
"android_version": "android14",
7+
"kernel_version": "6.1",
8+
"os_version": "OOS15",
9+
"lto": "thin",
10+
"zyc_compiler": "",
11+
"c_compiler": "kernel_platform/prebuilts/clang/host/linux-x86/clang-r487747c/bin",
12+
"rust_compiler": "",
13+
"bindgen": "",
14+
"rust_build": false,
15+
"disk_cleanup": false,
16+
"hmbird": false,
17+
"susfs": true,
18+
"ds": true,
19+
"bbg": true,
20+
"bbr": true,
21+
"ttl": true,
22+
"ip_set": true,
23+
"unicode": true,
24+
"ntsync": true,
25+
"uname": "OP-WILD"
26+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"model": "OP-ACE-5-PRO-6.6.30",
3+
"soc": "sun",
4+
"branch": "wild/sm8750",
5+
"manifest": "oneplus_ace5_pro_6.6.30_v.xml",
6+
"android_version": "android15",
7+
"kernel_version": "6.6",
8+
"os_version": "OOS15",
9+
"lto": "thin",
10+
"zyc_compiler": "https://github.com/ZyCromerZ/Clang/releases/download/19.0.0git-20240723-release/Clang-19.0.0git-20240723.tar.gz",
11+
"c_compiler": "kernel_platform/prebuilts/clang/host/linux-x86/clang-r510928/bin",
12+
"rust_compiler": "",
13+
"bindgen": "",
14+
"rust_build": false,
15+
"disk_cleanup": false,
16+
"hmbird": true,
17+
"susfs": true,
18+
"ds": true,
19+
"bbg": true,
20+
"bbr": true,
21+
"ttl": true,
22+
"ip_set": true,
23+
"unicode": true,
24+
"ntsync": true,
25+
"uname": "OP-WILD"
26+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"model": "OP-ACE-5-ULTRA-6.6.50",
3+
"soc": "dimensity9400",
4+
"branch": "wild/mt6991",
5+
"manifest": "oneplus_ace5_ultra_6.6.50_v.xml",
6+
"android_version": "android15",
7+
"kernel_version": "6.6",
8+
"os_version": "OOS15",
9+
"lto": "thin",
10+
"zyc_compiler": "",
11+
"c_compiler": "kernel_platform/prebuilts/clang/host/linux-x86/clang-r510928/bin",
12+
"rust_compiler": "",
13+
"bindgen": "",
14+
"rust_build": false,
15+
"disk_cleanup": false,
16+
"hmbird": true,
17+
"susfs": true,
18+
"ds": true,
19+
"bbg": true,
20+
"bbr": true,
21+
"ttl": true,
22+
"ip_set": true,
23+
"unicode": true,
24+
"ntsync": true,
25+
"uname": "OP-WILD"
26+
}

0 commit comments

Comments
 (0)