Android: Makefile: move IPC libraries/binaries to vendor partition 3.47.00.00 3.47.00.00_eng
authorVishal Mahaveer <vishalm@ti.com>
Thu, 14 Sep 2017 21:25:52 +0000 (16:25 -0500)
committerAngela Stegmaier <angelabaker@ti.com>
Thu, 14 Sep 2017 21:32:41 +0000 (16:32 -0500)
Updating Android makefile to generate IPC userspace binaries and
libraries in /vendor location instead of /system.

This change requires the lad_dra7xx service definition in init.*.rc
files to be updated accordingly

-service lad_dra7xx /system/bin/lad_dra7xx -g
+service lad_dra7xx /vendor/bin/lad_dra7xx -g

Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
Android.mk

index 8bda41efebc2a60468743967fe77535a177e56dc..6c0bab26cb958fa0d2099ea17785c124ae73bfc5 100644 (file)
@@ -41,6 +41,7 @@ LOCAL_C_INCLUDES +=  $(LOCAL_PATH)/linux/include \
 LOCAL_CFLAGS += -DIPC_BUILDOS_ANDROID -DGATEMP_SUPPORT -fPIC
 LOCAL_CFLAGS += -DPLATFORM_SDK_VERSION=$(PLATFORM_SDK_VERSION)
 LOCAL_MODULE_TAGS:= optional
+LOCAL_MODULE_PATH:= $(TARGET_OUT_VENDOR_SHARED_LIBRARIES)
 
 LOCAL_SRC_FILES:= linux/src/api/MultiProc.c \
                   linux/src/api/NameServer.c \
@@ -68,6 +69,7 @@ LOCAL_C_INCLUDES +=  $(LOCAL_PATH)/linux/include \
 LOCAL_CFLAGS += -DIPC_BUILDOS_ANDROID
 LOCAL_CFLAGS += -DPLATFORM_SDK_VERSION=$(PLATFORM_SDK_VERSION)
 LOCAL_MODULE_TAGS:= optional
+LOCAL_MODULE_PATH:= $(TARGET_OUT_VENDOR_SHARED_LIBRARIES)
 
 LOCAL_SRC_FILES:= linux/src/utils/LAD_client.c \
                   linux/src/utils/SocketFxns.c \
@@ -91,6 +93,7 @@ LOCAL_C_INCLUDES +=  $(LOCAL_PATH)/linux/include \
 LOCAL_CFLAGS += -DIPC_BUILDOS_ANDROID
 LOCAL_CFLAGS += -DPLATFORM_SDK_VERSION=$(PLATFORM_SDK_VERSION)
 LOCAL_MODULE_TAGS:= optional
+LOCAL_MODULE_PATH:= $(TARGET_OUT_VENDOR_SHARED_LIBRARIES)
 
 LOCAL_SRC_FILES:= linux/src/utils/LAD_client.c \
                   linux/src/utils/SocketFxns.c \
@@ -115,6 +118,7 @@ LOCAL_C_INCLUDES +=  $(LOCAL_PATH)/linux/include \
 LOCAL_CFLAGS += -DIPC_BUILDOS_ANDROID
 LOCAL_CFLAGS += -DPLATFORM_SDK_VERSION=$(PLATFORM_SDK_VERSION)
 LOCAL_MODULE_TAGS:= optional
+LOCAL_MODULE_PATH:= $(TARGET_OUT_VENDOR_SHARED_LIBRARIES)
 
 LOCAL_SRC_FILES:= linux/src/transport/TransportRpmsg.c
 
@@ -134,6 +138,7 @@ LOCAL_C_INCLUDES += $(LOCAL_PATH) \
 LOCAL_CFLAGS += -DIPC_BUILDOS_ANDROID
 LOCAL_CFLAGS += -DPLATFORM_SDK_VERSION=$(PLATFORM_SDK_VERSION)
 LOCAL_MODULE_TAGS:= optional
+LOCAL_MODULE_PATH:= $(TARGET_OUT_VENDOR_SHARED_LIBRARIES)
 
 LOCAL_SRC_FILES:= packages/ti/ipc/mm/MmRpc.c
 
@@ -154,6 +159,7 @@ LOCAL_C_INCLUDES +=  $(LOCAL_PATH)/linux/include \
 LOCAL_CFLAGS += -DIPC_BUILDOS_ANDROID -DGATEMP_SUPPORT -DDAEMON=0
 LOCAL_CFLAGS += -DPLATFORM_SDK_VERSION=$(PLATFORM_SDK_VERSION)
 LOCAL_MODULE_TAGS:= optional
+LOCAL_MODULE_PATH:= $(TARGET_OUT_VENDOR_EXECUTABLES)
 
 LOCAL_SRC_FILES:= linux/src/daemon/lad.c \
                   linux/src/daemon/Ipc_daemon.c \
@@ -184,6 +190,7 @@ LOCAL_C_INCLUDES +=  $(LOCAL_PATH)/linux/include \
 
 LOCAL_CFLAGS += -DIPC_BUILDOS_ANDROID
 LOCAL_MODULE_TAGS:= optional
+LOCAL_MODULE_PATH:= $(TARGET_OUT_VENDOR_EXECUTABLES)
 
 LOCAL_SRC_FILES:= linux/src/tests/MessageQApp.c
 
@@ -202,6 +209,7 @@ LOCAL_C_INCLUDES +=  $(LOCAL_PATH)/linux/include \
 
 LOCAL_CFLAGS += -DIPC_BUILDOS_ANDROID
 LOCAL_MODULE_TAGS:= optional
+LOCAL_MODULE_PATH:= $(TARGET_OUT_VENDOR_EXECUTABLES)
 
 LOCAL_SRC_FILES:= linux/src/tests/MessageQBench.c
 
@@ -220,6 +228,7 @@ LOCAL_C_INCLUDES +=  $(LOCAL_PATH)/linux/include \
 
 LOCAL_CFLAGS += -DIPC_BUILDOS_ANDROID
 LOCAL_MODULE_TAGS:= optional
+LOCAL_MODULE_PATH:= $(TARGET_OUT_VENDOR_EXECUTABLES)
 
 LOCAL_SRC_FILES:= linux/src/tests/MessageQMulti.c
 
@@ -239,6 +248,7 @@ LOCAL_C_INCLUDES +=  $(LOCAL_PATH)/linux/include \
 
 LOCAL_CFLAGS += -DIPC_BUILDOS_ANDROID
 LOCAL_MODULE_TAGS:= optional
+LOCAL_MODULE_PATH:= $(TARGET_OUT_VENDOR_EXECUTABLES)
 
 LOCAL_SRC_FILES:= linux/src/tests/NameServerApp.c
 
@@ -256,6 +266,7 @@ LOCAL_C_INCLUDES +=  $(LOCAL_PATH)/linux/include
 
 LOCAL_CFLAGS += -DIPC_BUILDOS_ANDROID
 LOCAL_MODULE_TAGS:= optional
+LOCAL_MODULE_PATH:= $(TARGET_OUT_VENDOR_EXECUTABLES)
 
 LOCAL_SRC_FILES:= linux/src/tests/ping_rpmsg.c
 
@@ -274,6 +285,7 @@ LOCAL_C_INCLUDES +=  $(LOCAL_PATH)/linux/include \
 
 LOCAL_CFLAGS += -DIPC_BUILDOS_ANDROID
 LOCAL_MODULE_TAGS:= optional
+LOCAL_MODULE_PATH:= $(TARGET_OUT_VENDOR_EXECUTABLES)
 
 LOCAL_SRC_FILES:= linux/src/tests/MessageQFaultApp.c