Add TARGET_COPY_OUT_* variables.
They are relative to PRODUCT_OUT so can be used in PRODUCT_COPY_FILES. If TARGET_COPY_OUT_VENDOR instead of hardcoded system/vendor is used, we will be able to transition smoothly to a separate vendor staging directory. Change-Id: Ia9fdb208768cf4699180306280b4c02421b2ea9c
This commit is contained in:
parent
d9ed9eba1b
commit
2b6aaa367a
|
@ -102,6 +102,14 @@ else
|
|||
HOST_PREBUILT_TAG := $(HOST_OS)-$(HOST_ARCH)
|
||||
endif
|
||||
|
||||
# TARGET_COPY_OUT_* are all relative to the staging directory, ie PRODUCT_OUT.
|
||||
# Define them here so they can be used in product config files.
|
||||
TARGET_COPY_OUT_SYSTEM := system
|
||||
TARGET_COPY_OUT_DATA := data
|
||||
TARGET_COPY_OUT_VENDOR := system/vendor
|
||||
TARGET_COPY_OUT_ROOT := root
|
||||
TARGET_COPY_OUT_RECOVERY := recovery
|
||||
|
||||
# Read the product specs so we an get TARGET_DEVICE and other
|
||||
# variables that we need in order to locate the output files.
|
||||
include $(BUILD_SYSTEM)/product_config.mk
|
||||
|
@ -182,7 +190,7 @@ TARGET_OUT_HEADERS:= $(TARGET_OUT_INTERMEDIATES)/include
|
|||
TARGET_OUT_INTERMEDIATE_LIBRARIES := $(TARGET_OUT_INTERMEDIATES)/lib
|
||||
TARGET_OUT_COMMON_INTERMEDIATES := $(TARGET_COMMON_OUT_ROOT)/obj
|
||||
|
||||
TARGET_OUT := $(PRODUCT_OUT)/system
|
||||
TARGET_OUT := $(PRODUCT_OUT)/$(TARGET_COPY_OUT_SYSTEM)
|
||||
TARGET_OUT_EXECUTABLES:= $(TARGET_OUT)/bin
|
||||
TARGET_OUT_OPTIONAL_EXECUTABLES:= $(TARGET_OUT)/xbin
|
||||
TARGET_OUT_SHARED_LIBRARIES:= $(TARGET_OUT)/lib
|
||||
|
@ -195,7 +203,7 @@ TARGET_OUT_STATIC_LIBRARIES:= $(TARGET_OUT_INTERMEDIATES)/lib
|
|||
TARGET_OUT_NOTICE_FILES:=$(TARGET_OUT_INTERMEDIATES)/NOTICE_FILES
|
||||
TARGET_OUT_FAKE := $(PRODUCT_OUT)/fake_packages
|
||||
|
||||
TARGET_OUT_DATA := $(PRODUCT_OUT)/data
|
||||
TARGET_OUT_DATA := $(PRODUCT_OUT)/$(TARGET_COPY_OUT_DATA)
|
||||
TARGET_OUT_DATA_EXECUTABLES:= $(TARGET_OUT_EXECUTABLES)
|
||||
TARGET_OUT_DATA_SHARED_LIBRARIES:= $(TARGET_OUT_SHARED_LIBRARIES)
|
||||
TARGET_OUT_DATA_JAVA_LIBRARIES:= $(TARGET_OUT_JAVA_LIBRARIES)
|
||||
|
@ -206,7 +214,7 @@ TARGET_OUT_DATA_ETC := $(TARGET_OUT_ETC)
|
|||
TARGET_OUT_DATA_STATIC_LIBRARIES:= $(TARGET_OUT_STATIC_LIBRARIES)
|
||||
TARGET_OUT_DATA_NATIVE_TESTS := $(TARGET_OUT_DATA)/nativetest
|
||||
|
||||
TARGET_OUT_VENDOR := $(PRODUCT_OUT)/system/vendor
|
||||
TARGET_OUT_VENDOR := $(PRODUCT_OUT)/$(TARGET_COPY_OUT_VENDOR)
|
||||
TARGET_OUT_VENDOR_EXECUTABLES:= $(TARGET_OUT_VENDOR)/bin
|
||||
TARGET_OUT_VENDOR_OPTIONAL_EXECUTABLES:= $(TARGET_OUT_VENDOR)/xbin
|
||||
TARGET_OUT_VENDOR_SHARED_LIBRARIES:= $(TARGET_OUT_VENDOR)/lib
|
||||
|
@ -221,13 +229,13 @@ TARGET_ROOT_OUT_UNSTRIPPED := $(TARGET_OUT_UNSTRIPPED)
|
|||
TARGET_ROOT_OUT_SBIN_UNSTRIPPED := $(TARGET_OUT_UNSTRIPPED)/sbin
|
||||
TARGET_ROOT_OUT_BIN_UNSTRIPPED := $(TARGET_OUT_UNSTRIPPED)/bin
|
||||
|
||||
TARGET_ROOT_OUT := $(PRODUCT_OUT)/root
|
||||
TARGET_ROOT_OUT := $(PRODUCT_OUT)/$(TARGET_COPY_OUT_ROOT)
|
||||
TARGET_ROOT_OUT_BIN := $(TARGET_ROOT_OUT)/bin
|
||||
TARGET_ROOT_OUT_SBIN := $(TARGET_ROOT_OUT)/sbin
|
||||
TARGET_ROOT_OUT_ETC := $(TARGET_ROOT_OUT)/etc
|
||||
TARGET_ROOT_OUT_USR := $(TARGET_ROOT_OUT)/usr
|
||||
|
||||
TARGET_RECOVERY_OUT := $(PRODUCT_OUT)/recovery
|
||||
TARGET_RECOVERY_OUT := $(PRODUCT_OUT)/$(TARGET_COPY_OUT_RECOVERY)
|
||||
TARGET_RECOVERY_ROOT_OUT := $(TARGET_RECOVERY_OUT)/root
|
||||
|
||||
TARGET_SYSLOADER_OUT := $(PRODUCT_OUT)/sysloader
|
||||
|
|
Loading…
Reference in New Issue