Merge "Ensure partition_tag is always set correctly"
This commit is contained in:
commit
dcbc2e9a26
2 changed files with 12 additions and 4 deletions
|
@ -65,6 +65,16 @@ else
|
|||
my_host_cross :=
|
||||
endif
|
||||
|
||||
_path := $(LOCAL_MODULE_PATH) $(LOCAL_MODULE_PATH_32) $(LOCAL_MODULE_PATH_64)
|
||||
ifneq ($(filter $(TARGET_OUT_VENDOR)%,$(_path)),)
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
else ifneq ($(filter $(TARGET_OUT_OEM)/%,$(_path)),)
|
||||
LOCAL_OEM_MODULE := true
|
||||
else ifneq ($(filter $(TARGET_OUT_ODM)/%,$(_path)),)
|
||||
LOCAL_ODM_MODULE := true
|
||||
endif
|
||||
_path :=
|
||||
|
||||
ifndef LOCAL_PROPRIETARY_MODULE
|
||||
LOCAL_PROPRIETARY_MODULE := $(LOCAL_VENDOR_MODULE)
|
||||
endif
|
||||
|
|
|
@ -5,10 +5,8 @@ ifndef LOCAL_IS_HOST_MODULE
|
|||
ifndef LOCAL_SDK_VERSION
|
||||
ifneq (,$(filter true,$(LOCAL_VENDOR_MODULE) $(LOCAL_ODM_MODULE) $(LOCAL_OEM_MODULE) $(LOCAL_PROPRIETARY_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
|
||||
# Note: no need to check LOCAL_MODULE_PATH* since LOCAL_[VENDOR|ODM|OEM]_MODULE is already
|
||||
# set correctly before this is included.
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
|
Loading…
Reference in a new issue