2009-03-04 04:28:42 +01:00
|
|
|
# Variables we check:
|
|
|
|
# HOST_BUILD_TYPE = { release debug }
|
|
|
|
# TARGET_BUILD_TYPE = { release debug }
|
|
|
|
# and we output a bunch of variables, see the case statement at
|
|
|
|
# the bottom for the full list
|
|
|
|
# OUT_DIR is also set to "out" if it's not already set.
|
|
|
|
# this allows you to set it to somewhere else if you like
|
|
|
|
|
2009-05-13 06:45:23 +02:00
|
|
|
# Set up version information.
|
|
|
|
include $(BUILD_SYSTEM)/version_defaults.mk
|
|
|
|
|
2009-03-04 04:28:42 +01:00
|
|
|
# ---------------------------------------------------------------
|
|
|
|
# If you update the build system such that the environment setup
|
|
|
|
# or buildspec.mk need to be updated, increment this number, and
|
|
|
|
# people who haven't re-run those will have to do so before they
|
|
|
|
# can build. Make sure to also update the corresponding value in
|
|
|
|
# buildspec.mk.default and envsetup.sh.
|
2010-06-22 01:26:38 +02:00
|
|
|
CORRECT_BUILD_ENV_SEQUENCE_NUMBER := 10
|
2009-03-04 04:28:42 +01:00
|
|
|
|
|
|
|
# ---------------------------------------------------------------
|
2011-07-12 07:11:46 +02:00
|
|
|
# The product defaults to generic on hardware
|
2009-03-04 04:28:42 +01:00
|
|
|
# NOTE: This will be overridden in product_config.mk if make
|
|
|
|
# was invoked with a PRODUCT-xxx-yyy goal.
|
|
|
|
ifeq ($(TARGET_PRODUCT),)
|
2010-10-22 18:52:09 +02:00
|
|
|
TARGET_PRODUCT := full
|
2009-03-04 04:28:42 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
# the variant -- the set of files that are included for a build
|
|
|
|
ifeq ($(strip $(TARGET_BUILD_VARIANT)),)
|
|
|
|
TARGET_BUILD_VARIANT := eng
|
|
|
|
endif
|
|
|
|
|
|
|
|
# ---------------------------------------------------------------
|
|
|
|
# Set up configuration for host machine. We don't do cross-
|
2012-07-26 04:57:22 +02:00
|
|
|
# compiles except for arm/mips, so the HOST is whatever we are
|
2009-03-04 04:28:42 +01:00
|
|
|
# running on
|
|
|
|
|
|
|
|
UNAME := $(shell uname -sm)
|
|
|
|
|
|
|
|
# HOST_OS
|
|
|
|
ifneq (,$(findstring Linux,$(UNAME)))
|
2014-04-17 19:03:35 +02:00
|
|
|
HOST_OS := linux
|
2009-03-04 04:28:42 +01:00
|
|
|
endif
|
|
|
|
ifneq (,$(findstring Darwin,$(UNAME)))
|
2014-04-17 19:03:35 +02:00
|
|
|
HOST_OS := darwin
|
2009-03-04 04:28:42 +01:00
|
|
|
endif
|
|
|
|
ifneq (,$(findstring Macintosh,$(UNAME)))
|
2014-04-17 19:03:35 +02:00
|
|
|
HOST_OS := darwin
|
2009-03-04 04:28:42 +01:00
|
|
|
endif
|
|
|
|
ifneq (,$(findstring CYGWIN,$(UNAME)))
|
2014-04-17 19:03:35 +02:00
|
|
|
HOST_OS := windows
|
2009-03-04 04:28:42 +01:00
|
|
|
endif
|
2010-04-17 02:50:09 +02:00
|
|
|
|
|
|
|
# BUILD_OS is the real host doing the build.
|
|
|
|
BUILD_OS := $(HOST_OS)
|
|
|
|
|
|
|
|
# Under Linux, if USE_MINGW is set, we change HOST_OS to Windows to build the
|
|
|
|
# Windows SDK. Only a subset of tools and SDK will manage to build properly.
|
|
|
|
ifeq ($(HOST_OS),linux)
|
2009-03-04 04:28:42 +01:00
|
|
|
ifneq ($(USE_MINGW),)
|
2014-04-17 19:03:35 +02:00
|
|
|
HOST_OS := windows
|
2009-03-04 04:28:42 +01:00
|
|
|
endif
|
2010-04-17 02:50:09 +02:00
|
|
|
endif
|
2009-03-04 04:28:42 +01:00
|
|
|
|
|
|
|
ifeq ($(HOST_OS),)
|
|
|
|
$(error Unable to determine HOST_OS from uname -sm: $(UNAME)!)
|
|
|
|
endif
|
|
|
|
|
2014-05-20 23:43:51 +02:00
|
|
|
ifeq ($(HOST_PREFER_32_BIT),true)
|
|
|
|
# User asks for multilib build, but use 32-bit as preferred arch.
|
|
|
|
BUILD_HOST_64bit := true
|
|
|
|
endif
|
2009-03-04 04:28:42 +01:00
|
|
|
|
|
|
|
# HOST_ARCH
|
2014-04-17 19:03:35 +02:00
|
|
|
ifneq (,$(findstring x86_64,$(UNAME)))
|
|
|
|
# TODO: Replace BUILD_HOST_64bit with a flag that forces 32-bit build,
|
|
|
|
# after we default to 64-bit host build.
|
|
|
|
ifeq (,$(BUILD_HOST_64bit))
|
|
|
|
HOST_ARCH := x86
|
|
|
|
HOST_2ND_ARCH :=
|
|
|
|
else
|
|
|
|
HOST_ARCH := x86_64
|
|
|
|
HOST_2ND_ARCH := x86
|
|
|
|
endif
|
|
|
|
else ifneq (,$(findstring 86,$(UNAME)))
|
|
|
|
# It's not officially supported!
|
|
|
|
HOST_ARCH := x86
|
|
|
|
HOST_2ND_ARCH :=
|
2009-03-04 04:28:42 +01:00
|
|
|
endif
|
|
|
|
|
2010-04-17 02:50:09 +02:00
|
|
|
BUILD_ARCH := $(HOST_ARCH)
|
2014-04-17 19:03:35 +02:00
|
|
|
BUILD_2ND_ARCH := $(HOST_2ND_ARCH)
|
2010-04-17 02:50:09 +02:00
|
|
|
|
2009-03-04 04:28:42 +01:00
|
|
|
ifeq ($(HOST_ARCH),)
|
|
|
|
$(error Unable to determine HOST_ARCH from uname -sm: $(UNAME)!)
|
|
|
|
endif
|
|
|
|
|
|
|
|
# the host build defaults to release, and it must be release or debug
|
|
|
|
ifeq ($(HOST_BUILD_TYPE),)
|
|
|
|
HOST_BUILD_TYPE := release
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(HOST_BUILD_TYPE),release)
|
|
|
|
ifneq ($(HOST_BUILD_TYPE),debug)
|
|
|
|
$(error HOST_BUILD_TYPE must be either release or debug, not '$(HOST_BUILD_TYPE)')
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2014-04-17 19:03:35 +02:00
|
|
|
# We don't want to move all the prebuilt host tools to a $(HOST_OS)-x86_64 dir.
|
|
|
|
HOST_PREBUILT_ARCH := x86
|
2009-03-04 04:28:42 +01:00
|
|
|
# This is the standard way to name a directory containing prebuilt host
|
|
|
|
# objects. E.g., prebuilt/$(HOST_PREBUILT_TAG)/cc
|
|
|
|
ifeq ($(HOST_OS),windows)
|
|
|
|
HOST_PREBUILT_TAG := windows
|
|
|
|
else
|
2014-04-17 19:03:35 +02:00
|
|
|
HOST_PREBUILT_TAG := $(HOST_OS)-$(HOST_PREBUILT_ARCH)
|
2009-03-04 04:28:42 +01:00
|
|
|
endif
|
|
|
|
|
2011-10-28 00:18:39 +02:00
|
|
|
# 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
|
|
|
|
|
2011-06-17 01:58:11 +02:00
|
|
|
# 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
|
2010-09-22 19:59:10 +02:00
|
|
|
|
2011-11-17 23:51:12 +01:00
|
|
|
build_variant := $(filter-out eng user userdebug,$(TARGET_BUILD_VARIANT))
|
2011-06-17 01:58:11 +02:00
|
|
|
ifneq ($(build_variant)-$(words $(TARGET_BUILD_VARIANT)),-1)
|
|
|
|
$(warning bad TARGET_BUILD_VARIANT: $(TARGET_BUILD_VARIANT))
|
2011-11-17 23:51:12 +01:00
|
|
|
$(error must be empty or one of: eng user userdebug)
|
2011-06-17 01:58:11 +02:00
|
|
|
endif
|
2009-03-04 04:28:42 +01:00
|
|
|
|
2014-01-14 01:14:20 +01:00
|
|
|
# Boards may be defined under $(SRC_TARGET_DIR)/board/$(TARGET_DEVICE)
|
|
|
|
# or under vendor/*/$(TARGET_DEVICE). Search in both places, but
|
|
|
|
# make sure only one exists.
|
|
|
|
# Real boards should always be associated with an OEM vendor.
|
|
|
|
board_config_mk := \
|
|
|
|
$(strip $(wildcard \
|
|
|
|
$(SRC_TARGET_DIR)/board/$(TARGET_DEVICE)/BoardConfig.mk \
|
|
|
|
$(shell test -d device && find device -maxdepth 4 -path '*/$(TARGET_DEVICE)/BoardConfig.mk') \
|
|
|
|
$(shell test -d vendor && find vendor -maxdepth 4 -path '*/$(TARGET_DEVICE)/BoardConfig.mk') \
|
|
|
|
))
|
|
|
|
ifeq ($(board_config_mk),)
|
|
|
|
$(error No config file found for TARGET_DEVICE $(TARGET_DEVICE))
|
|
|
|
endif
|
|
|
|
ifneq ($(words $(board_config_mk)),1)
|
|
|
|
$(error Multiple board config files for TARGET_DEVICE $(TARGET_DEVICE): $(board_config_mk))
|
|
|
|
endif
|
|
|
|
include $(board_config_mk)
|
|
|
|
ifeq ($(TARGET_ARCH),)
|
|
|
|
$(error TARGET_ARCH not defined by board config: $(board_config_mk))
|
|
|
|
endif
|
|
|
|
TARGET_DEVICE_DIR := $(patsubst %/,%,$(dir $(board_config_mk)))
|
|
|
|
board_config_mk :=
|
|
|
|
|
2009-03-04 04:28:42 +01:00
|
|
|
# ---------------------------------------------------------------
|
|
|
|
# Set up configuration for target machine.
|
|
|
|
# The following must be set:
|
|
|
|
# TARGET_OS = { linux }
|
2012-07-26 04:57:22 +02:00
|
|
|
# TARGET_ARCH = { arm | x86 | mips }
|
2009-03-04 04:28:42 +01:00
|
|
|
|
|
|
|
TARGET_OS := linux
|
2012-07-26 04:57:22 +02:00
|
|
|
# TARGET_ARCH should be set by BoardConfig.mk and will be checked later
|
2009-03-04 04:28:42 +01:00
|
|
|
|
|
|
|
# the target build type defaults to release
|
|
|
|
ifneq ($(TARGET_BUILD_TYPE),debug)
|
|
|
|
TARGET_BUILD_TYPE := release
|
|
|
|
endif
|
|
|
|
|
|
|
|
# ---------------------------------------------------------------
|
|
|
|
# figure out the output directories
|
|
|
|
|
|
|
|
ifeq (,$(strip $(OUT_DIR)))
|
2011-12-06 19:29:46 +01:00
|
|
|
ifeq (,$(strip $(OUT_DIR_COMMON_BASE)))
|
2009-03-04 04:28:42 +01:00
|
|
|
OUT_DIR := $(TOPDIR)out
|
2011-12-06 19:29:46 +01:00
|
|
|
else
|
|
|
|
OUT_DIR := $(OUT_DIR_COMMON_BASE)/$(notdir $(PWD))
|
|
|
|
endif
|
2009-03-04 04:28:42 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
DEBUG_OUT_DIR := $(OUT_DIR)/debug
|
|
|
|
|
|
|
|
# Move the host or target under the debug/ directory
|
|
|
|
# if necessary.
|
|
|
|
TARGET_OUT_ROOT_release := $(OUT_DIR)/target
|
|
|
|
TARGET_OUT_ROOT_debug := $(DEBUG_OUT_DIR)/target
|
|
|
|
TARGET_OUT_ROOT := $(TARGET_OUT_ROOT_$(TARGET_BUILD_TYPE))
|
|
|
|
|
|
|
|
HOST_OUT_ROOT_release := $(OUT_DIR)/host
|
|
|
|
HOST_OUT_ROOT_debug := $(DEBUG_OUT_DIR)/host
|
|
|
|
HOST_OUT_ROOT := $(HOST_OUT_ROOT_$(HOST_BUILD_TYPE))
|
|
|
|
|
2014-04-17 19:03:35 +02:00
|
|
|
# We want to avoid two host bin directories in multilib build.
|
|
|
|
HOST_OUT_release := $(HOST_OUT_ROOT_release)/$(HOST_OS)-$(HOST_PREBUILT_ARCH)
|
|
|
|
HOST_OUT_debug := $(HOST_OUT_ROOT_debug)/$(HOST_OS)-$(HOST_PREBUILT_ARCH)
|
2009-03-04 04:28:42 +01:00
|
|
|
HOST_OUT := $(HOST_OUT_$(HOST_BUILD_TYPE))
|
|
|
|
|
2014-04-17 19:03:35 +02:00
|
|
|
BUILD_OUT := $(OUT_DIR)/host/$(BUILD_OS)-$(HOST_PREBUILT_ARCH)
|
2010-04-17 02:50:09 +02:00
|
|
|
|
2011-07-12 07:11:46 +02:00
|
|
|
TARGET_PRODUCT_OUT_ROOT := $(TARGET_OUT_ROOT)/product
|
2009-03-04 04:28:42 +01:00
|
|
|
|
|
|
|
TARGET_COMMON_OUT_ROOT := $(TARGET_OUT_ROOT)/common
|
|
|
|
HOST_COMMON_OUT_ROOT := $(HOST_OUT_ROOT)/common
|
|
|
|
|
|
|
|
PRODUCT_OUT := $(TARGET_PRODUCT_OUT_ROOT)/$(TARGET_DEVICE)
|
|
|
|
|
|
|
|
OUT_DOCS := $(TARGET_COMMON_OUT_ROOT)/docs
|
|
|
|
|
2014-01-14 01:14:20 +01:00
|
|
|
BUILD_OUT_EXECUTABLES := $(BUILD_OUT)/bin
|
2010-04-17 02:50:09 +02:00
|
|
|
|
2014-01-14 01:14:20 +01:00
|
|
|
HOST_OUT_EXECUTABLES := $(HOST_OUT)/bin
|
|
|
|
HOST_OUT_SHARED_LIBRARIES := $(HOST_OUT)/lib
|
|
|
|
HOST_OUT_JAVA_LIBRARIES := $(HOST_OUT)/framework
|
2009-04-10 04:31:12 +02:00
|
|
|
HOST_OUT_SDK_ADDON := $(HOST_OUT)/sdk_addon
|
2009-03-04 04:28:42 +01:00
|
|
|
|
|
|
|
HOST_OUT_INTERMEDIATES := $(HOST_OUT)/obj
|
2014-01-14 01:14:20 +01:00
|
|
|
HOST_OUT_HEADERS := $(HOST_OUT_INTERMEDIATES)/include
|
2009-03-04 04:28:42 +01:00
|
|
|
HOST_OUT_INTERMEDIATE_LIBRARIES := $(HOST_OUT_INTERMEDIATES)/lib
|
2014-01-14 01:14:20 +01:00
|
|
|
HOST_OUT_NOTICE_FILES := $(HOST_OUT_INTERMEDIATES)/NOTICE_FILES
|
2009-03-04 04:28:42 +01:00
|
|
|
HOST_OUT_COMMON_INTERMEDIATES := $(HOST_COMMON_OUT_ROOT)/obj
|
|
|
|
|
2014-01-25 08:17:21 +01:00
|
|
|
HOST_OUT_GEN := $(HOST_OUT)/gen
|
|
|
|
HOST_OUT_COMMON_GEN := $(HOST_COMMON_OUT_ROOT)/gen
|
|
|
|
|
2014-04-17 19:03:35 +02:00
|
|
|
# Out for HOST_2ND_ARCH
|
|
|
|
HOST_2ND_ARCH_VAR_PREFIX := 2ND_
|
|
|
|
HOST_2ND_ARCH_MODULE_SUFFIX := _32
|
|
|
|
$(HOST_2ND_ARCH_VAR_PREFIX)HOST_OUT_INTERMEDIATES := $(HOST_OUT)/obj32
|
|
|
|
$(HOST_2ND_ARCH_VAR_PREFIX)HOST_OUT_INTERMEDIATE_LIBRARIES := $($(HOST_2ND_ARCH_VAR_PREFIX)HOST_OUT_INTERMEDIATES)/lib
|
2014-05-20 23:43:51 +02:00
|
|
|
ifeq ($(HOST_PREFER_32_BIT),true)
|
|
|
|
# To keep path compatibility, put 32-bit libs in lib/ and 64-bit libs in lib64/.
|
|
|
|
HOST_OUT_SHARED_LIBRARIES := $(HOST_OUT)/lib64
|
|
|
|
$(HOST_2ND_ARCH_VAR_PREFIX)HOST_OUT_SHARED_LIBRARIES := $(HOST_OUT)/lib
|
|
|
|
else
|
2014-04-17 19:03:35 +02:00
|
|
|
$(HOST_2ND_ARCH_VAR_PREFIX)HOST_OUT_SHARED_LIBRARIES := $(HOST_OUT)/lib32
|
2014-05-20 23:43:51 +02:00
|
|
|
endif
|
2014-04-17 19:03:35 +02:00
|
|
|
$(HOST_2ND_ARCH_VAR_PREFIX)HOST_OUT_EXECUTABLES := $(HOST_OUT_EXECUTABLES)
|
|
|
|
|
|
|
|
|
2009-03-04 04:28:42 +01:00
|
|
|
TARGET_OUT_INTERMEDIATES := $(PRODUCT_OUT)/obj
|
2014-01-14 01:14:20 +01:00
|
|
|
TARGET_OUT_HEADERS := $(TARGET_OUT_INTERMEDIATES)/include
|
2009-03-04 04:28:42 +01:00
|
|
|
TARGET_OUT_INTERMEDIATE_LIBRARIES := $(TARGET_OUT_INTERMEDIATES)/lib
|
|
|
|
TARGET_OUT_COMMON_INTERMEDIATES := $(TARGET_COMMON_OUT_ROOT)/obj
|
|
|
|
|
2014-01-25 08:17:21 +01:00
|
|
|
TARGET_OUT_GEN := $(PRODUCT_OUT)/gen
|
|
|
|
TARGET_OUT_COMMON_GEN := $(TARGET_COMMON_OUT_ROOT)/gen
|
|
|
|
|
2011-10-28 00:18:39 +02:00
|
|
|
TARGET_OUT := $(PRODUCT_OUT)/$(TARGET_COPY_OUT_SYSTEM)
|
2014-01-14 01:14:20 +01:00
|
|
|
TARGET_OUT_EXECUTABLES := $(TARGET_OUT)/bin
|
|
|
|
TARGET_OUT_OPTIONAL_EXECUTABLES := $(TARGET_OUT)/xbin
|
|
|
|
ifneq ($(filter %64,$(TARGET_ARCH)),)
|
|
|
|
# /system/lib always contains 32-bit libraries,
|
|
|
|
# and /system/lib64 (if present) always contains 64-bit libraries.
|
|
|
|
TARGET_OUT_SHARED_LIBRARIES := $(TARGET_OUT)/lib64
|
|
|
|
else
|
|
|
|
TARGET_OUT_SHARED_LIBRARIES := $(TARGET_OUT)/lib
|
|
|
|
endif
|
|
|
|
TARGET_OUT_JAVA_LIBRARIES := $(TARGET_OUT)/framework
|
|
|
|
TARGET_OUT_APPS := $(TARGET_OUT)/app
|
2013-05-09 00:49:08 +02:00
|
|
|
TARGET_OUT_APPS_PRIVILEGED := $(TARGET_OUT)/priv-app
|
2009-03-04 04:28:42 +01:00
|
|
|
TARGET_OUT_KEYLAYOUT := $(TARGET_OUT)/usr/keylayout
|
|
|
|
TARGET_OUT_KEYCHARS := $(TARGET_OUT)/usr/keychars
|
|
|
|
TARGET_OUT_ETC := $(TARGET_OUT)/etc
|
2014-01-14 01:14:20 +01:00
|
|
|
TARGET_OUT_NOTICE_FILES := $(TARGET_OUT_INTERMEDIATES)/NOTICE_FILES
|
2010-09-28 02:37:17 +02:00
|
|
|
TARGET_OUT_FAKE := $(PRODUCT_OUT)/fake_packages
|
2009-03-04 04:28:42 +01:00
|
|
|
|
2013-12-27 20:09:36 +01:00
|
|
|
# Out for TARGET_2ND_ARCH
|
|
|
|
TARGET_2ND_ARCH_VAR_PREFIX := 2ND_
|
2014-01-16 01:02:16 +01:00
|
|
|
TARGET_2ND_ARCH_MODULE_SUFFIX := _32
|
2013-12-27 20:09:36 +01:00
|
|
|
$(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_INTERMEDIATES := $(PRODUCT_OUT)/obj_$(TARGET_2ND_ARCH)
|
|
|
|
$(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_INTERMEDIATE_LIBRARIES := $($(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_INTERMEDIATES)/lib
|
|
|
|
$(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_SHARED_LIBRARIES := $(TARGET_OUT)/lib
|
2014-01-18 01:17:28 +01:00
|
|
|
$(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_EXECUTABLES := $(TARGET_OUT_EXECUTABLES)
|
2014-01-24 22:37:07 +01:00
|
|
|
$(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_APPS := $(TARGET_OUT_APPS)
|
|
|
|
$(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_APPS_PRIVILEGED := $(TARGET_OUT_APPS_PRIVILEGED)
|
2013-12-27 20:09:36 +01:00
|
|
|
|
2011-10-28 00:18:39 +02:00
|
|
|
TARGET_OUT_DATA := $(PRODUCT_OUT)/$(TARGET_COPY_OUT_DATA)
|
2014-01-14 01:14:20 +01:00
|
|
|
TARGET_OUT_DATA_EXECUTABLES := $(TARGET_OUT_EXECUTABLES)
|
|
|
|
TARGET_OUT_DATA_SHARED_LIBRARIES := $(TARGET_OUT_SHARED_LIBRARIES)
|
|
|
|
TARGET_OUT_DATA_JAVA_LIBRARIES := $(TARGET_OUT_DATA)/framework
|
|
|
|
TARGET_OUT_DATA_APPS := $(TARGET_OUT_DATA)/app
|
2009-03-04 04:28:42 +01:00
|
|
|
TARGET_OUT_DATA_KEYLAYOUT := $(TARGET_OUT_KEYLAYOUT)
|
|
|
|
TARGET_OUT_DATA_KEYCHARS := $(TARGET_OUT_KEYCHARS)
|
|
|
|
TARGET_OUT_DATA_ETC := $(TARGET_OUT_ETC)
|
2010-07-20 20:08:47 +02:00
|
|
|
TARGET_OUT_DATA_NATIVE_TESTS := $(TARGET_OUT_DATA)/nativetest
|
2012-07-13 22:47:09 +02:00
|
|
|
TARGET_OUT_DATA_FAKE := $(TARGET_OUT_DATA)/fake_packages
|
2009-03-04 04:28:42 +01:00
|
|
|
|
2014-01-24 00:09:04 +01:00
|
|
|
$(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_DATA_EXECUTABLES := $(TARGET_OUT_DATA_EXECUTABLES)
|
|
|
|
$(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_DATA_SHARED_LIBRARIES := $($(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_SHARED_LIBRARIES)
|
2014-01-24 22:37:07 +01:00
|
|
|
$(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_DATA_APPS := $(TARGET_OUT_DATA_APPS)
|
2014-01-24 00:09:04 +01:00
|
|
|
|
2011-11-04 19:37:01 +01:00
|
|
|
TARGET_OUT_CACHE := $(PRODUCT_OUT)/cache
|
|
|
|
|
2011-10-28 00:18:39 +02:00
|
|
|
TARGET_OUT_VENDOR := $(PRODUCT_OUT)/$(TARGET_COPY_OUT_VENDOR)
|
2014-01-14 01:14:20 +01:00
|
|
|
TARGET_OUT_VENDOR_EXECUTABLES := $(TARGET_OUT_VENDOR)/bin
|
|
|
|
TARGET_OUT_VENDOR_OPTIONAL_EXECUTABLES := $(TARGET_OUT_VENDOR)/xbin
|
|
|
|
ifneq ($(filter %64,$(TARGET_ARCH)),)
|
|
|
|
TARGET_OUT_VENDOR_SHARED_LIBRARIES := $(TARGET_OUT_VENDOR)/lib64
|
|
|
|
else
|
|
|
|
TARGET_OUT_VENDOR_SHARED_LIBRARIES := $(TARGET_OUT_VENDOR)/lib
|
|
|
|
endif
|
|
|
|
TARGET_OUT_VENDOR_JAVA_LIBRARIES := $(TARGET_OUT_VENDOR)/framework
|
|
|
|
TARGET_OUT_VENDOR_APPS := $(TARGET_OUT_VENDOR)/app
|
2011-09-13 22:57:26 +02:00
|
|
|
TARGET_OUT_VENDOR_ETC := $(TARGET_OUT_VENDOR)/etc
|
|
|
|
|
2014-01-24 00:09:04 +01:00
|
|
|
$(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_VENDOR_EXECUTABLES := $(TARGET_OUT_VENDOR_EXECUTABLES)
|
2014-01-16 01:02:16 +01:00
|
|
|
$(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_VENDOR_SHARED_LIBRARIES := $(TARGET_OUT_VENDOR)/lib
|
2014-01-24 22:37:07 +01:00
|
|
|
$(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_VENDOR_APPS := $(TARGET_OUT_VENDOR_APPS)
|
2014-01-16 01:02:16 +01:00
|
|
|
|
2009-03-04 04:28:42 +01:00
|
|
|
TARGET_OUT_UNSTRIPPED := $(PRODUCT_OUT)/symbols
|
|
|
|
TARGET_OUT_EXECUTABLES_UNSTRIPPED := $(TARGET_OUT_UNSTRIPPED)/system/bin
|
|
|
|
TARGET_OUT_SHARED_LIBRARIES_UNSTRIPPED := $(TARGET_OUT_UNSTRIPPED)/system/lib
|
|
|
|
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
|
|
|
|
|
2011-10-28 00:18:39 +02:00
|
|
|
TARGET_ROOT_OUT := $(PRODUCT_OUT)/$(TARGET_COPY_OUT_ROOT)
|
2009-03-04 04:28:42 +01:00
|
|
|
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
|
|
|
|
|
2011-10-28 00:18:39 +02:00
|
|
|
TARGET_RECOVERY_OUT := $(PRODUCT_OUT)/$(TARGET_COPY_OUT_RECOVERY)
|
2009-03-04 04:28:42 +01:00
|
|
|
TARGET_RECOVERY_ROOT_OUT := $(TARGET_RECOVERY_OUT)/root
|
|
|
|
|
|
|
|
TARGET_SYSLOADER_OUT := $(PRODUCT_OUT)/sysloader
|
|
|
|
TARGET_SYSLOADER_ROOT_OUT := $(TARGET_SYSLOADER_OUT)/root
|
|
|
|
TARGET_SYSLOADER_SYSTEM_OUT := $(TARGET_SYSLOADER_OUT)/root/system
|
|
|
|
|
|
|
|
TARGET_INSTALLER_OUT := $(PRODUCT_OUT)/installer
|
|
|
|
TARGET_INSTALLER_DATA_OUT := $(TARGET_INSTALLER_OUT)/data
|
|
|
|
TARGET_INSTALLER_ROOT_OUT := $(TARGET_INSTALLER_OUT)/root
|
|
|
|
TARGET_INSTALLER_SYSTEM_OUT := $(TARGET_INSTALLER_OUT)/root/system
|
|
|
|
|
2011-12-16 20:27:52 +01:00
|
|
|
TARGET_FACTORY_RAMDISK_OUT := $(PRODUCT_OUT)/factory_ramdisk
|
|
|
|
|
2010-09-25 03:09:04 +02:00
|
|
|
COMMON_MODULE_CLASSES := TARGET-NOTICE_FILES HOST-NOTICE_FILES HOST-JAVA_LIBRARIES
|
2009-03-04 04:28:42 +01:00
|
|
|
|
|
|
|
ifeq (,$(strip $(DIST_DIR)))
|
|
|
|
DIST_DIR := $(OUT_DIR)/dist
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(PRINT_BUILD_CONFIG),)
|
|
|
|
PRINT_BUILD_CONFIG := true
|
|
|
|
endif
|