Add Makefile for hexagon controller
Change: 144755322
This commit is contained in:
parent
511a753e8d
commit
213f73d843
19
tensorflow/contrib/hvx/hexagon_controller/Makefile
Normal file
19
tensorflow/contrib/hvx/hexagon_controller/Makefile
Normal file
@ -0,0 +1,19 @@
|
||||
# Copyright 2017 The TensorFlow Authors. All Rights Reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
include glue/defines.min
|
||||
|
||||
include target/make/android.min
|
||||
|
||||
include $(RULES_MIN)
|
@ -33,6 +33,12 @@ static inline bool IsLogOn(int log_level) { return log_level >= s_log_level; }
|
||||
|
||||
static inline void SetLogLevel(int log_level) { s_log_level = log_level; }
|
||||
|
||||
#define TFMLOGV(fmt, ...) \
|
||||
do { \
|
||||
if (!IsLogOn(TFM_LOG_LEVEL_VERBOSE)) break; \
|
||||
printf(fmt "\n", ##__VA_ARGS__); \
|
||||
} while (0)
|
||||
|
||||
#define TFMLOGD(fmt, ...) \
|
||||
do { \
|
||||
if (!IsLogOn(TFM_LOG_LEVEL_DEBUG)) break; \
|
||||
|
@ -0,0 +1,51 @@
|
||||
/* Copyright 2017 The TensorFlow Authors. All Rights Reserved.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
==============================================================================*/
|
||||
|
||||
INCDIRS += ../../../libs/common/adspmsgd/ship/android_Release
|
||||
|
||||
INCDIRS += src_impl/include
|
||||
INCDIRS += src_log/include
|
||||
INCDIRS += src_soc_interface/include
|
||||
|
||||
LIBDIRS += ../../../libs/common/adspmsgd/ship/android_Release
|
||||
|
||||
BUILD_DLLS=libhexagon_controller
|
||||
|
||||
hexagon_controller_lib_QAICIDLS += \
|
||||
interface/hexagon_nn \
|
||||
$(MAKE_D_DSPCV_INCDIR)/dspCV
|
||||
|
||||
hexagon_controller_lib_C_SRCS += \
|
||||
src_impl/hexagon_controller \
|
||||
src_impl/graph_functions_wrapper \
|
||||
src_soc_interface/soc_interface
|
||||
|
||||
hexagon_controller_lib_DLLS += libadsprpc
|
||||
hexagon_controller_lib_LIBS += rpcmem adspmsgd
|
||||
hexagon_controller_lib_LD_FLAGS += -llog
|
||||
hexagon_controller_lib_DEFINES += VERIFY_PRINT_ERROR
|
||||
|
||||
libhexagon_controller_QAICIDLS += $(hexagon_controller_lib_QAICIDLS)
|
||||
libhexagon_controller_C_SRCS += $(hexagon_controller_lib_C_SRCS)
|
||||
libhexagon_controller_DLLS += $(hexagon_controller_lib_DLLS)
|
||||
libhexagon_controller_LIBS += $(hexagon_controller_lib_LIBS)
|
||||
libhexagon_controller_LD_FLAGS += $(hexagon_controller_lib_LD_FLAGS)
|
||||
libhexagon_controller_DEFINES += $(hexagon_controller_lib_DEFINES)
|
||||
|
||||
BUILD_COPIES = \
|
||||
$(DLLS) \
|
||||
$(EXES) \
|
||||
$(LIBS) \
|
||||
$(SHIP_DIR)/ ;
|
Loading…
x
Reference in New Issue
Block a user