aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/Makefile
diff options
context:
space:
mode:
authorAmit Khatri <amit.khatri@samsung.com>2014-05-31 10:36:59 (GMT)
committerJouni Malinen <j@w1.fi>2014-05-31 10:36:59 (GMT)
commit9a17b36e55aa7684553a423e87387632e18cb3eb (patch)
tree269e62d6d7124afd0a4d8a03048c4276e5f8cfab /wpa_supplicant/Makefile
parentbedb6ea54fe411f66bb8c91b7fd896b4096adf8f (diff)
downloadhostap-9a17b36e55aa7684553a423e87387632e18cb3eb.zip
hostap-9a17b36e55aa7684553a423e87387632e18cb3eb.tar.gz
hostap-9a17b36e55aa7684553a423e87387632e18cb3eb.tar.bz2
tests: Makefile change avoiding compiler error for module test
wpa_supplicant was giving below error when "CONFIG_MODULE_TESTS=y" and "CONFIG_P2P=y" are in .config file: "wpas_module_tests.c:84: undefined reference to `wps_module_tests'" This error is coming because "CONFIG_WPS=y" is commented out in .config file but CONFIG_WPS is getting enabled by CONFIG_P2P in Makefile. Signed-off-by: Amit Khatri <amit.khatri@samsung.com>
Diffstat (limited to 'wpa_supplicant/Makefile')
-rw-r--r--wpa_supplicant/Makefile20
1 files changed, 10 insertions, 10 deletions
diff --git a/wpa_supplicant/Makefile b/wpa_supplicant/Makefile
index e684555..817a69d 100644
--- a/wpa_supplicant/Makefile
+++ b/wpa_supplicant/Makefile
@@ -97,16 +97,6 @@ OBJS += ../src/utils/os_$(CONFIG_OS).o
OBJS_p += ../src/utils/os_$(CONFIG_OS).o
OBJS_c += ../src/utils/os_$(CONFIG_OS).o
-ifdef CONFIG_MODULE_TESTS
-CFLAGS += -DCONFIG_MODULE_TESTS
-OBJS += wpas_module_tests.o
-OBJS += ../src/utils/utils_module_tests.o
-OBJS += ../src/common/common_module_tests.o
-ifdef CONFIG_WPS
-OBJS += ../src/wps/wps_module_tests.o
-endif
-endif
-
ifdef CONFIG_WPA_TRACE
CFLAGS += -DWPA_TRACE
OBJS += ../src/utils/trace.o
@@ -1501,6 +1491,16 @@ OBJS += offchannel.o
CFLAGS += -DCONFIG_OFFCHANNEL
endif
+ifdef CONFIG_MODULE_TESTS
+CFLAGS += -DCONFIG_MODULE_TESTS
+OBJS += wpas_module_tests.o
+OBJS += ../src/utils/utils_module_tests.o
+OBJS += ../src/common/common_module_tests.o
+ifdef CONFIG_WPS
+OBJS += ../src/wps/wps_module_tests.o
+endif
+endif
+
OBJS += ../src/drivers/driver_common.o
OBJS_priv += ../src/drivers/driver_common.o