blob: e39c25732d6e63607bd104100ccb8a3b6204d406 [file] [log] [blame]
Sungmin Choi5fd819d2012-07-18 01:49:40 -07001#
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
Ying Wangee1e1182013-04-09 21:44:42 -070033LOCAL_SHARED_LIBRARIES := libcutils liblog
Sungmin Choi5fd819d2012-07-18 01:49:40 -070034LOCAL_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
Ying Wangee1e1182013-04-09 21:44:42 -070041LOCAL_SHARED_LIBRARIES := libcutils liblog
Sungmin Choi5fd819d2012-07-18 01:49:40 -070042LOCAL_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
Ying Wangcd201092012-10-10 14:39:37 -070048
Ying Wang906da2a2013-02-14 09:55:27 -080049# 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
Sungmin Choi5fd819d2012-07-18 01:49:40 -070055include $(BUILD_EXECUTABLE)
56
Sungmin Choi5fd819d2012-07-18 01:49:40 -070057endif