Browse Source

qcacld-3.0: cld sun changes

Changes needed to build cld driver
on sun.

Change-Id: I3bbb0180b070a65364b6768f4e4fd8c4b3fbee4f
CRs-Fixed: 3601936
Mohammed Ahmed 1 year ago
parent
commit
38a6b6bc2e
2 changed files with 9 additions and 5 deletions
  1. 4 0
      Android.mk
  2. 5 5
      wlan_qcacld3_modules.bzl

+ 4 - 0
Android.mk

@@ -16,6 +16,10 @@ endef
 LOCAL_MODULE_DDK_BUILD := false
 LOCAL_MODULE_DDK_ALLOW_UNSAFE_HEADERS := false
 
+ifeq ($(TARGET_BOARD_PLATFORM), sun)
+LOCAL_MODULE_DDK_BUILD := true
+LOCAL_MODULE_DDK_ALLOW_UNSAFE_HEADERS := true
+endif
 ifeq ($(TARGET_BOARD_PLATFORM), pineapple)
 LOCAL_MODULE_DDK_BUILD := true
 LOCAL_MODULE_DDK_ALLOW_UNSAFE_HEADERS := true

+ 5 - 5
wlan_qcacld3_modules.bzl

@@ -6,6 +6,10 @@ _target_chipset_map = {
     "pineapple": [
 	"kiwi-v2",
     ],
+    "sun": [
+        "peach",
+        "kiwi-v2",
+    ],
 }
 
 _chipset_hw_map = {
@@ -2107,11 +2111,6 @@ def _define_module_for_target_variant_chipset(target, variant, chipset):
         copts.append(i)
 
     feature_grep_map = [
-        {
-            "pattern": "walt_get_cpus_taken",
-            "file": "kernel/sched/walt/walt.c",
-            "flag": "WALT_GET_CPU_TAKEN_SUPPORT",
-        },
         {
             "pattern": "nl80211_validate_key_link_id",
             "file": "net/wireless/nl80211.c",
@@ -2163,6 +2162,7 @@ def _define_module_for_target_variant_chipset(target, variant, chipset):
         cmd = cmd,
     )
 
+    copts.append("-Wno-format")
     copts.append("-include")
     copts.append("$(location :{}_grep_defines)".format(tvc))