forked from openkylin/platform_build
Revert "Revert "Extends VNDK support in Make by setting LOCAL_USE_VNDK for modules going into vendor partition, except when they already have LOCAL_SDK_VERSION set.""
This reverts commit 823172e209
.
Test: build.ninja for any target doesnt change, unless
BOARD_VNDK_VERSION is turned on in BoardConfig.mk
Change-Id: I4e1baaf5a2251de20f71a47096ce53e23d7e2d80
This commit is contained in:
parent
376c0146b3
commit
43a7f0c765
|
@ -1,3 +1,18 @@
|
|||
|
||||
#Set LOCAL_USE_VNDK for modules going into vendor partition, except for host modules
|
||||
#If LOCAL_SDK_VERSION is set, thats a more restrictive set, so they dont need LOCAL_USE_VNDK
|
||||
ifndef LOCAL_IS_HOST_MODULE
|
||||
ifndef LOCAL_SDK_VERSION
|
||||
ifneq (,$(filter true,$(LOCAL_PROPRIETARY_MODULE) $(LOCAL_ODM_MODULE) $(LOCAL_OEM_MODULE)))
|
||||
LOCAL_USE_VNDK:=true
|
||||
else
|
||||
ifneq (,$(filter $(TARGET_OUT_VENDOR)%,$(LOCAL_MODULE_PATH) $(LOCAL_MODULE_PATH_32) $(LOCAL_MODULE_PATH_64)))
|
||||
LOCAL_USE_VNDK:=true
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
# Verify LOCAL_USE_VNDK usage, and set LOCAL_SDK_VERSION if necessary
|
||||
|
||||
ifdef LOCAL_IS_HOST_MODULE
|
||||
|
|
Loading…
Reference in New Issue