| Jouni Malinen | cd4e3c3 | 2015-10-29 12:39:56 +0200 | [diff] [blame] | 1 | OBJS=sigma_dut.c | 
|  | 2 | OBJS += utils.c | 
|  | 3 | OBJS += wpa_ctrl.c | 
|  | 4 | OBJS += wpa_helpers.c | 
|  | 5 |  | 
|  | 6 | OBJS += cmds_reg.c | 
|  | 7 | OBJS += basic.c | 
|  | 8 | OBJS += sta.c | 
|  | 9 | OBJS += traffic.c | 
|  | 10 | OBJS += p2p.c | 
|  | 11 | OBJS += dev.c | 
|  | 12 | OBJS += ap.c | 
|  | 13 | OBJS += powerswitch.c | 
|  | 14 | OBJS += atheros.c | 
| priyadharshini gowthaman | d66913a | 2016-07-29 15:11:17 -0700 | [diff] [blame] | 15 | OBJS += ftm.c | 
| Jouni Malinen | cd4e3c3 | 2015-10-29 12:39:56 +0200 | [diff] [blame] | 16 |  | 
|  | 17 | # Initialize CFLAGS to limit to local module | 
|  | 18 | CFLAGS = | 
|  | 19 | ifndef NO_TRAFFIC_AGENT | 
|  | 20 | CFLAGS += -DCONFIG_TRAFFIC_AGENT -DCONFIG_WFA_WMM_AC | 
|  | 21 | OBJS += traffic_agent.c | 
|  | 22 | OBJS += uapsd_stream.c | 
|  | 23 | endif | 
|  | 24 |  | 
|  | 25 | ifndef NO_WLANTEST | 
|  | 26 | CFLAGS += -DCONFIG_WLANTEST | 
|  | 27 | OBJS += wlantest.c | 
|  | 28 | endif | 
|  | 29 |  | 
| Amarnath Hullur Subramanyam | 9c381f5 | 2017-03-17 00:04:41 -0700 | [diff] [blame] | 30 | ### MIRACAST ### | 
|  | 31 | OBJS += miracast.c | 
|  | 32 | CFLAGS += -DMIRACAST | 
|  | 33 | dhcpver = $(filter N%,$(PLATFORM_VERSION)) | 
|  | 34 | dhcpver += $(filter 7.%,$(PLATFORM_VERSION)) | 
|  | 35 | ifeq (,$(strip $(dhcpver))) | 
|  | 36 | CFLAGS += -DMIRACAST_DHCP_M | 
|  | 37 | endif | 
| Jouni Malinen | cd4e3c3 | 2015-10-29 12:39:56 +0200 | [diff] [blame] | 38 | CFLAGS += -DCONFIG_CTRL_IFACE_CLIENT_DIR=\"/data/misc/wifi/sockets\" | 
|  | 39 | CFLAGS += -DSIGMA_TMPDIR=\"/data\" | 
|  | 40 |  | 
|  | 41 | LOCAL_PATH := $(call my-dir) | 
|  | 42 | FRAMEWORK_GIT_VER := $(shell cd $(ANDROID_BUILD_TOP/)frameworks/base && git describe) | 
|  | 43 | SIGMA_GIT_VER := $(shell cd $(LOCAL_PATH) && git describe --dirty=+) | 
|  | 44 | ifeq ($(SIGMA_GIT_VER),) | 
|  | 45 | ifeq ($(FRAMEWORK_GIT_VER),) | 
|  | 46 | SIGMA_VER = android-$(PLATFORM_VERSION)-$(TARGET_PRODUCT)-$(BUILD_ID) | 
|  | 47 | else | 
|  | 48 | SIGMA_VER = framework-$(FRAMEWORK_VER) | 
|  | 49 | endif | 
|  | 50 | else | 
|  | 51 | ifeq ($(FRAMEWORK_GIT_VER),) | 
|  | 52 | SIGMA_VER = android-$(PLATFORM_VERSION)-$(TARGET_PRODUCT)-$(BUILD_ID)-sigma-$(SIGMA_GIT_VER) | 
|  | 53 | else | 
|  | 54 | SIGMA_VER = framework-$(FRAMEWORK_GIT_VER)-sigma-$(SIGMA_GIT_VER) | 
|  | 55 | endif | 
|  | 56 | endif | 
|  | 57 | CFLAGS += -DSIGMA_DUT_VER=\"$(SIGMA_VER)\" | 
|  | 58 |  | 
|  | 59 | include $(CLEAR_VARS) | 
|  | 60 | LOCAL_MODULE := sigma_dut | 
|  | 61 | LOCAL_MODULE_TAGS := optional | 
|  | 62 | LOCAL_C_INCLUDES += \ | 
|  | 63 | $(LOCAL_PATH) frameworks/base/cmds/keystore system/security/keystore \ | 
| Rakesh Sunki | 556237d | 2017-03-30 14:49:31 -0700 | [diff] [blame] | 64 | $(LOCAL_PATH) frameworks/opt/net/wifi/libwifi_hal/include/ \ | 
| Jouni Malinen | cd4e3c3 | 2015-10-29 12:39:56 +0200 | [diff] [blame] | 65 | $(LOCAL_PATH) hardware/qcom/wlan/qcwcn/wifi_hal \ | 
| Amarnath Hullur Subramanyam | 9c381f5 | 2017-03-17 00:04:41 -0700 | [diff] [blame] | 66 | $(LOCAL_PATH) system/core/include/cutils \ | 
|  | 67 | $(LOCAL_PATH) hardware/libhardware_legacy/include/hardware_legacy \ | 
|  | 68 | $(TARGET_OUT_HEADERS)/common/inc | 
| Jouni Malinen | cd4e3c3 | 2015-10-29 12:39:56 +0200 | [diff] [blame] | 69 | LOCAL_SHARED_LIBRARIES := libc libcutils | 
| Amarnath Hullur Subramanyam | 9c381f5 | 2017-03-17 00:04:41 -0700 | [diff] [blame] | 70 | ifneq (,$(strip $(dhcpver))) | 
|  | 71 | LOCAL_SHARED_LIBRARIES += libnetutils | 
|  | 72 | LOCAL_C_INCLUDES += $(LOCAL_PATH) system/core/include/netutils | 
|  | 73 | endif | 
| Jouni Malinen | cd4e3c3 | 2015-10-29 12:39:56 +0200 | [diff] [blame] | 74 | LOCAL_SHARED_LIBRARIES += libhardware_legacy | 
| Amarnath Hullur Subramanyam | 0366375 | 2016-11-11 13:13:12 -0800 | [diff] [blame] | 75 | ifeq ($(BOARD_WLAN_DEVICE),qcwcn) | 
| Amarnath Hullur Subramanyam | 1854ec6 | 2016-08-11 19:29:35 -0700 | [diff] [blame] | 76 | ifneq ($(wildcard hardware/qcom/wlan/qcwcn/wifi_hal/nan_cert.h),) | 
|  | 77 | LOCAL_SHARED_LIBRARIES += libwifi-hal-qcom | 
| Jouni Malinen | cd4e3c3 | 2015-10-29 12:39:56 +0200 | [diff] [blame] | 78 | OBJS += nan.c | 
|  | 79 | CFLAGS += -DANDROID_NAN | 
|  | 80 | endif | 
| Amarnath Hullur Subramanyam | 0366375 | 2016-11-11 13:13:12 -0800 | [diff] [blame] | 81 | endif | 
| Jouni Malinen | cd4e3c3 | 2015-10-29 12:39:56 +0200 | [diff] [blame] | 82 | CFLAGS += -Wno-unused-parameter | 
|  | 83 | LOCAL_C_INCLUDES += system/security/keystore/include/keystore | 
|  | 84 | LOCAL_SHARED_LIBRARIES += liblog | 
|  | 85 | LOCAL_SHARED_LIBRARIES += libkeystore_binder | 
| Jouni Malinen | cd4e3c3 | 2015-10-29 12:39:56 +0200 | [diff] [blame] | 86 | LOCAL_SRC_FILES := $(OBJS) | 
|  | 87 | LOCAL_CFLAGS := $(CFLAGS) | 
|  | 88 | include $(BUILD_EXECUTABLE) | 
|  | 89 |  | 
|  | 90 | # Add building of e_loop | 
|  | 91 | include $(CLEAR_VARS) | 
|  | 92 | LOCAL_SRC_FILES:= e_loop.c | 
|  | 93 | LOCAL_MODULE := e_loop | 
|  | 94 | LOCAL_CFLAGS := -DWITHOUT_IFADDRS -Wno-sign-compare | 
|  | 95 | include $(BUILD_EXECUTABLE) |