platform_build/core
Yo Chiang 0b49c03727 Check ELF prebuilts in PRODUCT_COPY_FILES
Add a check to ban ELF prebuilts in PRODUCT_COPY_FILES.
ELF prebuilts should be defined properly by cc_prebuilt_library_shared
and cc_prebuilt_binary so that the build system can keep track of the
file dependencies.

To opt in this check, set this option in BoardConfig.mk:
  BUILD_BROKEN_ELF_PREBUILT_PRODUCT_COPY_FILES := false

After all devices that have ELF prebuilts in PRODUCT_COPY_FILES are
tagged with BUILD_BROKEN_ELF_PREBUILT_PRODUCT_COPY_FILES := true flip
BUILD_BROKEN_ELF_PREBUILT_PRODUCT_COPY_FILES to default false.

After a device is cleaned up, remove its
BUILD_BROKEN_ELF_PREBUILT_PRODUCT_COPY_FILES := true setting.

Bug: 140560012
Test: Set BUILD_BROKEN_ELF_PREBUILT_PRODUCT_COPY_FILES := false
Test: m # Should report any ELF prebuilt error in PRODUCT_COPY_FILES
Change-Id: Id75dac9417aed9baa7c5e9388430ff9369cf9b4f
2020-04-08 18:01:24 +08:00
..
clang Remove unused mips workarounds. 2020-03-06 16:46:59 -08:00
combo Remove unused mips workarounds. 2020-03-06 16:46:59 -08:00
tasks Merge "Rename VTS to VTS10" 2020-03-31 17:32:34 +00:00
aapt2.mk Allow passing --legacy in LOCAL_AAPT_FLAGS 2019-06-22 13:03:09 -07:00
aapt_flags.mk
allowed_ndk_types.mk
android_manifest.mk Allow codename.fingerprint format for minSdkVersion 2020-01-16 10:04:55 -08:00
app_certificate_validate.mk Access PRODUCT_ variables directly 2019-03-28 15:54:25 +00:00
app_prebuilt_internal.mk Build merged apexkeys.txt/apkcerts.txt by partition. 2020-03-30 22:33:27 +00:00
autogen_test_config.mk Update auto-gen test config template with EXTRA_CONFIGS placeholder 2019-07-15 17:29:42 +00:00
aux_config.mk Add back the llvm-ar P flag 2019-09-06 15:19:59 -07:00
aux_executable.mk Remove *_OUT_INTERMEDIATE_LIBRARIES 2018-09-15 10:52:13 -07:00
aux_static_library.mk
aux_toolchain.mk Move libgcc to libcrt.builtins 2018-11-08 13:40:34 -08:00
base_rules.mk Build merged apexkeys.txt/apkcerts.txt by partition. 2020-03-30 22:33:27 +00:00
binary.mk Remove unused mips workarounds. 2020-03-06 16:46:59 -08:00
board_config.mk Check ELF prebuilts in PRODUCT_COPY_FILES 2020-04-08 18:01:24 +08:00
build-system.html Remove unused mips workarounds. 2020-03-06 16:46:59 -08:00
build_id.mk Version bump to QQ2A.200305.003 [core/build_id.mk] 2020-01-23 19:21:22 +00:00
build_rro_package.mk Do not remove RRO resources 2020-01-14 17:00:13 -08:00
cc_prebuilt_internal.mk Restore "Linktype check for native:product" 2020-01-22 00:16:25 +00:00
ccache.mk
check_elf_file.mk Enable prebuilt ELF check for all targets 2019-12-09 14:00:25 -08:00
checktree
cleanbuild.mk
cleanspec.mk
clear_vars.mk Remove execute-only support. 2020-02-13 14:20:28 -05:00
config.mk Trim down dont_bother_goals 2020-03-05 00:21:25 +00:00
config_sanitizers.mk Remove unused mips workarounds. 2020-03-06 16:46:59 -08:00
configure_module_stem.mk
construct_context.sh Move verify_uses_libraries.sh out of dexpreopt 2019-05-26 17:42:17 +00:00
copy_headers.mk Stop removing valid copy headers 2019-12-26 16:52:34 -08:00
cxx_stl_setup.mk Update make build system for dynamic unwinder. 2020-01-10 11:09:52 -08:00
definitions.mk Check ELF prebuilts in PRODUCT_COPY_FILES 2020-04-08 18:01:24 +08:00
deprecation.mk Mark the current BUILD_* warnings as errors by default 2020-03-07 11:29:29 -08:00
device.mk
dex_preopt.mk Install boot.art image for host as well (used by ART tests). 2020-02-27 21:04:49 +00:00
dex_preopt_config.mk Remove unused mips workarounds. 2020-03-06 16:46:59 -08:00
dex_preopt_libart.mk Install boot.art image for host as well (used by ART tests). 2020-02-27 21:04:49 +00:00
dex_preopt_odex_install.mk Remove UseApexImage and GenerateApexImage. 2020-02-09 22:53:25 +00:00
distdir.mk Fix dist-for-goals with no targets 2018-10-20 16:59:41 -07:00
dumpvar.mk Fix dump-vars output to handle quotes. 2019-05-30 20:59:50 -07:00
dynamic_binary.mk Give strip depfile a unique name, properly include it 2020-01-27 22:06:21 +00:00
empty_test_config.xml
envsetup.mk Get rid of obsolete Make variable TARGET_CORE_JARS. 2020-03-23 15:35:00 +00:00
executable.mk Mark BUILD_HOST_EXECUTABLE as deprecated 2020-01-29 13:27:18 -08:00
executable_internal.mk Update make build system for dynamic unwinder. 2020-01-10 11:09:52 -08:00
executable_prefer_symlink.mk
filter_symbols.sh
force_aapt2.mk Don't set LOCAL_SDK_RES_VERSION to current if LOCAL_SDK_VERSION is core_current 2019-04-18 11:14:58 -07:00
fuzz_test.mk Fix to avoid breaking aosp_x86 build 2019-09-20 12:43:02 -07:00
generate_enforce_rro.mk Don't sign auto-generated RROs with platform cert 2019-05-01 16:42:56 +01:00
goma.mk Disable goma for javac actions in Make 2020-03-05 20:46:47 +00:00
header_library.mk Remove support for building Windows modules in Make 2019-02-05 00:19:41 -08:00
header_library_internal.mk Revert "Add soong_cc_prebuilt.mk" 2018-09-12 23:58:01 +00:00
host_dalvik_java_library.mk Disable goma for javac actions in Make 2020-03-05 20:46:47 +00:00
host_dalvik_static_java_library.mk
host_executable.mk Remove support for building Windows modules in Make 2019-02-05 00:19:41 -08:00
host_executable_internal.mk Add dependencies on the toolchain (clang, etc) 2019-06-12 21:34:52 +00:00
host_fuzz_test.mk Fix fuzzer builds. 2019-05-20 16:58:26 -07:00
host_java_library.mk Disable goma for javac actions in Make 2020-03-05 20:46:47 +00:00
host_java_library_common.mk Remove host- prefix from protobuf libraries 2018-10-26 23:55:49 -07:00
host_native_test.mk
host_prebuilt.mk
host_shared_library.mk Mark the current BUILD_* warnings as errors by default 2020-03-07 11:29:29 -08:00
host_shared_library_internal.mk Remove *_OUT_INTERMEDIATE_LIBRARIES 2018-09-15 10:52:13 -07:00
host_shared_test_lib.mk
host_static_library.mk Mark the current BUILD_* warnings as errors by default 2020-03-07 11:29:29 -08:00
host_static_library_internal.mk
host_static_test_lib.mk Deprecate next set of make module types 2019-05-08 12:27:53 -07:00
host_test_config.mk
host_test_internal.mk Remove support for building Windows modules in Make 2019-02-05 00:19:41 -08:00
install_jni_libs.mk Rename product_services to system_ext 2019-07-09 08:57:19 +00:00
install_jni_libs_internal.mk Restore "Linktype check for native:product" 2020-01-22 00:16:25 +00:00
instrumentation_test_config_template.xml Instrumentation test doesn't support extra config 2019-08-26 15:50:15 -07:00
jacoco.mk Use find(1)'s -exec directly. 2019-01-14 12:56:07 -08:00
java.mk Disable goma for javac actions in Make 2020-03-05 20:46:47 +00:00
java_common.mk Remove support for EXPERIMENTAL_JAVA_LANGUAGE_LEVEL_9. 2019-10-25 16:55:54 +01:00
java_host_test_config_template.xml Update auto-gen test config template with EXTRA_CONFIGS placeholder 2019-07-15 17:29:42 +00:00
java_library.mk Remove support for stripping dex. 2019-10-21 09:36:45 +01:00
java_prebuilt_internal.mk Remove support for stripping dex. 2019-10-21 09:36:45 +01:00
java_renderscript.mk Remove unused mips workarounds. 2020-03-06 16:46:59 -08:00
java_test_config_template.xml Update auto-gen test config template with EXTRA_CONFIGS placeholder 2019-07-15 17:29:42 +00:00
jetifier.mk
line_coverage.mk Add a new make target called haiku-line-coverage 2020-02-17 11:18:11 -08:00
link_type.mk
LINUX_KERNEL_COPYING
local_systemsdk.mk Enforce hidden apis usage in product(make) 2019-11-06 19:41:47 +09:00
local_vndk.mk Restore "Linktype check for native:product" 2020-01-22 00:16:25 +00:00
main.mk Update dex2oat filter 2020-03-30 13:03:47 +00:00
Makefile Check ELF prebuilts in PRODUCT_COPY_FILES 2020-04-08 18:01:24 +08:00
misc_prebuilt_internal.mk Add RENDERSCRIPT_BITCODE to misc_prebuilt_internal whitelist. 2019-11-11 15:21:06 -08:00
module_arch_supported.mk Remove support for building Windows modules in Make 2019-02-05 00:19:41 -08:00
multi_prebuilt.mk Remove *_OUT_INTERMEDIATE_LIBRARIES 2018-09-15 10:52:13 -07:00
multilib.mk
native_benchmark.mk Eliminate ENABLE_DEFAULT_TEST_LOCATION as it is always true 2019-03-25 13:26:03 -07:00
native_benchmark_test_config_template.xml Update auto-gen test config template with EXTRA_CONFIGS placeholder 2019-07-15 17:29:42 +00:00
native_host_test_config_template.xml Update auto-gen test config template with EXTRA_CONFIGS placeholder 2019-07-15 17:29:42 +00:00
native_test.mk
native_test_config_template.xml Update auto-gen test config template with EXTRA_CONFIGS placeholder 2019-07-15 17:29:42 +00:00
ninja_config.mk Rename VTS to VTS10 2020-03-28 13:28:21 -07:00
node_fns.mk Add support for single-value product variables 2019-05-06 16:17:20 +01:00
notice_files.mk Include LICENSE files, when available, in notices. 2020-02-27 19:19:23 +00:00
OWNERS Update OWNERS for dex preopt related files. 2018-12-18 19:39:20 +00:00
pack_dyn_relocs_setup.mk Explicitly add lld's relr relocation flags for Android Pie and above 2019-07-30 22:36:29 -07:00
package.mk Remove TARGET_TRANSLATE_2ND_ARCH 2019-09-18 16:23:04 +00:00
package_internal.mk Build merged apexkeys.txt/apkcerts.txt by partition. 2020-03-30 22:33:27 +00:00
pathmap.mk
pdk_config.mk Replace framework.jar with framework-minus-apex.jar 2019-10-28 09:55:33 +00:00
pdk_fusion_modules.mk Fix pre-extracted PDKs 2018-11-05 10:57:24 -08:00
phony_package.mk
prebuilt.mk Remove TARGET_TRANSLATE_2ND_ARCH 2019-09-18 16:23:04 +00:00
prebuilt_internal.mk Add RENDERSCRIPT_BITCODE to misc prebuilt whitelist. 2019-11-11 09:30:38 -08:00
process_wrapper.sh
process_wrapper_gdb.cmds
process_wrapper_gdb.sh
product-graph.mk Ensure current product use PRODUCT_* vars directly 2019-10-30 14:29:42 +00:00
product.mk Add PRODUCT_BOOT_JARS_EXTRA interface 2020-03-26 10:31:39 +00:00
product_config.mk Add PRODUCT_BOOT_JARS_EXTRA interface 2020-03-26 10:31:39 +00:00
proguard.flags Understand the support library/androidx @Keep annotations 2019-03-26 23:44:01 +00:00
proguard.jacoco.flags
proguard_basic_keeps.flags Keep proguard fields for lite runtime 2019-09-05 14:42:14 -07:00
project_definitions.mk
python_binary_host_test_config_template.xml ATest: Add test config template for python. 2018-11-20 15:31:44 +08:00
rbe.mk Add exec_strategy as CLI flags to all rewrapper commands 2020-02-05 16:06:47 +00:00
root.mk
rust_device_test_config_template.xml Add rust_device_test_config_template.xml 2019-12-02 17:44:47 +00:00
rust_host_test_config_template.xml Add rust_host_test_config_template.xml 2019-11-14 09:57:13 -08:00
sdk_check.mk
sdk_font.mk
shared_library.mk Mark the current BUILD_* warnings as errors by default 2020-03-07 11:29:29 -08:00
shared_library_internal.mk Update make build system for dynamic unwinder. 2020-01-10 11:09:52 -08:00
shared_test_lib.mk
soong_app_prebuilt.mk Build merged apexkeys.txt/apkcerts.txt by partition. 2020-03-30 22:33:27 +00:00
soong_cc_prebuilt.mk Merge "Skip VNDK variant check on coverage builds." 2020-03-04 23:55:32 +00:00
soong_config.mk Add platform-wide sampling PGO option 2020-03-24 07:01:59 -07:00
soong_droiddoc_prebuilt.mk Allow files generated by droidstubs to be copied in the SDK 2019-11-18 10:38:13 +00:00
soong_java_prebuilt.mk AIDEGen: Collect the classes.jar of the prebuilt modules into module-info.json 2019-06-14 10:47:18 +08:00
soong_rust_prebuilt.mk Set NATIVE_TESTS executable like EXECUTABLES 2019-11-15 14:10:09 -08:00
static_java_library.mk Add dependencies for files in LOCAL_PROGUARD_FLAGS 2019-08-09 09:19:52 -07:00
static_library.mk Mark the current BUILD_* warnings as errors by default 2020-03-07 11:29:29 -08:00
static_library_internal.mk Merge changes I2183ac9f,I2c76701c,Ibbe4e11a,I0706faa2,Ic5b7c4fb, ... 2019-06-13 17:13:22 +00:00
static_test_lib.mk
suite_host_config.mk Generalize vts config module for other Suites 2019-10-18 18:28:23 +00:00
support_libraries.mk
target_test_config.mk
target_test_internal.mk Eliminate ENABLE_DEFAULT_TEST_LOCATION as it is always true 2019-03-25 13:26:03 -07:00
test_config_common.mk
use_lld_setup.mk Remove support for building Windows modules in Make 2019-02-05 00:19:41 -08:00
verify_uses_libraries.sh
version_defaults.mk DO NOT MERGE - Merge QQ2A.200305.003 into stage-aosp-master 2020-02-28 21:34:35 +00:00
WINPTHREADS_COPYING