device/generic/common
Revision | 96b586a189f707fbec0f29ec7f643e8fdcacccbe (tree) |
---|---|
Time | 2017-06-13 12:14:41 |
Author | Isaac Chen <ycchen@goog...> |
Commiter | SzuWei Lin |
New target to add vndk-sp libs to system image
VNDK-SP libraries should be put under /system/lib*/vndk-sp.
Usage: Adding this new target (vndk-sp) to PRODUCT_PACKAGES.
This initial list of vndk-sp libraries is based on Marlin/Sailfish.
Bug: 38356823
Test: tested with generic AOSP system image on Sailfish
Merged-In: Icbe6431e20c7b5355034f8444b4543df15830d67
Change-Id: Icbe6431e20c7b5355034f8444b4543df15830d67
@@ -0,0 +1,47 @@ | ||
1 | +ifneq ($(filter generic_%,$(TARGET_DEVICE)),) | |
2 | + | |
3 | +LOCAL_PATH := $(call my-dir) | |
4 | + | |
5 | +include $(LOCAL_PATH)/vndk-sp-libs.mk | |
6 | + | |
7 | +define define-vndk-sp-lib | |
8 | +include $$(CLEAR_VARS) | |
9 | +LOCAL_MODULE := $1.vndk-sp-gen | |
10 | +LOCAL_MODULE_CLASS := SHARED_LIBRARIES | |
11 | +LOCAL_PREBUILT_MODULE_FILE := $$(call intermediates-dir-for,SHARED_LIBRARIES,$1,,,,)/$1.so | |
12 | +LOCAL_STRIP_MODULE := false | |
13 | +LOCAL_MULTILIB := first | |
14 | +LOCAL_MODULE_TAGS := optional | |
15 | +LOCAL_INSTALLED_MODULE_STEM := $1.so | |
16 | +LOCAL_MODULE_SUFFIX := .so | |
17 | +LOCAL_MODULE_RELATIVE_PATH := vndk-sp | |
18 | +include $$(BUILD_PREBUILT) | |
19 | + | |
20 | +ifneq ($$(TARGET_2ND_ARCH),) | |
21 | +ifneq ($$(TARGET_TRANSLATE_2ND_ARCH),true) | |
22 | +include $$(CLEAR_VARS) | |
23 | +LOCAL_MODULE := $1.vndk-sp-gen | |
24 | +LOCAL_MODULE_CLASS := SHARED_LIBRARIES | |
25 | +LOCAL_PREBUILT_MODULE_FILE := $$(call intermediates-dir-for,SHARED_LIBRARIES,$1,,,$$(TARGET_2ND_ARCH_VAR_PREFIX),)/$1.so | |
26 | +LOCAL_STRIP_MODULE := false | |
27 | +LOCAL_MULTILIB := 32 | |
28 | +LOCAL_MODULE_TAGS := optional | |
29 | +LOCAL_INSTALLED_MODULE_STEM := $1.so | |
30 | +LOCAL_MODULE_SUFFIX := .so | |
31 | +LOCAL_MODULE_RELATIVE_PATH := vndk-sp | |
32 | +include $$(BUILD_PREBUILT) | |
33 | +endif # TARGET_TRANSLATE_2ND_ARCH is not true | |
34 | +endif # TARGET_2ND_ARCH is not empty | |
35 | +endef | |
36 | + | |
37 | +$(foreach lib,$(VNDK_SP_LIBRARIES),\ | |
38 | + $(eval $(call define-vndk-sp-lib,$(lib)))) | |
39 | + | |
40 | +include $(CLEAR_VARS) | |
41 | +LOCAL_MODULE := vndk-sp | |
42 | +LOCAL_MODULE_OWNER := google | |
43 | +LOCAL_MODULE_TAGS := optional | |
44 | +LOCAL_REQUIRED_MODULES := $(addsuffix .vndk-sp-gen,$(VNDK_SP_LIBRARIES)) | |
45 | +include $(BUILD_PHONY_PACKAGE) | |
46 | + | |
47 | +endif # TARGET_DEVICE is generic_* |
@@ -0,0 +1,25 @@ | ||
1 | +VNDK_SP_LIBRARIES := \ | |
2 | + android.hardware.graphics.allocator@2.0 \ | |
3 | + android.hardware.graphics.mapper@2.0 \ | |
4 | + android.hardware.graphics.common@1.0 \ | |
5 | + android.hardware.renderscript@1.0 \ | |
6 | + libRSCpuRef \ | |
7 | + libRSDriver \ | |
8 | + libRS_internal \ | |
9 | + libbacktrace \ | |
10 | + libbase \ | |
11 | + libbcinfo \ | |
12 | + libblas \ | |
13 | + libc++ \ | |
14 | + libcompiler_rt \ | |
15 | + libcutils \ | |
16 | + libft2 \ | |
17 | + libhardware \ | |
18 | + libhidlbase \ | |
19 | + libhidltransport \ | |
20 | + libhwbinder \ | |
21 | + libion \ | |
22 | + liblzma \ | |
23 | + libpng \ | |
24 | + libunwind \ | |
25 | + libutils \ |