1# 2# Copyright 2012 The Android Open Source Project 3# 4# Licensed under the Apache License, Version 2.0 (the "License"); 5# you may not use this file except in compliance with the License. 6# You may obtain a copy of the License at 7# 8# http://www.apache.org/licenses/LICENSE-2.0 9# 10# Unless required by applicable law or agreed to in writing, software 11# distributed under the License is distributed on an "AS IS" BASIS, 12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13# See the License for the specific language governing permissions and 14# limitations under the License. 15# 16 17ifneq ($(filter mako occam,$(TARGET_DEVICE)),) 18 19LOCAL_PATH:= $(call my-dir) 20 21include $(CLEAR_VARS) 22LOCAL_MODULE := libwfcu 23LOCAL_SRC_FILES := wfc_util_fctrl.c \ 24 wfc_util_common.c 25LOCAL_CFLAGS := -Wall \ 26 -Werror 27LOCAL_CFLAGS += -DCONFIG_LGE_WLAN_WIFI_PATCH 28ifeq ($(BOARD_HAS_QCOM_WLAN), true) 29LOCAL_SRC_FILES += wfc_util_qcom.c 30LOCAL_CFLAGS += -DCONFIG_LGE_WLAN_QCOM_PATCH 31LOCAL_CFLAGS += -DWLAN_CHIP_VERSION_WCNSS 32endif 33LOCAL_SHARED_LIBRARIES := libcutils liblog 34LOCAL_PRELINK_MODULE := false 35LOCAL_MODULE_TAGS := optional 36LOCAL_MODULE_OWNER := lge 37include $(BUILD_SHARED_LIBRARY) 38 39include $(CLEAR_VARS) 40LOCAL_SRC_FILES := conn_init.c 41LOCAL_SHARED_LIBRARIES := libcutils liblog 42LOCAL_SHARED_LIBRARIES += libwfcu 43LOCAL_CFLAGS += -Wall -Werror 44LOCAL_MODULE_TAGS := optional 45LOCAL_MODULE_PATH := $(TARGET_OUT)/bin 46LOCAL_MODULE := conn_init 47LOCAL_MODULE_OWNER := lge 48 49# Install symlinks with targets unavailable at build time 50LOCAL_POST_INSTALL_CMD := \ 51 mkdir -p $(TARGET_OUT_VENDOR)/firmware/wlan/prima/; \ 52 ln -sf /data/misc/wifi/WCNSS_qcom_cfg.ini $(TARGET_OUT_VENDOR)/firmware/wlan/prima/WCNSS_qcom_cfg.ini; \ 53 ln -sf /data/misc/wifi/WCNSS_qcom_wlan_nv.bin $(TARGET_OUT_VENDOR)/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin 54 55include $(BUILD_EXECUTABLE) 56 57endif 58