Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kernel: Add support for Xiaomi 12S Pro (unicorn) #2

Open
wants to merge 2 commits into
base: uvite
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 6 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,15 @@ case "$TARGET" in
DTB_WILDCARD="waipio"
DTBO_WILDCARD="cupid-sm8450-pm8008-overlay"
;;
"unicorn" )
DTB_WILDCARD="cape"
DTBO_WILDCARD="unicorn-sm8475-pm8008-overlay"
;;
esac

export PATH="$TC_DIR/bin:$PREBUILTS_DIR/bin:$PATH"
export KBUILD_BUILD_USER="nobody"
export KBUILD_BUILD_HOST="android-build"

function m() {
make -j$(nproc --all) O=out ARCH=arm64 LLVM=1 LLVM_IAS=1 \
Expand Down
4 changes: 4 additions & 0 deletions modules.list.second_stage.unicorn
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
goodix_fod.ko
qcom_pm8008-regulator.ko
fts_touch_spi.ko
aw8697-haptic.ko
1 change: 1 addition & 0 deletions modules.list.vendor_dlkm.unicorn
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cs35l41_dlkm.ko