From 6290cbd53b90a90edb4f1baaaae363e15af482a5 Mon Sep 17 00:00:00 2001 From: QKIvan Date: Sun, 1 Dec 2024 13:27:14 +0800 Subject: [PATCH 1/2] build.sh: Override hostname to avoid leaking info * The same as https://github.com/AOSPA/android_vendor_aospa/commit/fd44c1b5e3542f54a4cc291beaf854318fa68cf6 Change-Id: I4de5c57f12f8b9aee956103bfa7bc896b0576a8e --- build.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build.sh b/build.sh index cde94dd20087..6cb64c3a9777 100755 --- a/build.sh +++ b/build.sh @@ -101,6 +101,8 @@ case "$TARGET" in 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 \ From f8c9b4191f4333bbc4b37ba9771b57c4edccad7a Mon Sep 17 00:00:00 2001 From: QKIvan Date: Sun, 1 Dec 2024 13:31:29 +0800 Subject: [PATCH 2/2] kernel: Add support for Xiaomi 12S Pro (unicorn) Change-Id: I558d6513506b2b0d38ffab3decab3de49a90750f --- build.sh | 4 ++++ modules.list.second_stage.unicorn | 4 ++++ modules.list.vendor_dlkm.unicorn | 1 + 3 files changed, 9 insertions(+) create mode 100644 modules.list.second_stage.unicorn create mode 100644 modules.list.vendor_dlkm.unicorn diff --git a/build.sh b/build.sh index 6cb64c3a9777..a084a42a9c10 100755 --- a/build.sh +++ b/build.sh @@ -98,6 +98,10 @@ 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" diff --git a/modules.list.second_stage.unicorn b/modules.list.second_stage.unicorn new file mode 100644 index 000000000000..39a8eb8e7ea3 --- /dev/null +++ b/modules.list.second_stage.unicorn @@ -0,0 +1,4 @@ +goodix_fod.ko +qcom_pm8008-regulator.ko +fts_touch_spi.ko +aw8697-haptic.ko \ No newline at end of file diff --git a/modules.list.vendor_dlkm.unicorn b/modules.list.vendor_dlkm.unicorn new file mode 100644 index 000000000000..fc1c7bd44745 --- /dev/null +++ b/modules.list.vendor_dlkm.unicorn @@ -0,0 +1 @@ +cs35l41_dlkm.ko \ No newline at end of file