From 73d0ad78c8d192a57095ecbfae0185813a05b8b9 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Tue, 24 Nov 2009 10:24:54 +0200 Subject: [PATCH] Fix internal crypto build with some configurations crypto_internal.c requires both aes-internal-enc.o and aes-internal-dec.o, so make sure they get included in the build when using internal crypto. --- hostapd/Makefile | 1 + wpa_supplicant/Makefile | 1 + 2 files changed, 2 insertions(+) diff --git a/hostapd/Makefile b/hostapd/Makefile index 37d76fc0d..a9d4867f1 100644 --- a/hostapd/Makefile +++ b/hostapd/Makefile @@ -472,6 +472,7 @@ endif ifeq ($(CONFIG_CRYPTO), internal) CFLAGS += -DCONFIG_INTERNAL_X509 OBJS += ../src/crypto/crypto_internal.o +NEED_AES_DEC=y CFLAGS += -DCONFIG_CRYPTO_INTERNAL ifdef CONFIG_INTERNAL_LIBTOMMATH CFLAGS += -DCONFIG_INTERNAL_LIBTOMMATH diff --git a/wpa_supplicant/Makefile b/wpa_supplicant/Makefile index 19621ecf2..de86e0348 100644 --- a/wpa_supplicant/Makefile +++ b/wpa_supplicant/Makefile @@ -823,6 +823,7 @@ ifeq ($(CONFIG_CRYPTO), internal) CFLAGS += -DCONFIG_INTERNAL_X509 OBJS += ../src/crypto/crypto_internal.o OBJS_p += ../src/crypto/crypto_internal.o +NEED_AES_ENC=y CFLAGS += -DCONFIG_CRYPTO_INTERNAL ifdef CONFIG_INTERNAL_LIBTOMMATH CFLAGS += -DCONFIG_INTERNAL_LIBTOMMATH