index 679028327b2e5cba8e52ed44e3d222cb500e681e..d2bd82c0ccdd884fac738db1bb2791d1aee5bd1a 100644 (file)
#
#############################################################
# $License: BSD3 2016 $
-#
+#
# Copyright (c) 2015, Texas Instruments Incorporated
# All rights reserved.
-#
+#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
-#
+#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
-#
+#
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
-#
+#
# * Neither the name of Texas Instruments Incorporated nor the names of
# its contributors may be used to endorse or promote products derived
# from this software without specific prior written permission.
-#
+#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#############################################################
-# $Release Name: TI-15.4Stack Linux x64 SDK ENG$
-# $Release Date: Mar 08, 2017 (2.01.00.10)$
+# $Release Name: TI-15.4Stack Linux x64 SDK$
+# $Release Date: Jun 28, 2017 (2.02.00.03)$
#############################################################
_default: _app
-PROTOC_INSTALL_DIR=../google/install
COMPONENTS_HOME=../../components
+SDK_HOME=../../../
HERE=$(shell pwd)
CFLAGS += -include ${HERE}/timac_features.h
CFLAGS += -DAUTO_START
CFLAGS += -DNV_RESTORE
+#CFLAGS += -DFCS_TYPE16
+CFLAGS += -DIS_HEADLESS
CFLAGS += -I.
-CFLAGS += -I./protobuf-c
CFLAGS += -I${COMPONENTS_HOME}/common/inc
CFLAGS += -I${COMPONENTS_HOME}/nv/inc
CFLAGS += -I${COMPONENTS_HOME}/api/inc
+CFLAGS += -I${SDK_HOME}
#----------------------------------------
# NOTE: to use the Protobuf-C package that is built
#CFLAGS+= -I$(PROTOC_INSTALL_DIR)/include
#
# STEP 3: Remove the "protobuf-c.c
-PROTOBUF_C_C = protobuf-c.c
#
-# STEP 4:
+# STEP 4:
# Link the protobuf-c library
# To do this, you will need to cross-compile the
# protobuf-C library and related items to your target.
-#
+#
include ../../scripts/front_matter.mak
APP_NAME = collector
-appsrv.pb-c.c: appsrv.proto
-api_mac.pb-c.c: api_mac.proto
-cllc.pb-c.c: cllc.proto
-csf_linux.pb-c.c: csf_linux.proto
-csf.pb-c.c: csf.proto
-llc.pb-c.c: llc.proto
-smsgs.pb-c.c: smsgs.proto
-
-PB_PROTO_FILES += appsrv.proto
-PB_PROTO_FILES += api_mac.proto
-PB_PROTO_FILES += cllc.proto
-PB_PROTO_FILES += csf_linux.proto
-PB_PROTO_FILES += csf.proto
-PB_PROTO_FILES += llc.proto
-PB_PROTO_FILES += smsgs.proto
-
-PB_C_FILES= ${PB_PROTO_FILES:%.proto=%.pb-c.c}
-PB_H_FILES= ${PB_PROTO_FILES:%.proto=%.pb-c.h}
-
-C_SOURCES += ${PB_C_FILES}
-C_SOURCES += appsrv_proto.c
-C_SOURCES += llc_proto.c
-C_SOURCES += api_mac_proto.c
-C_SOURCES += csf_proto.c
-C_SOURCES += smsgs_proto.c
C_SOURCES += linux_main.c
C_SOURCES += cllc.c
C_SOURCES += collector.c
C_SOURCES += csf_linux.c
C_SOURCES += appsrv.c
C_SOURCES += util.c
-C_SOURCES += ${PROTOBUF_C_C}
+C_SOURCES += oad_protocol.c
APP_LIBS += libnv.a
APP_LIBS += libapimac.a
# To rebuild these, you will need to install
# the "protobuf-c" compiler.
#
-# NOTE:
+# NOTE:
# Please do not do this: "apt-get install protobuf-c"
# WHY?
-# The assumption is you will debug/develop/primary-test
+# The assumption is you will debug/develop/primary-test
# your application on a desktop linux (x86) linux machine.
# Why? Because it is simple to do that.
#
#
# The solution:
# See the directory: ../google/Makefile
-# That makefile will fetch/clone, build and locally-install the
+# That makefile will fetch/clone, build and locally-install the
# protobuf solution used here at TI during development.
#
# https://developers.google.com/protocol-buffers/
#
-PROTO_FLAGS=--error_format=gcc
-
-generated_files:: ${PB_C_FILES}
-
-PROTOC_C := $(HIDE)${PROTOC_INSTALL_DIR}/bin/protoc-c
-
-
-%.pb-c.c: %.proto
- $(HIDE)mkdir -p ${OBJDIR}
- $(HIDE)echo "Processing protocol file: ${*}.proto"
- $(HIDE)$(PROTOC_C) --c_out=. ${*}.proto --dependency_out=${OBJDIR}/${*}.pb-c.d
-
-proto-clean:
- $(HIDE)rm -f ${PB_C_FILES}
- $(HIDE)rm -f ${PB_H_FILES}
-
-proto-gen: ${PB_C_FILES}
- @# Note: This will also generate the PROTO_H_FILES
-
-pb: ${PB_C_FILES}
-
include ../../scripts/app.mak