Commit 2d036547 authored by winckel's avatar winckel

Added the possibility to log NAS messages in UE (ENABLE_NAS_UE_LOGGING must be...

Added the possibility to log NAS messages in UE (ENABLE_NAS_UE_LOGGING must be added in the build file and "opennair-cn" directory must be available to access NAS header files).

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4976 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent e2cf0d01
...@@ -29,20 +29,6 @@ include $(COMMON_UTILS_DIR)/Makefile.inc ...@@ -29,20 +29,6 @@ include $(COMMON_UTILS_DIR)/Makefile.inc
include $(OPENAIR_TARGETS)/COMMON/Makefile.inc include $(OPENAIR_TARGETS)/COMMON/Makefile.inc
include $(OPENAIR2_DIR)/NAS/Makefile.inc include $(OPENAIR2_DIR)/NAS/Makefile.inc
$(ITTI_MESSAGES_XML): $(ITTI_MESSAGES_FILE)
@echo "Generating messages.xml ..."
@gccxml $(L2_incl) $(UTILS_incl) $< -fxml=$@
@$(CC) -MM $(L2_incl) $(UTILS_incl) $< > $(basename $@).d
@mv -f $(basename $@).d $(basename $@).d.tmp
@sed -e 's|.*:|$@:|' < $(basename $@).d.tmp > $(basename $@).d
@sed -e 's/.*://' -e 's/\\$$//' < $(basename $@).d.tmp | fmt -1 | \
sed -e 's/^ *//' -e 's/$$/:/' >> $(basename $@).d
@rm -f $(basename $@).d.tmp
$(ITTI_MESSAGES_H): $(ITTI_MESSAGES_XML)
@echo "Generating messages_xml.h ..."
@sed -e 's/[ ]*//' -e 's/"/\\"/g' -e 's/^/"/' -e 's/$$/\\n"/' $< > $@
ifdef USE_MME ifdef USE_MME
COMMON_CFLAGS += -DENABLE_USE_MME COMMON_CFLAGS += -DENABLE_USE_MME
...@@ -57,6 +43,12 @@ COMMON_CFLAGS += -DLOG_NO_THREAD ...@@ -57,6 +43,12 @@ COMMON_CFLAGS += -DLOG_NO_THREAD
COMMON_CFLAGS += -I$(OPENAIR2_DIR)/NAS COMMON_CFLAGS += -I$(OPENAIR2_DIR)/NAS
COMMON_CFLAGS += $(L2_incl) COMMON_CFLAGS += $(L2_incl)
COMMON_CFLAGS += $(UTILS_incl) COMMON_CFLAGS += $(UTILS_incl)
COMMON_CFLAGS += -I$(OPENAIR_HOME)/openair-cn/NAS/EURECOM-NAS/src/api/network
COMMON_CFLAGS += -I$(OPENAIR_HOME)/openair-cn/NAS/EURECOM-NAS/src/include
COMMON_CFLAGS += -I$(OPENAIR_HOME)/openair-cn/NAS/EURECOM-NAS/src/ies
COMMON_CFLAGS += -I$(OPENAIR_HOME)/openair-cn/NAS/EURECOM-NAS/src/emm/msg
COMMON_CFLAGS += -I$(OPENAIR_HOME)/openair-cn/NAS/EURECOM-NAS/src/esm/msg
COMMON_CFLAGS += -I$(OPENAIR_HOME)/openair-cn/NAS/EURECOM-NAS/src/util
UENAS_CFLAGS = $(COMMON_CFLAGS) UENAS_CFLAGS = $(COMMON_CFLAGS)
export UENAS_CFLAGS export UENAS_CFLAGS
...@@ -81,6 +73,8 @@ $(SCTP_OBJ_DIR)/libsctp.a: force_look ...@@ -81,6 +73,8 @@ $(SCTP_OBJ_DIR)/libsctp.a: force_look
OBJ = $(NAS_UE_OBJS) OBJ = $(NAS_UE_OBJS)
endif endif
export COMMON_CFLAGS
ifdef ENABLE_ITTI ifdef ENABLE_ITTI
SHARED_DEPENDENCIES += $(ITTI_MESSAGES_H) SHARED_DEPENDENCIES += $(ITTI_MESSAGES_H)
...@@ -97,6 +91,20 @@ endif ...@@ -97,6 +91,20 @@ endif
CFLAGS += -I$(OPENAIR2_DIR)/COMMON -DENABLE_ITTI $(UTILS_incl) CFLAGS += -I$(OPENAIR2_DIR)/COMMON -DENABLE_ITTI $(UTILS_incl)
endif endif
$(ITTI_MESSAGES_XML): $(ITTI_MESSAGES_FILE) $(ITTI_MESSAGES_XML:.xml=.d)
@echo "Generating messages.xml ..."
@gccxml $(COMMON_CFLAGS) $< -fxml=$@
@$(CC) -MM $(L2_incl) $(UTILS_incl) $< > $(basename $@).d
@mv -f $(basename $@).d $(basename $@).d.tmp
@sed -e 's|.*:|$@:|' < $(basename $@).d.tmp > $(basename $@).d
@sed -e 's/.*://' -e 's/\\$$//' < $(basename $@).d.tmp | fmt -1 | \
sed -e 's/^ *//' -e 's/$$/:/' >> $(basename $@).d
@rm -f $(basename $@).d.tmp
$(ITTI_MESSAGES_H): $(ITTI_MESSAGES_XML)
@echo "Generating messages_xml.h ..."
@sed -e 's/[ ]*//' -e 's/"/\\"/g' -e 's/^/"/' -e 's/$$/\\n"/' $< > $@
force_look: force_look:
@true @true
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment