2014-12-03 15:10:33

by Andrei Emeltchenko

[permalink] [raw]
Subject: [PATCH] android/build: Convert LOCAL_MODULE_PATH to LOCAL_MODULE_RELATIVE_PATH

From: Andrei Emeltchenko <[email protected]>

LOCAL_MODULE_PATH needs to be replaced for multiarch builds like for
example for Nexus 9 (volantis) target.
---
android/Android.mk | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/android/Android.mk b/android/Android.mk
index 20a1494..9ee2fc9 100644
--- a/android/Android.mk
+++ b/android/Android.mk
@@ -376,7 +376,7 @@ LOCAL_SHARED_LIBRARIES := \
LOCAL_CFLAGS := $(BLUEZ_COMMON_CFLAGS) -Wno-declaration-after-statement
LOCAL_LDFLAGS := -ldl

-LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
+LOCAL_MODULE_RELATIVE_PATH := hw
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE := audio.a2dp.default

@@ -402,7 +402,7 @@ LOCAL_SHARED_LIBRARIES := \

LOCAL_CFLAGS := $(BLUEZ_COMMON_CFLAGS) -Wno-declaration-after-statement

-LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
+LOCAL_MODULE_RELATIVE_PATH := hw
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE := audio.sco.default

--
1.9.1



2014-12-04 08:38:15

by Szymon Janc

[permalink] [raw]
Subject: Re: [PATCH] android/build: Convert LOCAL_MODULE_PATH to LOCAL_MODULE_RELATIVE_PATH

Hi Andrei,

On Wed, Dec 3, 2014 at 4:10 PM, Andrei Emeltchenko
<[email protected]> wrote:
> From: Andrei Emeltchenko <[email protected]>
>
> LOCAL_MODULE_PATH needs to be replaced for multiarch builds like for
> example for Nexus 9 (volantis) target.
> ---
> android/Android.mk | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/android/Android.mk b/android/Android.mk
> index 20a1494..9ee2fc9 100644
> --- a/android/Android.mk
> +++ b/android/Android.mk
> @@ -376,7 +376,7 @@ LOCAL_SHARED_LIBRARIES := \
> LOCAL_CFLAGS := $(BLUEZ_COMMON_CFLAGS) -Wno-declaration-after-statement
> LOCAL_LDFLAGS := -ldl
>
> -LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
> +LOCAL_MODULE_RELATIVE_PATH := hw
> LOCAL_MODULE_TAGS := optional
> LOCAL_MODULE := audio.a2dp.default
>
> @@ -402,7 +402,7 @@ LOCAL_SHARED_LIBRARIES := \
>
> LOCAL_CFLAGS := $(BLUEZ_COMMON_CFLAGS) -Wno-declaration-after-statement
>
> -LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
> +LOCAL_MODULE_RELATIVE_PATH := hw
> LOCAL_MODULE_TAGS := optional
> LOCAL_MODULE := audio.sco.default
>

Applied, thanks.

--
pozdrawiam
Szymon K. Janc
[email protected]