diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-09-15 02:20:59 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2022-09-15 02:20:59 +0000 |
commit | d336706d19b10eacf1cb29a863716b3f30ac85f0 (patch) | |
tree | 2452ce60b4252abadc7688d2ca6f36cfa2b7bb61 | |
parent | 608ee79bf7afc7f57080db95c36a7660667bf99a (diff) | |
parent | be86f7bb7e6915cc549e159d69ed56df90e4ea63 (diff) | |
download | build-sparse-9066738-L61700000956501732.tar.gz |
Merge "Make change and version bump to TKB1.220914.001" into gki13-boot-releasesparse-9066738-L61700000956501732
-rw-r--r-- | core/Makefile | 4 | ||||
-rw-r--r-- | core/build_id.mk | 2 | ||||
-rw-r--r-- | core/definitions.mk | 23 | ||||
-rw-r--r-- | core/rbe.mk | 4 | ||||
-rw-r--r-- | core/version_defaults.mk | 2 | ||||
-rw-r--r-- | envsetup.sh | 14 | ||||
-rwxr-xr-x | tests/b_tests.sh | 31 | ||||
-rwxr-xr-x | tests/roboleaf_tests.sh | 23 | ||||
-rw-r--r-- | tools/releasetools/common.py | 2 |
9 files changed, 82 insertions, 23 deletions
diff --git a/core/Makefile b/core/Makefile index 47d06ccd0e..0accfb6df9 100644 --- a/core/Makefile +++ b/core/Makefile @@ -3907,6 +3907,10 @@ endif # BOARD_PREBUILT_DTBOIMAGE # ----------------------------------------------------------------- # Protected VM firmware image ifeq ($(BOARD_USES_PVMFWIMAGE),true) + +.PHONY: pvmfwimage +pvmfwimage: $(INSTALLED_PVMFWIMAGE_TARGET) + INSTALLED_PVMFWIMAGE_TARGET := $(PRODUCT_OUT)/pvmfw.img INSTALLED_PVMFW_EMBEDDED_AVBKEY_TARGET := $(PRODUCT_OUT)/pvmfw_embedded.avbpubkey PREBUILT_PVMFWIMAGE_TARGET := packages/modules/Virtualization/pvmfw/pvmfw.img diff --git a/core/build_id.mk b/core/build_id.mk index 924d0a8888..2ee57ad6f7 100644 --- a/core/build_id.mk +++ b/core/build_id.mk @@ -18,4 +18,4 @@ # (like "CRB01"). It must be a single word, and is # capitalized by convention. -BUILD_ID=TKB1.220911.001 +BUILD_ID=TKB1.220914.001 diff --git a/core/definitions.mk b/core/definitions.mk index 49ecb1c3da..0385315811 100644 --- a/core/definitions.mk +++ b/core/definitions.mk @@ -570,7 +570,7 @@ endef ## Target directory for license metadata files. ########################################################### define license-metadata-dir -$(call generated-sources-dir-for,META,lic,) +$(call generated-sources-dir-for,META,lic,$(filter-out $(PRODUCT_OUT)%,$(1))) endef TARGETS_MISSING_LICENSE_METADATA:= @@ -595,7 +595,7 @@ endef ## license metadata. ########################################################### define declare-copy-target-license-metadata -$(strip $(if $(filter $(OUT_DIR)%,$(2)),$(eval _dir:=$(call license-metadata-dir))\ +$(strip $(if $(filter $(OUT_DIR)%,$(2)),$(eval _dir:=$(call license-metadata-dir,$(1)))\ $(eval _tgt:=$(strip $(1)))\ $(eval _meta := $(call append-path,$(_dir),$(patsubst $(OUT_DIR)%,out%,$(_tgt).meta_lic)))\ $(eval ALL_COPIED_TARGETS.$(_tgt).SOURCES := $(ALL_COPIED_TARGETS.$(_tgt).SOURCES) $(filter $(OUT_DIR)%,$(2)))\ @@ -675,7 +675,7 @@ endef ## License metadata build rule for non-module target $(1) ########################################################### define non-module-license-metadata-rule -$(strip $(eval _dir := $(call license-metadata-dir))) +$(strip $(eval _dir := $(call license-metadata-dir,$(1)))) $(strip $(eval _tgt := $(strip $(1)))) $(strip $(eval _meta := $(call append-path,$(_dir),$(patsubst $(OUT_DIR)%,out%,$(_tgt).meta_lic)))) $(strip $(eval _deps := $(sort $(filter-out 0p: :,$(foreach d,$(strip $(ALL_NON_MODULES.$(_tgt).DEPENDENCIES)),$(ALL_TARGETS.$(call word-colon,1,$(d)).META_LIC):$(call wordlist-colon,2,9999,$(d))))))) @@ -738,7 +738,7 @@ $(if $(strip $(ALL_TARGETS.$(1).META_LIC)),,$(call _copied-target-license-metada endef define _copied-target-license-metadata-rule -$(strip $(eval _dir := $(call license-metadata-dir))) +$(strip $(eval _dir := $(call license-metadata-dir,$(1)))) $(strip $(eval _meta := $(call append-path,$(_dir),$(patsubst $(OUT_DIR)%,out%,$(1).meta_lic)))) $(strip $(eval ALL_TARGETS.$(1).META_LIC:=$(_meta))) $(strip $(eval _dep:=)) @@ -785,7 +785,7 @@ define declare-license-metadata $(strip \ $(eval _tgt := $(subst //,/,$(strip $(1)))) \ $(eval ALL_NON_MODULES += $(_tgt)) \ - $(eval ALL_TARGETS.$(_tgt).META_LIC := $(call license-metadata-dir)/$(patsubst $(OUT_DIR)%,out%,$(_tgt)).meta_lic) \ + $(eval ALL_TARGETS.$(_tgt).META_LIC := $(call license-metadata-dir,$(1))/$(patsubst $(OUT_DIR)%,out%,$(_tgt)).meta_lic) \ $(eval ALL_NON_MODULES.$(_tgt).LICENSE_KINDS := $(strip $(2))) \ $(eval ALL_NON_MODULES.$(_tgt).LICENSE_CONDITIONS := $(strip $(3))) \ $(eval ALL_NON_MODULES.$(_tgt).NOTICES := $(strip $(4))) \ @@ -826,7 +826,7 @@ define declare-container-license-metadata $(strip \ $(eval _tgt := $(subst //,/,$(strip $(1)))) \ $(eval ALL_NON_MODULES += $(_tgt)) \ - $(eval ALL_TARGETS.$(_tgt).META_LIC := $(call license-metadata-dir)/$(patsubst $(OUT_DIR)%,out%,$(_tgt)).meta_lic) \ + $(eval ALL_TARGETS.$(_tgt).META_LIC := $(call license-metadata-dir,$(1))/$(patsubst $(OUT_DIR)%,out%,$(_tgt)).meta_lic) \ $(eval ALL_NON_MODULES.$(_tgt).LICENSE_KINDS := $(strip $(2))) \ $(eval ALL_NON_MODULES.$(_tgt).LICENSE_CONDITIONS := $(strip $(3))) \ $(eval ALL_NON_MODULES.$(_tgt).NOTICES := $(strip $(4))) \ @@ -897,9 +897,9 @@ endef ########################################################### define declare-license-deps $(strip \ - $(eval _tgt := $(strip $(1))) \ + $(eval _tgt := $(subst //,/,$(strip $(1)))) \ $(eval ALL_NON_MODULES += $(_tgt)) \ - $(eval ALL_TARGETS.$(_tgt).META_LIC := $(call license-metadata-dir)/$(patsubst $(OUT_DIR)%,out%,$(_tgt)).meta_lic) \ + $(eval ALL_TARGETS.$(_tgt).META_LIC := $(call license-metadata-dir,$(1))/$(patsubst $(OUT_DIR)%,out%,$(_tgt)).meta_lic) \ $(eval ALL_NON_MODULES.$(_tgt).DEPENDENCIES := $(strip $(ALL_NON_MODULES.$(_tgt).DEPENDENCIES) $(2))) \ ) endef @@ -914,9 +914,9 @@ endef ########################################################### define declare-container-license-deps $(strip \ - $(eval _tgt := $(strip $(1))) \ + $(eval _tgt := $(subst //,/,$(strip $(1)))) \ $(eval ALL_NON_MODULES += $(_tgt)) \ - $(eval ALL_TARGETS.$(_tgt).META_LIC := $(call license-metadata-dir)/$(patsubst $(OUT_DIR)%,out%,$(_tgt)).meta_lic) \ + $(eval ALL_TARGETS.$(_tgt).META_LIC := $(call license-metadata-dir,$(1))/$(patsubst $(OUT_DIR)%,out%,$(_tgt)).meta_lic) \ $(eval ALL_NON_MODULES.$(_tgt).DEPENDENCIES := $(strip $(ALL_NON_MODULES.$(_tgt).DEPENDENCIES) $(2))) \ $(eval ALL_NON_MODULES.$(_tgt).IS_CONTAINER := true) \ $(eval ALL_NON_MODULES.$(_tgt).ROOT_MAPPINGS := $(strip $(ALL_NON_MODULES.$(_tgt).ROOT_MAPPINGS) $(3))) \ @@ -957,7 +957,7 @@ define report-all-notice-library-names-rule $(strip $(eval _all := $(call all-license-metadata))) .PHONY: reportallnoticelibrarynames -reportallnoticelibrarynames: PRIVATE_LIST_FILE := $(call license-metadata-dir)/filelist +reportallnoticelibrarynames: PRIVATE_LIST_FILE := $(call license-metadata-dir,COMMON)/filelist reportallnoticelibrarynames: | $(COMPLIANCENOTICE_SHIPPEDLIBS) reportallnoticelibrarynames: $(_all) @echo Reporting notice library names for at least $$(words $(_all)) license metadata files @@ -984,7 +984,6 @@ endef ########################################################### define build-license-metadata $(strip \ - $(strip $(eval _dir := $(call license-metadata-dir))) \ $(foreach t,$(sort $(ALL_0P_TARGETS)), \ $(eval ALL_TARGETS.$(t).META_LIC := 0p) \ ) \ diff --git a/core/rbe.mk b/core/rbe.mk index 8566ff0582..65abde58fe 100644 --- a/core/rbe.mk +++ b/core/rbe.mk @@ -81,11 +81,11 @@ ifneq ($(filter-out false,$(USE_RBE)),) endif ifdef RBE_R8 - R8_WRAPPER := $(strip $(RBE_WRAPPER) --labels=type=compile,compiler=r8 --exec_strategy=$(r8_exec_strategy) --platform=$(java_r8_d8_platform) --inputs=$(OUT_DIR)/soong/host/linux-x86/framework/r8-compat-proguard.jar,build/make/core/proguard_basic_keeps.flags --toolchain_inputs=prebuilts/jdk/jdk11/linux-x86/bin/java) + R8_WRAPPER := $(strip $(RBE_WRAPPER) --labels=type=compile,compiler=r8 --exec_strategy=$(r8_exec_strategy) --platform=$(java_r8_d8_platform) --inputs=$(OUT_DIR)/soong/host/linux-x86/framework/r8-compat-proguard.jar,build/make/core/proguard_basic_keeps.flags --toolchain_inputs=$(JAVA)) endif ifdef RBE_D8 - D8_WRAPPER := $(strip $(RBE_WRAPPER) --labels=type=compile,compiler=d8 --exec_strategy=$(d8_exec_strategy) --platform=$(java_r8_d8_platform) --inputs=$(OUT_DIR)/soong/host/linux-x86/framework/d8.jar --toolchain_inputs=prebuilts/jdk/jdk11/linux-x86/bin/java) + D8_WRAPPER := $(strip $(RBE_WRAPPER) --labels=type=compile,compiler=d8 --exec_strategy=$(d8_exec_strategy) --platform=$(java_r8_d8_platform) --inputs=$(OUT_DIR)/soong/host/linux-x86/framework/d8.jar --toolchain_inputs=$(JAVA)) endif rbe_dir := diff --git a/core/version_defaults.mk b/core/version_defaults.mk index 8c74c72bef..710b8716ad 100644 --- a/core/version_defaults.mk +++ b/core/version_defaults.mk @@ -103,7 +103,7 @@ ifndef PLATFORM_SECURITY_PATCH # It must be of the form "YYYY-MM-DD" on production devices. # It must match one of the Android Security Patch Level strings of the Public Security Bulletins. # If there is no $PLATFORM_SECURITY_PATCH set, keep it empty. - PLATFORM_SECURITY_PATCH := 2022-08-05 + PLATFORM_SECURITY_PATCH := 2022-09-05 endif include $(BUILD_SYSTEM)/version_util.mk diff --git a/envsetup.sh b/envsetup.sh index 19a6bfc435..ea72ca7657 100644 --- a/envsetup.sh +++ b/envsetup.sh @@ -1858,7 +1858,7 @@ function b() _trigger_build "all-modules" bp2build $skip_tests USE_BAZEL_ANALYSIS= || return 1 # Then, run Bazel using the synthetic workspace as the --package_path. if [[ -z "$bazel_args" ]]; then - # If there are no args, show help. + # If there are no args, show help and exit. bazel help else # Else, always run with the bp2build configuration, which sets Bazel's package path to the synthetic workspace. @@ -1882,13 +1882,15 @@ function b() bazel_args_with_config+=("--config=bp2build ") fi + # Call Bazel. if [ -n "$ZSH_VERSION" ]; then - # zsh breaks posix by not doing string-splitting on unquoted args - # by default. Enable the compatibility option. - setopt shwordsplit + # zsh breaks posix by not doing string-splitting on unquoted args + # by default. Explicitly use the "=" flag to split. + # See https://zsh.sourceforge.io/Guide/zshguide05.html section 5.4.4. + bazel ${=bazel_args_with_config} + else + bazel ${bazel_args_with_config[@]} fi - # Call Bazel. - bazel ${bazel_args_with_config[@]} fi ) diff --git a/tests/b_tests.sh b/tests/b_tests.sh new file mode 100755 index 0000000000..87d092fa9c --- /dev/null +++ b/tests/b_tests.sh @@ -0,0 +1,31 @@ +# Copyright (C) 2022 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. + +# These commands are expected to always return successfully + +trap 'exit 1' ERR + +source $(dirname $0)/../envsetup.sh + +test_target=//build/bazel/scripts/difftool:difftool + +b cquery 'kind(test, //build/bazel/...)' +b build "$test_target" +b build "$test_target" --run-soong-tests +b build --run-soong-tests "$test_target" +b --run-soong-tests build "$test_target" +b run $test_target +b run $test_target -- --help +b cquery --output=build 'kind(test, //build/bazel/...)' +b cquery 'kind(test, //build/bazel/...)' --output=build diff --git a/tests/roboleaf_tests.sh b/tests/roboleaf_tests.sh new file mode 100755 index 0000000000..9e06e9c202 --- /dev/null +++ b/tests/roboleaf_tests.sh @@ -0,0 +1,23 @@ +#!/bin/bash -e +# Copyright (C) 2022 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. + +tests=( + $(dirname $0)/b_tests.sh +) + +for test in $tests; do + bash -x $test + zsh -x $test +done diff --git a/tools/releasetools/common.py b/tools/releasetools/common.py index 9fef298ca1..4f70a42d18 100644 --- a/tools/releasetools/common.py +++ b/tools/releasetools/common.py @@ -77,7 +77,7 @@ class Options(object): self.extra_sign_sepolicy_args = [] self.aapt2_path = "aapt2" self.java_path = "java" # Use the one on the path by default. - self.java_args = ["-Xmx2048m"] # The default JVM args. + self.java_args = ["-Xmx4096m"] # The default JVM args. self.android_jar_path = None self.public_key_suffix = ".x509.pem" self.private_key_suffix = ".pk8" |