android.hardware.thermal@1.0-wahoo can be a static lib

thermal-engine, which is a proprietary module for msm8998, is now
statically linking to this library.

Bug: 70551668
Test: walleye is buildable and boots to the UI
Merged-In: I1417a9632f89869f2f8e3dc786c3f1c9fae9e45a
Change-Id: I1417a9632f89869f2f8e3dc786c3f1c9fae9e45a
(cherry picked from commit 787a4648f250312b351155e156238e46293adb5d)
diff --git a/CleanSpec.mk b/CleanSpec.mk
index af32e90..d23c619 100644
--- a/CleanSpec.mk
+++ b/CleanSpec.mk
@@ -143,3 +143,6 @@
 # Remove eSIM OTA image
 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/priv-app/EuiccGoogle/esim.img)
 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/priv-app/EuiccGoogle/esim2.img)
+
+# android.hardware.thermal@1.0-wahoo.so can be a static lib
+$(call add-clean-step, rm -rf $(PRODUCT_OUT)/vendor/lib/hw/android.hardware.thermal@1.0-wahoo.so)
diff --git a/thermal/Android.bp b/thermal/Android.bp
index fcd227e..be1e703 100644
--- a/thermal/Android.bp
+++ b/thermal/Android.bp
@@ -1,4 +1,4 @@
-cc_library_shared {
+cc_library {
     name: "android.hardware.thermal@1.1-wahoo",
     defaults: ["hidl_defaults"],
     owner: "qcom",