Sungmin Choi | 5fd819d | 2012-07-18 01:49:40 -0700 | [diff] [blame] | 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 | |
| 17 | ifneq ($(filter mako occam,$(TARGET_DEVICE)),) |
| 18 | |
| 19 | LOCAL_PATH:= $(call my-dir) |
| 20 | |
| 21 | include $(CLEAR_VARS) |
| 22 | LOCAL_MODULE := libwfcu |
| 23 | LOCAL_SRC_FILES := wfc_util_fctrl.c \ |
| 24 | wfc_util_common.c |
| 25 | LOCAL_CFLAGS := -Wall \ |
| 26 | -Werror |
| 27 | LOCAL_CFLAGS += -DCONFIG_LGE_WLAN_WIFI_PATCH |
| 28 | ifeq ($(BOARD_HAS_QCOM_WLAN), true) |
| 29 | LOCAL_SRC_FILES += wfc_util_qcom.c |
| 30 | LOCAL_CFLAGS += -DCONFIG_LGE_WLAN_QCOM_PATCH |
| 31 | LOCAL_CFLAGS += -DWLAN_CHIP_VERSION_WCNSS |
| 32 | endif |
| 33 | LOCAL_SHARED_LIBRARIES := libcutils |
| 34 | LOCAL_PRELINK_MODULE := false |
| 35 | LOCAL_MODULE_TAGS := optional |
| 36 | LOCAL_MODULE_OWNER := lge |
| 37 | include $(BUILD_SHARED_LIBRARY) |
| 38 | |
| 39 | include $(CLEAR_VARS) |
| 40 | LOCAL_SRC_FILES := conn_init.c |
| 41 | LOCAL_SHARED_LIBRARIES := libcutils |
| 42 | LOCAL_SHARED_LIBRARIES += libwfcu |
| 43 | LOCAL_CFLAGS += -Wall -Werror |
| 44 | LOCAL_MODULE_TAGS := optional |
| 45 | LOCAL_MODULE_PATH := $(TARGET_OUT)/bin |
| 46 | LOCAL_MODULE := conn_init |
| 47 | LOCAL_MODULE_OWNER := lge |
Ying Wang | cd20109 | 2012-10-10 14:39:37 -0700 | [diff] [blame] | 48 | |
Ying Wang | 906da2a | 2013-02-14 09:55:27 -0800 | [diff] [blame^] | 49 | # Install symlinks with targets unavailable at build time |
| 50 | LOCAL_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 | |
Sungmin Choi | 5fd819d | 2012-07-18 01:49:40 -0700 | [diff] [blame] | 55 | include $(BUILD_EXECUTABLE) |
| 56 | |
Sungmin Choi | 5fd819d | 2012-07-18 01:49:40 -0700 | [diff] [blame] | 57 | endif |