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