qcacld-3.0: Cleanup proprietary and old stale lines
qcacld-3.0: Cleanup proprietary and old stale lines Restrict build to msm8994,96,98,msmcobalt platform variants. Change-Id: Ic89ce4a786e884c24ab20ee201d9558f6cccc867 CRs-Fixed: 688141
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
faad20feb2
commit
08abad6c0d
60
Android.mk
60
Android.mk
@@ -6,7 +6,7 @@ WLAN_CHIPSET :=
|
|||||||
ifeq ($(BOARD_HAS_QCOM_WLAN), true)
|
ifeq ($(BOARD_HAS_QCOM_WLAN), true)
|
||||||
|
|
||||||
# Build/Package options for 8084/8092/8960/8992/8994 target
|
# Build/Package options for 8084/8092/8960/8992/8994 target
|
||||||
ifeq ($(call is-board-platform-in-list, apq8084 mpq8092 msm8960 msm8992 msm8994 msm8996 msm8998),true)
|
ifeq ($(call is-board-platform-in-list, msm8994 msm8996 msm8998 msmcobalt),true)
|
||||||
WLAN_CHIPSET := qca_cld3
|
WLAN_CHIPSET := qca_cld3
|
||||||
WLAN_SELECT := CONFIG_QCA_CLD_WLAN=m
|
WLAN_SELECT := CONFIG_QCA_CLD_WLAN=m
|
||||||
endif # platform
|
endif # platform
|
||||||
@@ -20,11 +20,7 @@ LOCAL_PATH := $(call my-dir)
|
|||||||
ifneq ($(findstring vendor,$(LOCAL_PATH)),)
|
ifneq ($(findstring vendor,$(LOCAL_PATH)),)
|
||||||
|
|
||||||
ifneq ($(findstring opensource,$(LOCAL_PATH)),)
|
ifneq ($(findstring opensource,$(LOCAL_PATH)),)
|
||||||
WLAN_PROPRIETARY := 0
|
|
||||||
WLAN_BLD_DIR := vendor/qcom/opensource/wlan
|
WLAN_BLD_DIR := vendor/qcom/opensource/wlan
|
||||||
else
|
|
||||||
WLAN_PROPRIETARY := 1
|
|
||||||
WLAN_BLD_DIR := vendor/qcom/proprietary/wlan-noship
|
|
||||||
endif # opensource
|
endif # opensource
|
||||||
|
|
||||||
# DLKM_DIR was moved for JELLY_BEAN (PLATFORM_SDK 16)
|
# DLKM_DIR was moved for JELLY_BEAN (PLATFORM_SDK 16)
|
||||||
@@ -34,24 +30,14 @@ else
|
|||||||
DLKM_DIR := build/dlkm
|
DLKM_DIR := build/dlkm
|
||||||
endif # platform-sdk-version
|
endif # platform-sdk-version
|
||||||
|
|
||||||
# Copy WCNSS_qcom_cfg.ini file from firmware_bin/ folder to target out directory.
|
|
||||||
ifeq ($(call is-board-platform-in-list, msm8960),true)
|
|
||||||
$(shell rm -f $(TARGET_OUT_ETC)/firmware/wlan/qca_cld/WCNSS_qcom_cfg.ini)
|
|
||||||
$(shell cp $(LOCAL_PATH)/firmware_bin/WCNSS_qcom_cfg.ini $(TARGET_OUT_ETC)/firmware/wlan/qca_cld)
|
|
||||||
endif
|
|
||||||
|
|
||||||
# Build wlan.ko as $(WLAN_CHIPSET)_wlan.ko
|
# Build wlan.ko as $(WLAN_CHIPSET)_wlan.ko
|
||||||
###########################################################
|
###########################################################
|
||||||
# This is set once per LOCAL_PATH, not per (kernel) module
|
# This is set once per LOCAL_PATH, not per (kernel) module
|
||||||
ifeq ($(WLAN_PROPRIETARY),1)
|
KBUILD_OPTIONS := WLAN_ROOT=../$(WLAN_BLD_DIR)/qcacld-3.0
|
||||||
KBUILD_OPTIONS := WLAN_ROOT=../$(WLAN_BLD_DIR)/qcacld-new
|
KBUILD_OPTIONS += WLAN_COMMON_ROOT=../../../opensource/wlan/qca-wifi-host-cmn
|
||||||
KBUILD_OPTIONS += WLAN_COMMON_ROOT=../../../opensource/wlan/qca-wifi-host-cmn
|
|
||||||
else
|
|
||||||
KBUILD_OPTIONS := WLAN_ROOT=../$(WLAN_BLD_DIR)/qcacld-3.0
|
|
||||||
KBUILD_OPTIONS += WLAN_COMMON_ROOT=../../../opensource/wlan/qca-wifi-host-cmn
|
|
||||||
endif # WLAN_PROPRIETARY
|
|
||||||
KBUILD_OPTIONS += WLAN_COMMON_INC=../vendor/qcom/opensource/wlan/qca-wifi-host-cmn
|
KBUILD_OPTIONS += WLAN_COMMON_INC=../vendor/qcom/opensource/wlan/qca-wifi-host-cmn
|
||||||
|
|
||||||
|
|
||||||
# We are actually building wlan.ko here, as per the
|
# We are actually building wlan.ko here, as per the
|
||||||
# requirement we are specifying <chipset>_wlan.ko as LOCAL_MODULE.
|
# requirement we are specifying <chipset>_wlan.ko as LOCAL_MODULE.
|
||||||
# This means we need to rename the module to <chipset>_wlan.ko
|
# This means we need to rename the module to <chipset>_wlan.ko
|
||||||
@@ -61,11 +47,7 @@ KBUILD_OPTIONS += BOARD_PLATFORM=$(TARGET_BOARD_PLATFORM)
|
|||||||
KBUILD_OPTIONS += $(WLAN_SELECT)
|
KBUILD_OPTIONS += $(WLAN_SELECT)
|
||||||
|
|
||||||
include $(CLEAR_VARS)
|
include $(CLEAR_VARS)
|
||||||
ifeq ($(WLAN_PROPRIETARY),1)
|
LOCAL_MODULE := $(WLAN_CHIPSET)_wlan.ko
|
||||||
LOCAL_MODULE := proprietary_$(WLAN_CHIPSET)_wlan.ko
|
|
||||||
else
|
|
||||||
LOCAL_MODULE := $(WLAN_CHIPSET)_wlan.ko
|
|
||||||
endif # WLAN_PROPRIETARY
|
|
||||||
LOCAL_MODULE_KBUILD_NAME := wlan.ko
|
LOCAL_MODULE_KBUILD_NAME := wlan.ko
|
||||||
LOCAL_MODULE_TAGS := debug
|
LOCAL_MODULE_TAGS := debug
|
||||||
LOCAL_MODULE_DEBUG_ENABLE := true
|
LOCAL_MODULE_DEBUG_ENABLE := true
|
||||||
@@ -74,40 +56,8 @@ include $(DLKM_DIR)/AndroidKernelModule.mk
|
|||||||
###########################################################
|
###########################################################
|
||||||
|
|
||||||
# Create Symbolic link
|
# Create Symbolic link
|
||||||
ifeq ($(WLAN_PROPRIETARY),1)
|
|
||||||
$(shell mkdir -p $(TARGET_OUT)/lib/modules; \
|
|
||||||
ln -sf /system/lib/modules/$(WLAN_CHIPSET)/$(LOCAL_MODULE) \
|
|
||||||
$(TARGET_OUT)/lib/modules/wlan.ko)
|
|
||||||
endif
|
|
||||||
$(shell ln -sf /persist/wlan_mac.bin $(TARGET_OUT_ETC)/firmware/wlan/qca_cld/wlan_mac.bin)
|
$(shell ln -sf /persist/wlan_mac.bin $(TARGET_OUT_ETC)/firmware/wlan/qca_cld/wlan_mac.bin)
|
||||||
|
|
||||||
ifeq ($(call is-board-platform-in-list, msm8960),true)
|
|
||||||
$(shell ln -sf /firmware/image/bdwlan20.bin $(TARGET_OUT_ETC)/firmware/fakeboar.bin)
|
|
||||||
$(shell ln -sf /firmware/image/otp20.bin $(TARGET_OUT_ETC)/firmware/otp.bin)
|
|
||||||
$(shell ln -sf /firmware/image/utf20.bin $(TARGET_OUT_ETC)/firmware/utf.bin)
|
|
||||||
$(shell ln -sf /firmware/image/qwlan20.bin $(TARGET_OUT_ETC)/firmware/athwlan.bin)
|
|
||||||
|
|
||||||
$(shell ln -sf /firmware/image/bdwlan20.bin $(TARGET_OUT_ETC)/firmware/bdwlan20.bin)
|
|
||||||
$(shell ln -sf /firmware/image/otp20.bin $(TARGET_OUT_ETC)/firmware/otp20.bin)
|
|
||||||
$(shell ln -sf /firmware/image/utf20.bin $(TARGET_OUT_ETC)/firmware/utf20.bin)
|
|
||||||
$(shell ln -sf /firmware/image/qwlan20.bin $(TARGET_OUT_ETC)/firmware/qwlan20.bin)
|
|
||||||
|
|
||||||
$(shell ln -sf /firmware/image/bdwlan30.bin $(TARGET_OUT_ETC)/firmware/bdwlan30.bin)
|
|
||||||
$(shell ln -sf /firmware/image/otp30.bin $(TARGET_OUT_ETC)/firmware/otp30.bin)
|
|
||||||
$(shell ln -sf /firmware/image/utf30.bin $(TARGET_OUT_ETC)/firmware/utf30.bin)
|
|
||||||
$(shell ln -sf /firmware/image/qwlan30.bin $(TARGET_OUT_ETC)/firmware/qwlan30.bin)
|
|
||||||
endif
|
|
||||||
|
|
||||||
# Copy config ini files to target
|
|
||||||
#ifeq ($(call is-board-platform-in-list, msm8992 msm8994),false)
|
|
||||||
ifeq ($(WLAN_PROPRIETARY),1)
|
|
||||||
$(shell mkdir -p $(TARGET_OUT)/etc/firmware/wlan/$(WLAN_CHIPSET))
|
|
||||||
$(shell mkdir -p $(TARGET_OUT)/etc/wifi)
|
|
||||||
$(shell rm -f $(TARGET_OUT)/etc/wifi/WCNSS_qcom_cfg.ini)
|
|
||||||
$(shell cp $(LOCAL_PATH)/config/WCNSS_qcom_cfg.ini $(TARGET_OUT)/etc/wifi)
|
|
||||||
endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
endif # DLKM check
|
endif # DLKM check
|
||||||
|
|
||||||
endif # supported target check
|
endif # supported target check
|
||||||
|
Reference in New Issue
Block a user