Message ID | 2096793269.2.1727490448894@boobie.home |
---|---|
State | Accepted |
Headers | show |
Series | Cannot compile sae_pk_gen without modifying Makefile | expand |
On Fri, Sep 27, 2024 at 10:27:28PM -0400, Ameer Antar wrote:
> 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.
Thanks, applied with some changes.
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
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> --- --