Merge changes from topic 'bug_38177295_checkbuild' am: bc8f82ff25
am: 0556ad1a71
am: 3dd019b9c4
Change-Id: I7dd63314b4aace5f308aca6b28bf4af671f183fa
This commit is contained in:
commit
206b85e3b2
1 changed files with 7 additions and 1 deletions
|
@ -2539,6 +2539,7 @@ define codename-or-sdk-to-sdk
|
|||
$(if $(filter $(1),$(PLATFORM_VERSION_CODENAME)),10000,$(1))
|
||||
endef
|
||||
|
||||
# --add-opens is required because desugar reflects via java.lang.invoke.MethodHandles.Lookup
|
||||
define desugar-classes-jar
|
||||
@echo Desugar: $@
|
||||
@mkdir -p $(dir $@)
|
||||
|
@ -2546,6 +2547,7 @@ $(hide) rm -f $@ $@.tmp
|
|||
@rm -rf $(dir $@)/desugar_dumped_classes
|
||||
@mkdir $(dir $@)/desugar_dumped_classes
|
||||
$(hide) java \
|
||||
$(if $(EXPERIMENTAL_USE_OPENJDK9),--add-opens java.base/java.lang.invoke=ALL-UNNAMED,) \
|
||||
-Djdk.internal.lambda.dumpProxyClasses=$(abspath $(dir $@))/desugar_dumped_classes \
|
||||
-jar $(DESUGAR) \
|
||||
$(addprefix --bootclasspath_entry ,$(call desugar-bootclasspath,$(PRIVATE_BOOTCLASSPATH))) \
|
||||
|
@ -2699,10 +2701,14 @@ define sign-package
|
|||
$(call sign-package-arg,$@)
|
||||
endef
|
||||
|
||||
# signapk uses internal APIs from sun.security.{pkcs,x509}; see http://b/37137869
|
||||
# $(1): the package file we are signing.
|
||||
define sign-package-arg
|
||||
$(hide) mv $(1) $(1).unsigned
|
||||
$(hide) java -Djava.library.path=$(SIGNAPK_JNI_LIBRARY_PATH) -jar $(SIGNAPK_JAR) \
|
||||
$(hide) java -Djava.library.path=$(SIGNAPK_JNI_LIBRARY_PATH) \
|
||||
$(if $(EXPERIMENTAL_USE_OPENJDK9),--add-exports java.base/sun.security.pkcs=ALL-UNNAMED,) \
|
||||
$(if $(EXPERIMENTAL_USE_OPENJDK9),--add-exports java.base/sun.security.x509=ALL-UNNAMED,) \
|
||||
-jar $(SIGNAPK_JAR) \
|
||||
$(PRIVATE_CERTIFICATE) $(PRIVATE_PRIVATE_KEY) \
|
||||
$(PRIVATE_ADDITIONAL_CERTIFICATES) $(1).unsigned $(1).signed
|
||||
$(hide) mv $(1).signed $(1)
|
||||
|
|
Loading…
Reference in a new issue