platform_build_soong/scripts
Paul Duffin 9a89a2a0ea Move boot jars package check from make
Adds a singleton that traverses the module variants finding the ones
that are in the list (updatable and non-updatable) of boot jars and
add a ninja rule to ensure that they only contain packages from an
allowed list.

Replaces a hack that ignored any prebuilt boot jars supplied as dex
file with an equivalent one to ensure that they are still ignored.
A follow up change that switches to checking dex jars will allow the
hack to be removed.

The boot jars check can be strict or lax. If strict then all the boot
jars listed in the configuration must be found, otherwise it will only
check the ones it finds. It is strict by default unless
TARGET_BUILD_UNBUNDLED=true or ALLOW_MISSING_DEPENDENCIES=true.

Moves the script and data file from build/make.

Test: m check-boot-jars - for failing and passing cases
      SKIP_BOOT_JARS_CHECK=true - no check-boot-jars target created
	  ALLOW_MISSING_DEPENDENCIES=true - not strict
	  TARGET_BUILD_UNBUNDLED=true - not strict
      verified manually that apart from path differences the same
      files (same check sum) were checked in both old make checks and
      the new Soong ones
      EMMA_INSTRUMENT=true EMMA_INSTRUMENT_FRAMEWORK=true m check-boot-jars
Bug: 171479578
Change-Id: I9d81d6650ba64fc0d48d2dab4ba5a3ba8dd03dec
2020-10-29 17:20:06 +00:00
..
check_boot_jars Move boot jars package check from make 2020-10-29 17:20:06 +00:00
Android.bp Move boot jars package check from make 2020-10-29 17:20:06 +00:00
OWNERS Handle new filetype 'linker_config' 2020-10-15 23:09:35 +09:00
TEST_MAPPING Add manifest_check tool 2019-05-24 13:43:27 -07:00
archive_repack.sh Repack libgcc.a to only include required objects 2019-10-24 16:34:54 -07:00
build-aml-prebuilts.sh Propagate settings for building in an unbundled tree. 2020-08-11 01:41:20 +01:00
build-mainline-modules.sh Rename ART release APEX to com.android.art. 2020-10-21 15:41:02 +01:00
build-ndk-prebuilts.sh Fix some typos in Soong. 2019-11-13 10:46:49 +00:00
build_broken_logs.go Update build_broken_logs script 2020-01-29 10:50:41 -08:00
construct_context.py Move part of logic from construct_context.py to Soong. 2020-10-27 17:05:30 +00:00
construct_context_test.py Move part of logic from construct_context.py to Soong. 2020-10-27 17:05:30 +00:00
conv_linker_config.py Handle new filetype 'linker_config' 2020-10-15 23:09:35 +09:00
diff_build_graphs.sh Have diff_build_graphs.sh print the number of lines in the diff 2017-11-29 12:54:43 -08:00
freeze-sysprop-api-files.sh Implement sysprop_library API stability check 2019-08-23 06:28:34 +00:00
gen-java-current-api-files.sh java_sdk_library: Allow api dir to be specified 2020-01-02 15:38:42 +00:00
gen-kotlin-build-file.py Move gen-kotlin-build-file.sh to python 2020-06-26 22:41:34 -07:00
gen-sysprop-api-files.sh Implement sysprop_library API stability check 2019-08-23 06:28:34 +00:00
gen_sorted_bss_symbols.sh Add sort_bss_symbols_by_size property for shared libs 2019-07-29 13:25:55 -07:00
generate-notice-files.py Make a soong-only copy of generate-notice-files.py 2020-03-03 13:50:53 -08:00
jar-args.sh Add license headers to all go and shell files 2017-11-17 23:05:26 +00:00
jar-wrapper.sh Allow jar wrapper to take quoted arguments 2019-07-16 11:12:04 -07:00
jars-to-module-info-java.sh Add license headers to all go and shell files 2017-11-17 23:05:26 +00:00
jsonmodify.py Output json without trailing whitespaces but with trailing newlines. 2020-02-24 22:20:49 +00:00
lint-project-xml.py Move gen-kotlin-build-file.sh to python 2020-06-26 22:41:34 -07:00
manifest.py Optionally overwrite package value in test config. 2019-12-05 11:17:09 -08:00
manifest_check.py Add manifest_check tool 2019-05-24 13:43:27 -07:00
manifest_check_test.py Add manifest_check tool 2019-05-24 13:43:27 -07:00
manifest_fixer.py Allow for setting a logging_parent for an Android App. 2020-02-18 09:37:56 -08:00
manifest_fixer_test.py Allow for setting a logging_parent for an Android App. 2020-02-18 09:37:56 -08:00
mergenotice.py Make a soong-only copy of generate-notice-files.py 2020-03-03 13:50:53 -08:00
microfactory.bash Add a unified status reporting UI 2018-07-12 14:15:31 -07:00
ninja_rsp.py Move gen-kotlin-build-file.sh to python 2020-06-26 22:41:34 -07:00
package-check.sh Ensure package check is run for java_library in APEX 2020-05-28 15:06:35 +01:00
reverse-deps.sh Scripts to evaluate dependency transitive closures. 2020-03-10 21:53:39 +00:00
rustfmt.toml Add standard rustfmt.toml 2020-06-22 13:34:59 +02:00
setup-android-build.sh Script to set up android build directory 2020-01-30 19:18:54 -08:00
setup_go_workspace_for_soong.sh Add robolectric-shadows to setup_go_workspace_for_soong.sh 2019-04-08 05:46:07 +00:00
strip.sh Revert "Create libgcc_stripped with llvm-objcopy" 2019-10-15 16:43:12 -07:00
system-clang-format system-clang-format: Add Standard: Cpp11 2019-07-10 15:04:04 -07:00
system-clang-format-2 system-clang-format: Add Standard: Cpp11 2019-07-10 15:04:04 -07:00
test_config_fixer.py Overwrite test-file-name in test config. 2020-01-17 06:08:12 -08:00
test_config_fixer_test.py Overwrite test-file-name in test config. 2020-01-17 06:08:12 -08:00
toc.sh Enable toc support for Darwin and Windows 2018-09-10 23:12:11 -07:00
transitive-deps.sh Minor tweaks to usage message. 2020-06-24 08:18:15 -07:00
update-apex-allowed-deps.sh Track allowed transitive deps in any updatable module. 2020-09-30 21:17:42 +00:00