platform_build/core
Yo Chiang 1b8283358e Refactor *-select-bitness-of-required-modules
* Streamline required module bitness resolution

If a module is for cross host OS, the required modules are also for that
OS.
Otherwise if the requirer module is native and the required module is
shared library or native test, then the required module resolves to the
same bitness.
Otherwise the required module resolves to both variants, if they exist.

* Factor out the common logic and merge
  <target|host|host-cross>-select-bitness-of-required-modules

This lays the road for follow-up changes to add bitness suffix support.
This slightly reduces readibility. To make up for the loss, the
bitness-resolving logic is easier to maintain since we don't have
multiple copies of *-select-bitness-of-required-modules.

Bug: 155869107
Test: check the diff of product_target_FILES and product_host_FILES
Test: check the diff of ALL_MODULES.*.REQUIRED_FROM_(TARGET|HOST)
Change-Id: Ib2f4b548535e983d621dad71cb920101111140f2
2020-06-03 18:27:20 +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 Delete deps-license target. 2020-05-21 07:11:55 -07:00
LINUX_KERNEL_COPYING
Makefile Merge "remove spurious comma from module-load-list-copy-paths call" 2020-05-29 22:08:11 +00:00
OWNERS
WINPTHREADS_COPYING
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 Incorrect file names in apkcerts.txt for Make modules 2020-05-03 13:43:08 +09:00
autogen_test_config.mk Update auto-gen test config template with EXTRA_CONFIGS placeholder 2019-07-15 17:29:42 +00:00
base_rules.mk Editorial: fix indentation 2020-05-06 13:46:30 -07:00
binary.mk Remove TARGET_PROJECT[_SYSTEM]_INCLUDES 2020-05-01 17:43:45 -07:00
board_config.mk Support forcefully generating non-AB packages. 2020-05-19 15:23:27 -07:00
build-system.html Remove unused mips workarounds. 2020-03-06 16:46:59 -08:00
build_id.mk Version bump to QQ2A.200501.001.B2 [core/build_id.mk] 2020-04-01 00:06:15 +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 Remove empty rules for check_elf_files.timestamp 2020-04-28 14:56:06 -07:00
checktree
cleanbuild.mk
cleanspec.mk
clear_vars.mk Implement android_app_set module. 2020-05-14 19:06:28 -07:00
config.mk Add build support for LZ4 ramdisks 2020-05-27 23:44:33 +00:00
config_sanitizers.mk Remove AUX support 2020-04-18 21:00:18 -07:00
configure_module_stem.mk
construct_context.sh Provide library path to android.test.base for dexpreopt. 2020-06-01 12:29:27 +01: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 Remove unused check-api rule 2020-06-02 17:01:52 +00:00
deprecation.mk Obsolete unused module types 2020-04-18 21:00:18 -07: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 Provide library path to android.test.base for dexpreopt. 2020-06-01 12:29:27 +01:00
distdir.mk
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 "Move core-icu4j into i18n APEX" Attempt 2 2020-05-05 19:16:30 +01: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 Access ALL_MODULES subvars with my_register_name 2020-05-14 04:08:42 +00:00
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
header_library_internal.mk
host_dalvik_java_library.mk Use soong_zip instead of jar to generate .jar files in javac actions 2020-04-16 18:23:32 -07:00
host_dalvik_static_java_library.mk
host_executable.mk
host_executable_internal.mk Add dependencies on the toolchain (clang, etc) 2019-06-12 21:34:52 +00:00
host_java_library.mk Use soong_zip instead of jar to generate .jar files in javac actions 2020-04-16 18:23:32 -07:00
host_java_library_common.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
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
install_jni_libs.mk Rename product_services to system_ext 2019-07-09 08:57:19 +00:00
install_jni_libs_internal.mk Merge "Access ALL_MODULES subvars with my_register_name" 2020-05-18 03:41:23 +00:00
instrumentation_test_config_template.xml Update auto-gen test config template with PARAMETERIZED_STRINGS 2020-05-15 11:43:43 +08:00
jacoco.mk
java.mk Access ALL_MODULES subvars with my_register_name 2020-05-14 04:08:42 +00:00
java_common.mk Allow recording ALL_DEPS by setting RECORD_ALL_DEPS 2020-04-27 18:28:10 +00: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 Use two-column format for PRODUCT_BOOT_JARS components. 2020-04-30 17:16:29 +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 rename libvixl to libvixl.com.android.art.debug 2020-05-06 17:48:10 +09:00
link_type.mk Remove AUX support 2020-04-18 21:00:18 -07:00
local_systemsdk.mk Exempt RRO from the restriction on API level 2020-04-27 22:36:21 +09:00
local_vndk.mk Restore "Linktype check for native:product" 2020-01-22 00:16:25 +00:00
main.mk Refactor *-select-bitness-of-required-modules 2020-06-03 18:27:20 +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
multi_prebuilt.mk
multilib.mk
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 Delete deps-license target. 2020-05-21 07:11:55 -07:00
node_fns.mk Add support for single-value product variables 2019-05-06 16:17:20 +01:00
notice_files.mk Revert "Revert "Use sdk variant of Soong modules when LOCAL_SDK_..." 2020-04-07 16:50:32 +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 Access ALL_MODULES subvars with my_register_name 2020-05-14 04:08:42 +00:00
pathmap.mk Fix up recovery_text_res 2020-05-27 19:37:03 -07:00
pdk_config.mk Replace framework.jar with framework-minus-apex.jar 2019-10-28 09:55:33 +00:00
pdk_fusion_modules.mk
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 Check module existence with ALL_MODULES subvars 2020-05-20 16:02:07 +00:00
product_config.mk Use two-column format for PRODUCT_BOOT_JARS components. 2020-04-30 17:16:29 +01: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
rbe.mk Add RBE_CXX_COMPARE variable to locally disable compare mode for C++ 2020-05-26 11:57:02 -07: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
soong_android_app_set.mk Do not fail if unzip found no files to extract 2020-05-20 04:58:01 +00:00
soong_app_prebuilt.mk Access ALL_MODULES subvars with my_register_name 2020-05-14 04:08:42 +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 Merge "Remove TARGET_PROJECT[_SYSTEM]_INCLUDES" 2020-05-04 23:25:20 +00:00
soong_droiddoc_prebuilt.mk Remove _API_FILE variables 2020-04-17 20:27:41 +01:00
soong_java_prebuilt.mk Access ALL_MODULES subvars with my_register_name 2020-05-14 04:08:42 +00:00
soong_rust_prebuilt.mk Add support for Rust coverage files from Soong. 2020-04-24 16:29:17 -04:00
static_java_library.mk Access ALL_MODULES subvars with my_register_name 2020-05-14 04:08:42 +00: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
suite_host_config.mk Generalize vts config module for other Suites 2019-10-18 18:28:23 +00:00
support_libraries.mk
sysprop.mk Drop the dependency from vendor/build.prop to system/build.prop 2020-05-27 12:52:44 +09:00
target_test_internal.mk Eliminate ENABLE_DEFAULT_TEST_LOCATION as it is always true 2019-03-25 13:26:03 -07:00
use_lld_setup.mk
verify_uses_libraries.sh
version_defaults.mk Merge android10-qpr2-s3-release to aosp/master - DO NOT MERGE 2020-05-05 20:47:21 +00:00