[PATCH] tests : Makefile change avoiding compiler error for module test

Jouni Malinen j
Sat May 31 08:44:40 PDT 2014

On Wed, May 28, 2014 at 06:07:08AM +0000, Amit Khatri wrote:
> WPA Supplicant is giving below error when  "CONFIG_MODULE_TESTS=y" and "CONFIG_P2P=y" 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.

Thanks. I applied this with a bit different design to avoid need for
duplicate addition of wps_module_tests.o, i.e., by moving the main ifdef
CONFIG_MODULE_TESTS further down in the Makefile to get the CONFIG_WPS=y
addition from CONFIG_P2P.
Jouni Malinen                                            PGP id EFC895FA

More information about the Hostap mailing list