From 9c194d17f6286b15a6260f9b6450da1d23932efb Mon Sep 17 00:00:00 2001 From: Navid Nikaein <navid.nikaein@eurecom.fr> Date: Wed, 23 Apr 2014 10:22:03 +0000 Subject: [PATCH] git-svn-id: http://svn.eurecom.fr/openair4G/trunk@5286 818b1a75-f10b-46b9-bf7c-635c3b92a50f --- targets/RTAI/USER/Makefile | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/targets/RTAI/USER/Makefile b/targets/RTAI/USER/Makefile index f3b01ed781..00f2f8aa89 100644 --- a/targets/RTAI/USER/Makefile +++ b/targets/RTAI/USER/Makefile @@ -36,6 +36,22 @@ ifeq ($(ENABLE_RAL), 1) CFLAGS += -DENABLE_RAL endif +ifdef SECU +ifeq ($(NETTLE_FOUND), 0) +@echo "Nettle library >= 2.5 is not installed on your system, nettle-dev lib needed, continuing with security disabled" +SECU=0 +else +ifeq ($(OPENSSL_FOUND), 0) +@echo "openssl library is not installed on your system, openssl lib needed, continuing with security disabled" +SECU=0 +else +CFLAGS += -DENABLE_SECURITY +LIBS += $(OPENSSL_LIBS) $(NETTLE_LIBS) +endif +endif +endif + + ifeq ($(RTAI),1) CFLAGS += -DENABLE_RTAI_CLOCK CFLAGS += -DCONFIG_RTAI_LXRT_INLINE #remend the RTAI warning @@ -95,7 +111,7 @@ OPENAIR2=1 endif ifeq ($(OPENAIR2),1) ASN1_MSG_OBJS1=$(addprefix $(OPENAIR2_DIR)/RRC/LITE/MESSAGES/, $(ASN1_MSG_OBJS)) -OBJ += $(L2_OBJS) $(LIST_OBJ) $(TIMER_OBJ) $(MEM_OBJ) $(OTG_OBJS) $(MATH_OBJS) +OBJ += $(L2_OBJS) $(LIST_OBJ) $(TIMER_OBJ) $(MEM_OBJ) $(OTG_OBJS) $(MATH_OBJS) $(OSA_OBJS) OBJ += $(OPENAIR1_DIR)/SIMULATION/ETH_TRANSPORT/netlink_init.o #OBJ += $(PDCP_DIR)/pdcp_thread.o CFLAGS += -DOPENAIR2 -DNO_RRM -DPUCCH -DMAC_CONTEXT=1 @@ -107,6 +123,10 @@ ifdef ENABLE_ITTI CFLAGS += -DEXMIMO_IOT endif +ifdef RRC_MSG_PRINT +CFLAG += ENABLE_RRG_MSG +endif + CFLAGS += $(L2_incl) $(ENB_APP_incl) $(UTIL_incl) $(UTILS_incl) CFLAGS += -I$(OPENAIR1_DIR) -I$(OPENAIR2_DIR)/RRC/LITE/MESSAGES #-I$(OPENAIR3_DIR)/MESH -I$(OPENAIR3_DIR)/MESH/RRM @@ -368,6 +388,7 @@ show: @echo $(USRP_OBJ) @echo IS_REL8 is $(IS_REL8) @echo IS_REL10 is $(IS_REL10) - + @echo openssl $(OPENSSL_FOUND) + @echo nettle $(NETTLE_FOUND) beautiful: astyle --style=gnu -s2 $(SRC) -- GitLab