Browse Source

qcacld-3.0: Fix ddk enable check

Current code checks vendor version not target to determine
whether or not to enable bazel ddk. Fix this by checking
both vendor version and target to enable DDK.

Change-Id: I7503ce966d128d9a1350426eb8a9aee6dd013a1d
CRs-Fixed: 3581963
Mohammed Ahmed 1 year ago
parent
commit
91537161ea
1 changed files with 4 additions and 4 deletions
  1. 4 4
      Android.mk

+ 4 - 4
Android.mk

@@ -13,12 +13,12 @@ $(strip \
 )
 endef
 
+LOCAL_MODULE_DDK_BUILD := false
+LOCAL_MODULE_DDK_ALLOW_UNSAFE_HEADERS := false
+
+ifeq ($(TARGET_BOARD_PLATFORM), pineapple)
 LOCAL_MODULE_DDK_BUILD := true
 LOCAL_MODULE_DDK_ALLOW_UNSAFE_HEADERS := true
-
-ifeq ($(shell test $(PLATFORM_VERSION) -lt 14; echo $$?),0)
-    LOCAL_MODULE_DDK_BUILD := false
-    LOCAL_MODULE_DDK_ALLOW_UNSAFE_HEADERS := false
 endif
 
 LOCAL_PATH := $(call my-dir)