Browse Source

icnss2: Update hardcoded path for BOARD_COMMON_DIR

Some targets use a different location for the build scripts and
set the BOARD_COMMON_DIR build variable accordingly. If this variable
is set, pick up the Build_external_kernelmodule.mk makefile
from this location.

Change-Id: I983849f8f250ea9e9cbf5ee09c71687893abb605
CRs-Fixed: 3636186
Dundi Raviteja 1 year ago
parent
commit
94cdab90a2
1 changed files with 3 additions and 1 deletions
  1. 3 1
      Android.mk

+ 3 - 1
Android.mk

@@ -22,7 +22,9 @@ LOCAL_MODULE_KO_DIRS += cnss_genl/cnss_nl.ko
 LOCAL_MODULE_KO_DIRS += cnss_prealloc/cnss_prealloc.ko
 LOCAL_MODULE_KO_DIRS += cnss_utils/cnss_utils.ko
 LOCAL_MODULE_KO_DIRS += icnss2/icnss2.ko
-DLKM_DIR := $(TOP)/device/qcom/common/dlkm
+
+BOARD_COMMON_DIR ?= device/qcom/common
+DLKM_DIR := $(TOP)/$(BOARD_COMMON_DIR)/dlkm
 
 # WLAN_PLATFORM_ROOT needs to be a absolute since it will be used
 # for header files. $(TOP) cannot be used here since it will be