Skip to content

Commit

Permalink
ocn: Migrate to versioned VNDK layout
Browse files Browse the repository at this point in the history
Bug: 78605339
Test: boots

Change-Id: Id737dcf05bca7ee42c1233ce7668161bd0da2ab0
  • Loading branch information
Divya Sharma authored and Flinny committed Sep 29, 2018
1 parent df50fd9 commit aa908ce
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions vndk/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ LOCAL_PATH := $(call my-dir)

include $(LOCAL_PATH)/vndk-sp-libs.mk

vndk_sp_dir := vndk-sp-$(PLATFORM_VNDK_VERSION)

define define-vndk-sp-lib
include $$(CLEAR_VARS)
LOCAL_MODULE := $1.vndk-sp-gen
Expand All @@ -12,7 +14,7 @@ LOCAL_MULTILIB := first
LOCAL_MODULE_TAGS := optional
LOCAL_INSTALLED_MODULE_STEM := $1.so
LOCAL_MODULE_SUFFIX := .so
LOCAL_MODULE_RELATIVE_PATH := vndk-sp
LOCAL_MODULE_RELATIVE_PATH := $(vndk_sp_dir)
include $$(BUILD_PREBUILT)

ifneq ($$(TARGET_2ND_ARCH),)
Expand All @@ -26,7 +28,7 @@ LOCAL_MULTILIB := 32
LOCAL_MODULE_TAGS := optional
LOCAL_INSTALLED_MODULE_STEM := $1.so
LOCAL_MODULE_SUFFIX := .so
LOCAL_MODULE_RELATIVE_PATH := vndk-sp
LOCAL_MODULE_RELATIVE_PATH := $(vndk_sp_dir)
include $$(BUILD_PREBUILT)
endif # TARGET_TRANSLATE_2ND_ARCH is not true
endif # TARGET_2ND_ARCH is not empty
Expand All @@ -40,3 +42,5 @@ LOCAL_MODULE := vndk-sp
LOCAL_MODULE_TAGS := optional
LOCAL_REQUIRED_MODULES := $(addsuffix .vndk-sp-gen,$(VNDK_SP_LIBRARIES))
include $(BUILD_PHONY_PACKAGE)

vndk_sp_dir :=

0 comments on commit aa908ce

Please sign in to comment.