2009-03-04 03:28:42 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2008 The Android Open Source Project
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
#
|
|
|
|
|
|
|
|
# ---------------------------------------------------------------
|
|
|
|
# Generic functions
|
|
|
|
# TODO: Move these to definitions.make once we're able to include
|
|
|
|
# definitions.make before config.make.
|
|
|
|
|
|
|
|
###########################################################
|
|
|
|
## Return non-empty if $(1) is a C identifier; i.e., if it
|
|
|
|
## matches /^[a-zA-Z_][a-zA-Z0-9_]*$/. We do this by first
|
|
|
|
## making sure that it isn't empty and doesn't start with
|
|
|
|
## a digit, then by removing each valid character. If the
|
|
|
|
## final result is empty, then it was a valid C identifier.
|
|
|
|
##
|
|
|
|
## $(1): word to check
|
|
|
|
###########################################################
|
|
|
|
|
|
|
|
_ici_digits := 0 1 2 3 4 5 6 7 8 9
|
|
|
|
_ici_alphaunderscore := \
|
|
|
|
a b c d e f g h i j k l m n o p q r s t u v w x y z \
|
|
|
|
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z _
|
|
|
|
define is-c-identifier
|
|
|
|
$(strip \
|
|
|
|
$(if $(1), \
|
|
|
|
$(if $(filter $(addsuffix %,$(_ici_digits)),$(1)), \
|
|
|
|
, \
|
|
|
|
$(eval w := $(1)) \
|
|
|
|
$(foreach c,$(_ici_digits) $(_ici_alphaunderscore), \
|
|
|
|
$(eval w := $(subst $(c),,$(w))) \
|
|
|
|
) \
|
|
|
|
$(if $(w),,TRUE) \
|
|
|
|
$(eval w :=) \
|
|
|
|
) \
|
|
|
|
) \
|
|
|
|
)
|
|
|
|
endef
|
|
|
|
|
2009-04-10 13:34:59 +00:00
|
|
|
# TODO: push this into the combo files; unfortunately, we don't even
|
|
|
|
# know HOST_OS at this point.
|
|
|
|
trysed := $(shell echo a | sed -E -e 's/a/b/' 2>/dev/null)
|
|
|
|
ifeq ($(trysed),b)
|
|
|
|
SED_EXTENDED := sed -E
|
|
|
|
else
|
|
|
|
trysed := $(shell echo c | sed -r -e 's/c/d/' 2>/dev/null)
|
|
|
|
ifeq ($(trysed),d)
|
|
|
|
SED_EXTENDED := sed -r
|
|
|
|
else
|
|
|
|
$(error Unknown sed version)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2009-04-10 02:31:12 +00:00
|
|
|
###########################################################
|
|
|
|
## List all of the files in a subdirectory in a format
|
|
|
|
## suitable for PRODUCT_COPY_FILES and
|
|
|
|
## PRODUCT_SDK_ADDON_COPY_FILES
|
|
|
|
##
|
|
|
|
## $(1): Glob to match file name
|
|
|
|
## $(2): Source directory
|
|
|
|
## $(3): Target base directory
|
|
|
|
###########################################################
|
|
|
|
|
|
|
|
define find-copy-subdir-files
|
2009-04-10 13:34:59 +00:00
|
|
|
$(shell find $(2) -name "$(1)" | $(SED_EXTENDED) "s:($(2)/?(.*)):\\1\\:$(3)/\\2:" | sed "s://:/:g")
|
2009-04-10 02:31:12 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
# ---------------------------------------------------------------
|
2009-03-04 03:28:42 +00:00
|
|
|
|
2009-03-09 18:52:11 +00:00
|
|
|
# These are the valid values of TARGET_BUILD_VARIANT. Also, if anything else is passed
|
|
|
|
# as the variant in the PRODUCT-$TARGET_BUILD_PRODUCT-$TARGET_BUILD_VARIANT form,
|
|
|
|
# it will be treated as a goal, and the eng variant will be used.
|
2011-11-17 22:51:12 +00:00
|
|
|
INTERNAL_VALID_VARIANTS := user userdebug eng
|
2009-03-09 18:52:11 +00:00
|
|
|
|
2009-03-04 03:28:42 +00:00
|
|
|
# ---------------------------------------------------------------
|
|
|
|
# Provide "PRODUCT-<prodname>-<goal>" targets, which lets you build
|
|
|
|
# a particular configuration without needing to set up the environment.
|
|
|
|
#
|
|
|
|
product_goals := $(strip $(filter PRODUCT-%,$(MAKECMDGOALS)))
|
|
|
|
ifdef product_goals
|
|
|
|
# Scrape the product and build names out of the goal,
|
|
|
|
# which should be of the form PRODUCT-<productname>-<buildname>.
|
|
|
|
#
|
|
|
|
ifneq ($(words $(product_goals)),1)
|
|
|
|
$(error Only one PRODUCT-* goal may be specified; saw "$(product_goals)")
|
|
|
|
endif
|
|
|
|
goal_name := $(product_goals)
|
|
|
|
product_goals := $(patsubst PRODUCT-%,%,$(product_goals))
|
|
|
|
product_goals := $(subst -, ,$(product_goals))
|
|
|
|
ifneq ($(words $(product_goals)),2)
|
|
|
|
$(error Bad PRODUCT-* goal "$(goal_name)")
|
|
|
|
endif
|
|
|
|
|
|
|
|
# The product they want
|
|
|
|
TARGET_PRODUCT := $(word 1,$(product_goals))
|
|
|
|
|
|
|
|
# The variant they want
|
|
|
|
TARGET_BUILD_VARIANT := $(word 2,$(product_goals))
|
|
|
|
|
2011-11-17 22:51:12 +00:00
|
|
|
ifeq ($(TARGET_BUILD_VARIANT),tests)
|
|
|
|
$(error "tests" has been deprecated as a build variant. Use it as a build goal instead.)
|
|
|
|
endif
|
|
|
|
|
2009-03-04 03:28:42 +00:00
|
|
|
# The build server wants to do make PRODUCT-dream-installclean
|
2009-04-01 22:48:46 +00:00
|
|
|
# which really means TARGET_PRODUCT=dream make installclean.
|
2009-03-09 18:52:11 +00:00
|
|
|
ifneq ($(filter-out $(INTERNAL_VALID_VARIANTS),$(TARGET_BUILD_VARIANT)),)
|
2011-10-04 17:50:08 +00:00
|
|
|
MAKECMDGOALS := $(MAKECMDGOALS) $(TARGET_BUILD_VARIANT)
|
|
|
|
TARGET_BUILD_VARIANT := eng
|
2009-04-01 22:48:46 +00:00
|
|
|
default_goal_substitution :=
|
2009-03-04 03:28:42 +00:00
|
|
|
else
|
|
|
|
default_goal_substitution := $(DEFAULT_GOAL)
|
|
|
|
endif
|
|
|
|
|
|
|
|
# Replace the PRODUCT-* goal with the build goal that it refers to.
|
|
|
|
# Note that this will ensure that it appears in the same relative
|
|
|
|
# position, in case it matters.
|
|
|
|
#
|
|
|
|
# Note that modifying this will not affect the goals that make will
|
|
|
|
# attempt to build, but it's important because we inspect this value
|
2009-04-01 22:48:46 +00:00
|
|
|
# in certain situations (like for "make sdk").
|
2009-03-04 03:28:42 +00:00
|
|
|
#
|
|
|
|
MAKECMDGOALS := $(patsubst $(goal_name),$(default_goal_substitution),$(MAKECMDGOALS))
|
|
|
|
|
|
|
|
# Define a rule for the PRODUCT-* goal, and make it depend on the
|
|
|
|
# patched-up command-line goals as well as any other goals that we
|
|
|
|
# want to force.
|
|
|
|
#
|
|
|
|
.PHONY: $(goal_name)
|
|
|
|
$(goal_name): $(MAKECMDGOALS)
|
|
|
|
endif
|
|
|
|
# else: Use the value set in the environment or buildspec.mk.
|
|
|
|
|
2010-05-26 20:13:56 +00:00
|
|
|
# ---------------------------------------------------------------
|
|
|
|
# Provide "APP-<appname>" targets, which lets you build
|
|
|
|
# an unbundled app.
|
|
|
|
#
|
|
|
|
unbundled_goals := $(strip $(filter APP-%,$(MAKECMDGOALS)))
|
|
|
|
ifdef unbundled_goals
|
|
|
|
ifneq ($(words $(unbundled_goals)),1)
|
|
|
|
$(error Only one APP-* goal may be specified; saw "$(unbundled_goals)"))
|
|
|
|
endif
|
2010-06-09 23:35:58 +00:00
|
|
|
TARGET_BUILD_APPS := $(strip $(subst -, ,$(patsubst APP-%,%,$(unbundled_goals))))
|
2010-05-26 20:13:56 +00:00
|
|
|
ifneq ($(filter $(DEFAULT_GOAL),$(MAKECMDGOALS)),)
|
|
|
|
MAKECMDGOALS := $(patsubst $(unbundled_goals),,$(MAKECMDGOALS))
|
|
|
|
else
|
|
|
|
MAKECMDGOALS := $(patsubst $(unbundled_goals),$(DEFAULT_GOAL),$(MAKECMDGOALS))
|
|
|
|
endif
|
|
|
|
|
|
|
|
.PHONY: $(unbundled_goals)
|
|
|
|
$(unbundled_goals): $(MAKECMDGOALS)
|
|
|
|
endif # unbundled_goals
|
|
|
|
|
2011-06-16 23:58:11 +00:00
|
|
|
# Default to building dalvikvm on hosts that support it...
|
|
|
|
ifeq ($(HOST_OS),linux)
|
|
|
|
# ... or if the if the option is already set
|
|
|
|
ifeq ($(WITH_HOST_DALVIK),)
|
2011-06-18 00:44:08 +00:00
|
|
|
WITH_HOST_DALVIK := true
|
2011-06-16 23:58:11 +00:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2009-03-04 03:28:42 +00:00
|
|
|
# ---------------------------------------------------------------
|
|
|
|
# Include the product definitions.
|
|
|
|
# We need to do this to translate TARGET_PRODUCT into its
|
|
|
|
# underlying TARGET_DEVICE before we start defining any rules.
|
|
|
|
#
|
|
|
|
include $(BUILD_SYSTEM)/node_fns.mk
|
|
|
|
include $(BUILD_SYSTEM)/product.mk
|
|
|
|
include $(BUILD_SYSTEM)/device.mk
|
|
|
|
|
2010-06-09 23:35:58 +00:00
|
|
|
ifneq ($(strip $(TARGET_BUILD_APPS)),)
|
2012-09-27 20:26:25 +00:00
|
|
|
# An unbundled app build needs only the core product makefiles.
|
|
|
|
all_product_configs := $(call get-product-makefiles,\
|
|
|
|
$(SRC_TARGET_DIR)/product/AndroidProducts.mk)
|
2010-05-26 20:13:56 +00:00
|
|
|
else
|
2012-09-27 20:26:25 +00:00
|
|
|
# Read in all of the product definitions specified by the AndroidProducts.mk
|
|
|
|
# files in the tree.
|
|
|
|
all_product_configs := $(get-all-product-makefiles)
|
|
|
|
endif
|
|
|
|
|
|
|
|
# Find the product config makefile for the current product.
|
|
|
|
# all_product_configs consists items like:
|
|
|
|
# <product_name>:<path_to_the_product_makefile>
|
|
|
|
# or just <path_to_the_product_makefile> in case the product name is the
|
|
|
|
# same as the base filename of the product config makefile.
|
|
|
|
current_product_makefile :=
|
|
|
|
all_product_makefiles :=
|
|
|
|
$(foreach f, $(all_product_configs),\
|
|
|
|
$(eval _cpm_words := $(subst :,$(space),$(f)))\
|
|
|
|
$(eval _cpm_word1 := $(word 1,$(_cpm_words)))\
|
|
|
|
$(eval _cpm_word2 := $(word 2,$(_cpm_words)))\
|
|
|
|
$(if $(_cpm_word2),\
|
|
|
|
$(eval all_product_makefiles += $(_cpm_word2))\
|
|
|
|
$(if $(filter $(TARGET_PRODUCT),$(_cpm_word1)),\
|
|
|
|
$(eval current_product_makefile += $(_cpm_word2)),),\
|
|
|
|
$(eval all_product_makefiles += $(f))\
|
|
|
|
$(if $(filter $(TARGET_PRODUCT),$(basename $(notdir $(f)))),\
|
|
|
|
$(eval current_product_makefile += $(f)),)))
|
|
|
|
_cpm_words :=
|
|
|
|
_cpm_word1 :=
|
|
|
|
_cpm_word2 :=
|
|
|
|
current_product_makefile := $(strip $(current_product_makefile))
|
|
|
|
all_product_makefiles := $(strip $(all_product_makefiles))
|
|
|
|
|
|
|
|
ifneq (,$(filter product-graph dump-products, $(MAKECMDGOALS)))
|
|
|
|
# Import all product makefiles.
|
|
|
|
$(call import-products, $(all_product_makefiles))
|
|
|
|
else
|
|
|
|
# Import just the current product.
|
|
|
|
ifndef current_product_makefile
|
2012-09-27 20:26:25 +00:00
|
|
|
$(error Can not locate config makefile for product "$(TARGET_PRODUCT)")
|
2012-09-27 20:26:25 +00:00
|
|
|
endif
|
|
|
|
ifneq (1,$(words $(current_product_makefile)))
|
|
|
|
$(error Product "$(TARGET_PRODUCT)" ambiguous: matches $(current_product_makefile))
|
|
|
|
endif
|
|
|
|
$(call import-products, $(current_product_makefile))
|
|
|
|
endif # Import all or just the current product makefile
|
|
|
|
|
|
|
|
# Sanity check
|
2009-03-04 03:28:42 +00:00
|
|
|
$(check-all-products)
|
2010-11-03 06:04:24 +00:00
|
|
|
|
|
|
|
ifneq ($(filter dump-products, $(MAKECMDGOALS)),)
|
|
|
|
$(dump-products)
|
|
|
|
$(error done)
|
|
|
|
endif
|
2009-03-04 03:28:42 +00:00
|
|
|
|
|
|
|
# Convert a short name like "sooner" into the path to the product
|
|
|
|
# file defining that product.
|
|
|
|
#
|
|
|
|
INTERNAL_PRODUCT := $(call resolve-short-product-name, $(TARGET_PRODUCT))
|
2012-09-27 20:26:25 +00:00
|
|
|
ifneq ($(current_product_makefile),$(INTERNAL_PRODUCT))
|
|
|
|
$(error PRODUCT_NAME inconsistent in $(current_product_makefile) and $(INTERNAL_PRODUCT))
|
|
|
|
endif
|
|
|
|
current_product_makefile :=
|
|
|
|
all_product_makefiles :=
|
|
|
|
all_product_configs :=
|
2009-03-04 03:28:42 +00:00
|
|
|
|
2013-07-11 01:12:33 +00:00
|
|
|
|
|
|
|
#############################################################################
|
|
|
|
|
2013-07-24 00:57:38 +00:00
|
|
|
# A list of module names of BOOTCLASSPATH (jar files)
|
2014-01-07 22:31:49 +00:00
|
|
|
PRODUCT_BOOT_JARS := $(strip $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_BOOT_JARS))
|
2014-08-05 13:51:08 +00:00
|
|
|
PRODUCT_SYSTEM_SERVER_JARS := $(strip $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_SYSTEM_SERVER_JARS))
|
2013-07-24 00:57:38 +00:00
|
|
|
|
2009-03-04 03:28:42 +00:00
|
|
|
# Find the device that this product maps to.
|
|
|
|
TARGET_DEVICE := $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_DEVICE)
|
|
|
|
|
|
|
|
# Figure out which resoure configuration options to use for this
|
|
|
|
# product.
|
|
|
|
PRODUCT_LOCALES := $(strip $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_LOCALES))
|
|
|
|
# TODO: also keep track of things like "port", "land" in product files.
|
|
|
|
|
|
|
|
# If CUSTOM_LOCALES contains any locales not already included
|
|
|
|
# in PRODUCT_LOCALES, add them to PRODUCT_LOCALES.
|
|
|
|
extra_locales := $(filter-out $(PRODUCT_LOCALES),$(CUSTOM_LOCALES))
|
|
|
|
ifneq (,$(extra_locales))
|
2009-03-25 03:50:42 +00:00
|
|
|
ifneq ($(CALLED_FROM_SETUP),true)
|
|
|
|
# Don't spam stdout, because envsetup.sh may be scraping values from it.
|
|
|
|
$(info Adding CUSTOM_LOCALES [$(extra_locales)] to PRODUCT_LOCALES [$(PRODUCT_LOCALES)])
|
|
|
|
endif
|
2009-03-04 03:28:42 +00:00
|
|
|
PRODUCT_LOCALES += $(extra_locales)
|
|
|
|
extra_locales :=
|
|
|
|
endif
|
|
|
|
|
2011-03-15 20:19:30 +00:00
|
|
|
# Add PRODUCT_LOCALES to PRODUCT_AAPT_CONFIG
|
|
|
|
PRODUCT_AAPT_CONFIG := $(strip $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_AAPT_CONFIG))
|
|
|
|
PRODUCT_AAPT_CONFIG := $(PRODUCT_LOCALES) $(PRODUCT_AAPT_CONFIG)
|
2011-10-15 02:37:57 +00:00
|
|
|
PRODUCT_AAPT_PREF_CONFIG := $(strip $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_AAPT_PREF_CONFIG))
|
2011-03-15 20:19:30 +00:00
|
|
|
|
2009-08-28 14:00:12 +00:00
|
|
|
# Default to medium-density assets.
|
2011-03-15 20:19:30 +00:00
|
|
|
# (Can be overridden in the device config, e.g.: PRODUCT_AAPT_CONFIG += hdpi)
|
|
|
|
PRODUCT_AAPT_CONFIG := $(strip \
|
2011-10-04 17:50:08 +00:00
|
|
|
$(PRODUCT_AAPT_CONFIG) \
|
|
|
|
$(if $(filter %dpi,$(PRODUCT_AAPT_CONFIG)),,mdpi))
|
2011-10-15 02:37:57 +00:00
|
|
|
PRODUCT_AAPT_PREF_CONFIG := $(strip $(PRODUCT_AAPT_PREF_CONFIG))
|
2009-08-28 14:00:12 +00:00
|
|
|
|
2014-08-26 22:29:33 +00:00
|
|
|
# Everyone gets nodpi and anydpi assets which are density-independent.
|
|
|
|
PRODUCT_AAPT_CONFIG += nodpi anydpi
|
2009-03-04 03:28:42 +00:00
|
|
|
|
2013-11-22 18:07:51 +00:00
|
|
|
# Keep a copy of the space-separated config
|
|
|
|
PRODUCT_AAPT_CONFIG_SP := $(PRODUCT_AAPT_CONFIG)
|
|
|
|
|
2009-03-04 03:28:42 +00:00
|
|
|
# Convert spaces to commas.
|
|
|
|
PRODUCT_AAPT_CONFIG := \
|
2011-10-04 17:50:08 +00:00
|
|
|
$(subst $(space),$(comma),$(strip $(PRODUCT_AAPT_CONFIG)))
|
2011-10-15 02:37:57 +00:00
|
|
|
PRODUCT_AAPT_PREF_CONFIG := \
|
|
|
|
$(subst $(space),$(comma),$(strip $(PRODUCT_AAPT_PREF_CONFIG)))
|
2009-03-04 03:28:42 +00:00
|
|
|
|
2014-06-26 21:56:21 +00:00
|
|
|
# product-scoped aapt flags
|
|
|
|
PRODUCT_AAPT_FLAGS :=
|
|
|
|
ifneq ($(filter en_XA ar_XB,$(PRODUCT_LOCALES)),)
|
|
|
|
# Force generating resources for pseudo-locales.
|
|
|
|
PRODUCT_AAPT_FLAGS += --pseudo-localize
|
|
|
|
endif
|
|
|
|
|
2009-03-04 03:28:42 +00:00
|
|
|
PRODUCT_BRAND := $(strip $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_BRAND))
|
|
|
|
|
|
|
|
PRODUCT_MODEL := $(strip $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_MODEL))
|
|
|
|
ifndef PRODUCT_MODEL
|
2009-04-01 22:48:46 +00:00
|
|
|
PRODUCT_MODEL := $(strip $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_NAME))
|
2009-03-04 03:28:42 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
PRODUCT_MANUFACTURER := \
|
2011-10-04 17:50:08 +00:00
|
|
|
$(strip $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_MANUFACTURER))
|
2009-03-04 03:28:42 +00:00
|
|
|
ifndef PRODUCT_MANUFACTURER
|
|
|
|
PRODUCT_MANUFACTURER := unknown
|
|
|
|
endif
|
|
|
|
|
2010-10-05 21:33:58 +00:00
|
|
|
ifeq ($(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_CHARACTERISTICS),)
|
|
|
|
TARGET_AAPT_CHARACTERISTICS := default
|
|
|
|
else
|
|
|
|
TARGET_AAPT_CHARACTERISTICS := $(strip $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_CHARACTERISTICS))
|
|
|
|
endif
|
|
|
|
|
2009-05-20 20:37:35 +00:00
|
|
|
PRODUCT_DEFAULT_WIFI_CHANNELS := \
|
2011-10-04 17:50:08 +00:00
|
|
|
$(strip $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_DEFAULT_WIFI_CHANNELS))
|
|
|
|
|
|
|
|
PRODUCT_DEFAULT_DEV_CERTIFICATE := \
|
|
|
|
$(strip $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_DEFAULT_DEV_CERTIFICATE))
|
|
|
|
ifdef PRODUCT_DEFAULT_DEV_CERTIFICATE
|
|
|
|
ifneq (1,$(words $(PRODUCT_DEFAULT_DEV_CERTIFICATE)))
|
|
|
|
$(error PRODUCT_DEFAULT_DEV_CERTIFICATE='$(PRODUCT_DEFAULT_DEV_CERTIFICATE)', \
|
|
|
|
only 1 certificate is allowed.)
|
|
|
|
endif
|
|
|
|
endif
|
2009-05-20 20:37:35 +00:00
|
|
|
|
2012-09-20 23:35:36 +00:00
|
|
|
# A list of words like <source path>:<destination path>[:<owner>].
|
|
|
|
# The file at the source path should be copied to the destination path
|
|
|
|
# when building this product. <destination path> is relative to
|
|
|
|
# $(PRODUCT_OUT), so it should look like, e.g., "system/etc/file.xml".
|
|
|
|
# The rules for these copy steps are defined in build/core/Makefile.
|
|
|
|
# The optional :<owner> is used to indicate the owner of a vendor file.
|
2009-03-04 03:28:42 +00:00
|
|
|
PRODUCT_COPY_FILES := \
|
2011-10-04 17:50:08 +00:00
|
|
|
$(strip $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_COPY_FILES))
|
2009-03-04 03:28:42 +00:00
|
|
|
|
|
|
|
# A list of property assignments, like "key = value", with zero or more
|
|
|
|
# whitespace characters on either side of the '='.
|
|
|
|
PRODUCT_PROPERTY_OVERRIDES := \
|
2011-10-04 17:50:08 +00:00
|
|
|
$(strip $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_PROPERTY_OVERRIDES))
|
2009-03-04 03:28:42 +00:00
|
|
|
|
2011-06-09 21:54:40 +00:00
|
|
|
# A list of property assignments, like "key = value", with zero or more
|
|
|
|
# whitespace characters on either side of the '='.
|
|
|
|
# used for adding properties to default.prop
|
|
|
|
PRODUCT_DEFAULT_PROPERTY_OVERRIDES := \
|
2011-10-04 17:50:08 +00:00
|
|
|
$(strip $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_DEFAULT_PROPERTY_OVERRIDES))
|
2011-06-09 21:54:40 +00:00
|
|
|
|
2009-03-04 03:28:42 +00:00
|
|
|
# Should we use the default resources or add any product specific overlays
|
|
|
|
PRODUCT_PACKAGE_OVERLAYS := \
|
2011-10-04 17:50:08 +00:00
|
|
|
$(strip $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_PACKAGE_OVERLAYS))
|
2009-03-04 03:28:42 +00:00
|
|
|
DEVICE_PACKAGE_OVERLAYS := \
|
|
|
|
$(strip $(PRODUCTS.$(INTERNAL_PRODUCT).DEVICE_PACKAGE_OVERLAYS))
|
|
|
|
|
2012-03-16 16:57:11 +00:00
|
|
|
# The list of product-specific kernel header dirs
|
|
|
|
PRODUCT_VENDOR_KERNEL_HEADERS := \
|
|
|
|
$(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_VENDOR_KERNEL_HEADERS)
|
|
|
|
|
2013-07-11 01:12:33 +00:00
|
|
|
# Add the product-defined properties to the build properties.
|
|
|
|
ADDITIONAL_BUILD_PROPERTIES := \
|
|
|
|
$(ADDITIONAL_BUILD_PROPERTIES) \
|
|
|
|
$(PRODUCT_PROPERTY_OVERRIDES)
|
|
|
|
|
2009-04-01 22:48:46 +00:00
|
|
|
# The OTA key(s) specified by the product config, if any. The names
|
|
|
|
# of these keys are stored in the target-files zip so that post-build
|
|
|
|
# signing tools can substitute them for the test key embedded by
|
|
|
|
# default.
|
|
|
|
PRODUCT_OTA_PUBLIC_KEYS := $(sort \
|
|
|
|
$(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_OTA_PUBLIC_KEYS))
|
2009-03-04 03:28:42 +00:00
|
|
|
|
2011-03-16 14:49:13 +00:00
|
|
|
PRODUCT_EXTRA_RECOVERY_KEYS := $(sort \
|
|
|
|
$(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_EXTRA_RECOVERY_KEYS))
|
2014-01-17 07:25:27 +00:00
|
|
|
|
2014-10-08 01:07:23 +00:00
|
|
|
PRODUCT_DEX_PREOPT_DEFAULT_FLAGS := \
|
|
|
|
$(strip $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_DEX_PREOPT_DEFAULT_FLAGS))
|
|
|
|
PRODUCT_DEX_PREOPT_BOOT_FLAGS := \
|
|
|
|
$(strip $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_DEX_PREOPT_BOOT_FLAGS))
|
|
|
|
# Resolve and setup per-module dex-preopot configs.
|
|
|
|
PRODUCT_DEX_PREOPT_MODULE_CONFIGS := \
|
|
|
|
$(strip $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_DEX_PREOPT_MODULE_CONFIGS))
|
|
|
|
# If a module has multiple setups, the first takes precedence.
|
|
|
|
_pdpmc_modules :=
|
|
|
|
$(foreach c,$(PRODUCT_DEX_PREOPT_MODULE_CONFIGS),\
|
|
|
|
$(eval m := $(firstword $(subst =,$(space),$(c))))\
|
|
|
|
$(if $(filter $(_pdpmc_modules),$(m)),,\
|
|
|
|
$(eval _pdpmc_modules += $(m))\
|
|
|
|
$(eval cf := $(patsubst $(m)=%,%,$(c)))\
|
|
|
|
$(eval cf := $(subst $(_PDPMC_SP_PLACE_HOLDER),$(space),$(cf)))\
|
|
|
|
$(eval DEXPREOPT.$(TARGET_PRODUCT).$(m).CONFIG := $(cf))))
|
|
|
|
_pdpmc_modules :=
|