diff --git a/targets/RTAI/USER/Makefile b/targets/RTAI/USER/Makefile index f3b01ed781ce0d050bdb521b33e8064e5632828d..00f2f8aa89344261432f5f3c49df855098e7e73e 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)