BUILD_NUMBER and BUILD_HOSTNAME doesn't affect kati regeneration
* Extract BUILD_NUMBER, BUILD_HOSTNAME to file to avoid kati change * Handle FILE_NAME_TAG_PLACEHOLDER string in dist in build/make/packaging/distdir.mk Test: check if kati isn't invoked even though BUILD_NUMBER, BUILD_HOSTNAME is changed Test: m && m, and check if the second m is no-op Bug: 278060169 Change-Id: I1b37760242853c1a145bad255d0bb15524234b25 Merged-In: I1b37760242853c1a145bad255d0bb15524234b25
This commit is contained in:
@@ -246,21 +246,10 @@ DATE := date -d @$(BUILD_DATETIME)
|
||||
# to soong_ui.
|
||||
$(KATI_obsolete_var BUILD_DATETIME,Use BUILD_DATETIME_FROM_FILE)
|
||||
|
||||
HAS_BUILD_NUMBER := true
|
||||
ifndef BUILD_NUMBER
|
||||
# BUILD_NUMBER should be set to the source control value that
|
||||
# represents the current state of the source code. E.g., a
|
||||
# perforce changelist number or a git hash. Can be an arbitrary string
|
||||
# (to allow for source control that uses something other than numbers),
|
||||
# but must be a single word and a valid file name.
|
||||
#
|
||||
# If no BUILD_NUMBER is set, create a useful "I am an engineering build
|
||||
# from this date/time" value. Make it start with a non-digit so that
|
||||
# anyone trying to parse it as an integer will probably get "0".
|
||||
BUILD_NUMBER := eng.$(shell echo $${BUILD_USERNAME:0:6}).$(shell $(DATE) +%Y%m%d.%H%M%S)
|
||||
ifndef HAS_BUILD_NUMBER
|
||||
HAS_BUILD_NUMBER := false
|
||||
endif
|
||||
.KATI_READONLY := BUILD_NUMBER HAS_BUILD_NUMBER
|
||||
.KATI_READONLY := HAS_BUILD_NUMBER
|
||||
|
||||
ifndef PLATFORM_MIN_SUPPORTED_TARGET_SDK_VERSION
|
||||
# Used to set minimum supported target sdk version. Apps targeting sdk
|
||||
|
Reference in New Issue
Block a user