diff mbox series

Cannot compile sae_pk_gen without modifying Makefile

Message ID 2096793269.2.1727490448894@boobie.home
State New
Headers show
Series Cannot compile sae_pk_gen without modifying Makefile | expand

Commit Message

Ameer Antar Sept. 28, 2024, 2:27 a.m. UTC
The Makefile is not properly setup to compile the sae_pk_gen target. Enabling CONFIG_SAE=y and CONFIG_SAE_PK=y in the configuration is not sufficient to compile. The linker complains about undefined references. The following additions must be made to the Makefile to get it to compile, at least with gcc. Once this is done, 'make sae_pk_gen' can be run without issue.


Signed-off-by: Ameer Antar <ameerantar@comcast.net>
---


--
diff mbox series

Patch

diff --git a/hostapd/Makefile b/hostapd/Makefile
index ca44392..afe3d5e 100644
--- a/hostapd/Makefile
+++ b/hostapd/Makefile
@@ -1372,6 +1372,11 @@ 
 SOBJS += ../src/crypto/sha256-kdf.o
 SOBJS += ../src/crypto/sha384-kdf.o
 SOBJS += ../src/crypto/sha512-kdf.o
+HOBJS += ../src/common/wpa_common.o
+SOBJS += ../src/common/wpa_common.o
+SOBJS += ../src/crypto/random.o
+SOBJS += ../src/crypto/sha1-prf.o
+SOBJS += ../src/utils/eloop.o
 
 _OBJS_VAR := NOBJS
 include ../src/objs.mk