Skip to content

Commit 04a2d1f

Browse files
committed
Test midas 1
1 parent b023ce2 commit 04a2d1f

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

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

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1422,6 +1422,45 @@ runs:
14221422
echo "Disabling GPUEB for MTK kernel 5.10"
14231423
sed -i '/obj-y.*gpueb/d' "$COMMON_KERNEL_FOLDER/drivers/gpu/mediatek/Makefile"
14241424
1425+
- name: Test Midas
1426+
shell: bash
1427+
run: |
1428+
echo "Test Midas"
1429+
set -euo pipefail
1430+
cd "$COMMON_KERNEL_FOLDER"
1431+
mkdir -p drivers/soc/oplus
1432+
ln -s "$CONFIG_DIR/vendor/oplus/kernel/cpu/midas" "$COMMON_KERNEL_FOLDER/drivers/soc/oplus/midas"
1433+
1434+
cat >> "$COMMON_KERNEL_FOLDER/drivers/soc/Kconfig" <<EOF
1435+
#ifdef OPLUS_FEATURE_MIDAS
1436+
source "drivers/soc/oplus/midas/Kconfig"
1437+
#endif /*OPLUS_FEATURE_MIDAS*/
1438+
endmenu
1439+
EOF
1440+
1441+
if [ "${{ env.OP_RUST_BUILD}}" = "true" ]; then
1442+
cat >> "$COMMON_KERNEL_FOLDER/arch/arm64/configs/gki_defconfig" <<EOF
1443+
CONFIG_OPLUS_FEATURE_MIDAS=y
1444+
CONFIG_OPLUS_FEATURE_MIDAS_GKI=y
1445+
CONFIG_OPLUS_FEATURE_BINDER_STATS_ENABLE=y
1446+
CONFIG_CMDLINE="module_blacklist=rust_binder,oplus_bsp_midas"
1447+
CONFIG_CMDLINE_EXTEND=y
1448+
CONFIG_CMDLINE_FORCE=n
1449+
EOF
1450+
else
1451+
cat >> "$COMMON_KERNEL_FOLDER/arch/arm64/configs/gki_defconfig" <<EOF
1452+
CONFIG_OPLUS_FEATURE_MIDAS=y
1453+
CONFIG_OPLUS_FEATURE_MIDAS_GKI=y
1454+
CONFIG_OPLUS_FEATURE_BINDER_STATS_ENABLE=y
1455+
CONFIG_CMDLINE="module_blacklist=oplus_bsp_midas"
1456+
CONFIG_CMDLINE_EXTEND=y
1457+
CONFIG_CMDLINE_FORCE=n
1458+
EOF
1459+
fi
1460+
1461+
ls -l drivers/soc/oplus/midas
1462+
ls drivers/soc/oplus/midas/Kconfig
1463+
14251464
- name: Build Kernel
14261465
shell: bash
14271466
env:

0 commit comments

Comments
 (0)