summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rwxr-xr-x[-rw-r--r--]core/build_id.mk35
-rw-r--r--core/main.mk21
2 files changed, 20 insertions, 36 deletions
diff --git a/core/build_id.mk b/core/build_id.mk
index cb18bc4..03af5f5 100644..100755
--- a/core/build_id.mk
+++ b/core/build_id.mk
@@ -1,32 +1,3 @@
-#
-# 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.
-#
-
-#
-# Defines branch-specific values.
-#
-
-# BUILD_ID is usually used to specify the branch name
-# (like "MAIN") or a branch name and a release candidate
-# (like "TC1-RC5"). It must be a single word, and is
-# capitalized by convention.
-#
-BUILD_ID := CUPCAKE
-
-# DISPLAY_BUILD_NUMBER should only be set for development branches,
-# If set, the BUILD_NUMBER (cl) is appended to the BUILD_ID for
-# a more descriptive BUILD_ID_DISPLAY, otherwise BUILD_ID_DISPLAY
-# is the same as BUILD_ID
-DISPLAY_BUILD_NUMBER := true
+# This branch was born out of a naming conventions fix.
+# The decision was to keep the RC names the same.
+export BUILD_ID=CRA71C
diff --git a/core/main.mk b/core/main.mk
index a19beba..37c580d 100644
--- a/core/main.mk
+++ b/core/main.mk
@@ -201,13 +201,26 @@ else # !sdk
ADDITIONAL_BUILD_PROPERTIES += ro.config.sync=yes
endif
-ifeq "" "$(filter %:system/etc/apns-conf.xml, $(PRODUCT_COPY_FILES))"
- # Install an apns-conf.xml file if one's not already being installed.
- PRODUCT_COPY_FILES += development/data/etc/apns-conf_sdk.xml:system/etc/apns-conf.xml
- ifeq ($(filter sdk,$(MAKECMDGOALS)),)
+# Install an apns-conf.xml file if one's not already being installed.
+ifeq (,$(filter %:system/etc/apns-conf.xml, $(PRODUCT_COPY_FILES)))
+ PRODUCT_COPY_FILES += \
+ development/data/etc/apns-conf_sdk.xml:system/etc/apns-conf.xml
+ ifeq ($(filter eng tests,$(TARGET_BUILD_VARIANT)),)
$(warning implicitly installing apns-conf_sdk.xml)
endif
endif
+# If we're on an eng or tests build, but not on the sdk, and we have
+# a better one, use that instead.
+ifneq ($(filter eng tests,$(TARGET_BUILD_VARIANT)),)
+ ifeq ($(filter sdk,$(MAKECMDGOALS)),)
+ apns_to_use := $(wildcard vendor/google/etc/apns-conf.xml)
+ ifneq ($(strip $(apns_to_use)),)
+ PRODUCT_COPY_FILES := \
+ $(filter-out %:system/etc/apns-conf.xml,$(PRODUCT_COPY_FILES)) \
+ $(strip $(apns_to_use)):system/etc/apns-conf.xml
+ endif
+ endif
+endif
ADDITIONAL_BUILD_PROPERTIES += net.bt.name=Android