forked from openkylin/platform_build
Merge "Expose PLATFORM_SECURITY_PATCH_TIMESTAMP." am: d48f2a1408
am: cec4c5dfc5
Change-Id: Ib40d8c0fa4a289cf2029b477b9a9469550bd5ae7
This commit is contained in:
commit
d4328a80b8
|
@ -253,6 +253,16 @@ ifndef PLATFORM_SECURITY_PATCH
|
|||
endif
|
||||
.KATI_READONLY := PLATFORM_SECURITY_PATCH
|
||||
|
||||
ifndef PLATFORM_SECURITY_PATCH_TIMESTAMP
|
||||
# Used to indicate the matching timestamp for the security patch string in PLATFORM_SECURITY_PATCH.
|
||||
ifneq (,$(findstring Darwin,$(UNAME)))
|
||||
PLATFORM_SECURITY_PATCH_TIMESTAMP := $(shell date -jf '%Y-%m-%d %T %Z' '$(PLATFORM_SECURITY_PATCH) 00:00:00 GMT' +%s)
|
||||
else
|
||||
PLATFORM_SECURITY_PATCH_TIMESTAMP := $(shell date -d 'TZ="GMT" $(PLATFORM_SECURITY_PATCH)' +%s)
|
||||
endif
|
||||
endif
|
||||
.KATI_READONLY := PLATFORM_SECURITY_PATCH_TIMESTAMP
|
||||
|
||||
ifndef PLATFORM_BASE_OS
|
||||
# Used to indicate the base os applied to the device.
|
||||
# Can be an arbitrary string, but must be a single word.
|
||||
|
|
Loading…
Reference in New Issue