From: Arnie Reynoso Date: Wed, 21 Jan 2015 19:46:29 +0000 (-0800) Subject: Android: Added makefile to build transportrpmsg library X-Git-Tag: 3.35.00.02_eng~1 X-Git-Url: https://git.ti.com/gitweb?p=ipc%2Fipcdev.git;a=commitdiff_plain;h=298eb7b96120ee7874688c0f682c79805852798b Android: Added makefile to build transportrpmsg library Added an Android.mak file to build newly separated transportRpmsg library. Updated the corresponding host-side test examples to link with the library. --- diff --git a/android/src/tests/Android.mk b/android/src/tests/Android.mk index c06eb0c..9fb8660 100644 --- a/android/src/tests/Android.mk +++ b/android/src/tests/Android.mk @@ -1,5 +1,5 @@ # -# Copyright (c) 2013, Texas Instruments Incorporated +# Copyright (c) 2013-2015, Texas Instruments Incorporated # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions @@ -45,7 +45,7 @@ LOCAL_MODULE_TAGS:= optional LOCAL_SRC_FILES:= $(IPC_ROOT)/linux/src/tests/MessageQApp.c LOCAL_SHARED_LIBRARIES := \ - liblog libtiipcutils libtiipc + liblog libtiipcutils libtiipc libtitransportrpmsg LOCAL_MODULE:= messageQApp include $(BUILD_EXECUTABLE) @@ -64,7 +64,7 @@ LOCAL_MODULE_TAGS:= optional LOCAL_SRC_FILES:= $(IPC_ROOT)/linux/src/tests/MessageQBench.c LOCAL_SHARED_LIBRARIES := \ - liblog libtiipcutils libtiipc + liblog libtiipcutils libtiipc libtitransportrpmsg LOCAL_MODULE:= messageQBench include $(BUILD_EXECUTABLE) @@ -83,7 +83,7 @@ LOCAL_MODULE_TAGS:= optional LOCAL_SRC_FILES:= $(IPC_ROOT)/linux/src/tests/MessageQMulti.c LOCAL_SHARED_LIBRARIES := \ - liblog libtiipcutils libtiipc + liblog libtiipcutils libtiipc libtitransportrpmsg LOCAL_MODULE:= messageQMulti include $(BUILD_EXECUTABLE) @@ -103,7 +103,7 @@ LOCAL_MODULE_TAGS:= optional LOCAL_SRC_FILES:= $(IPC_ROOT)/linux/src/tests/NameServerApp.c LOCAL_SHARED_LIBRARIES := \ - liblog libtiipcutils libtiipc + liblog libtiipcutils libtiipc libtitransportrpmsg LOCAL_MODULE:= nameServerApp include $(BUILD_EXECUTABLE) diff --git a/android/src/transport/Android.mk b/android/src/transport/Android.mk new file mode 100644 index 0000000..4c6965d --- /dev/null +++ b/android/src/transport/Android.mk @@ -0,0 +1,51 @@ +# +# Copyright (c) 2015, Texas Instruments Incorporated +# +# 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 +# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR +# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# + +LOCAL_PATH:= $(call my-dir) + +include $(CLEAR_VARS) + +IPC_ROOT := ../../.. + +LOCAL_C_INCLUDES += $(LOCAL_PATH)/$(IPC_ROOT)/linux/include \ + $(LOCAL_PATH)/$(IPC_ROOT)/packages \ + $(LOCAL_PATH)/$(IPC_ROOT)/hlos_common/include + +LOCAL_CFLAGS += -DIPC_BUILDOS_ANDROID +LOCAL_MODULE_TAGS:= optional + +LOCAL_SRC_FILES:= $(IPC_ROOT)/linux/src/transport/TransportRpmsg.c + +LOCAL_SHARED_LIBRARIES := \ + liblog libtiipcutils libtiipc + +LOCAL_MODULE:= libtitransportrpmsg +include $(BUILD_SHARED_LIBRARY)