diff options
author | 2023-11-02 09:55:26 -0700 | |
---|---|---|
committer | 2023-11-02 10:10:36 -0700 | |
commit | 34fe77a493e01f8c13b27a3aa2891fb51d418092 (patch) | |
tree | 5cb185924bb328d98cb73cd9574ac252cc7a64e6 | |
parent | aed37d79f2cf7870112bad87729e1b1aef13478b (diff) |
Removed unused license code
Nothing ever reads ALL_DEPS.*.LICENSE, and its an ever-growing list
that is sorted every time, which is extremely expensive.
notice_target is never set after I4cddf9a381a1258bdc2b1b42be72c447df10d234,
remove all the related code.
Test: no change to out/build-aosp_cf_x86_64_phone.ninja
Change-Id: I0fa6a46e62ef8aa78873b43d3064b57b1c54de51
-rw-r--r-- | core/base_rules.mk | 3 | ||||
-rw-r--r-- | core/binary.mk | 11 | ||||
-rw-r--r-- | core/java_common.mk | 10 | ||||
-rw-r--r-- | core/soong_cc_rust_prebuilt.mk | 24 |
4 files changed, 0 insertions, 48 deletions
diff --git a/core/base_rules.mk b/core/base_rules.mk index 8d0e575668..f96504acdb 100644 --- a/core/base_rules.mk +++ b/core/base_rules.mk @@ -1172,9 +1172,6 @@ ALL_DEPS.$(LOCAL_MODULE).ALL_DEPS := $(sort \ $(LOCAL_JAVA_LIBRARIES) \ $(LOCAL_JNI_SHARED_LIBRARIES)) -license_files := $(call find-parent-file,$(LOCAL_PATH),MODULE_LICENSE*) -ALL_DEPS.$(LOCAL_MODULE).LICENSE := $(sort $(ALL_DEPS.$(LOCAL_MODULE).LICENSE) $(license_files)) - ########################################################### ## umbrella targets used to verify builds ########################################################### diff --git a/core/binary.mk b/core/binary.mk index e2e5be47fa..6d73f9e0a4 100644 --- a/core/binary.mk +++ b/core/binary.mk @@ -1437,17 +1437,6 @@ built_whole_libraries := \ $(call intermediates-dir-for, \ STATIC_LIBRARIES,$(lib),$(my_kind),,$(LOCAL_2ND_ARCH_VAR_PREFIX),$(my_host_cross))/$(lib)$(a_suffix)) -# We don't care about installed static libraries, since the -# libraries have already been linked into the module at that point. -# We do, however, care about the NOTICE files for any static -# libraries that we use. (see notice_files.mk) -installed_static_library_notice_file_targets := \ - $(foreach lib,$(my_static_libraries) $(my_whole_static_libraries), \ - NOTICE-$(if $(LOCAL_IS_HOST_MODULE),HOST$(if $(my_host_cross),_CROSS,),TARGET)-STATIC_LIBRARIES-$(lib)) - -$(notice_target): | $(installed_static_library_notice_file_targets) -$(LOCAL_INSTALLED_MODULE): | $(notice_target) - # Default is -fno-rtti. ifeq ($(strip $(LOCAL_RTTI_FLAG)),) LOCAL_RTTI_FLAG := -fno-rtti diff --git a/core/java_common.mk b/core/java_common.mk index a5ed057993..0ae0346cf4 100644 --- a/core/java_common.mk +++ b/core/java_common.mk @@ -496,16 +496,6 @@ ALL_MODULES.$(my_register_name).INTERMEDIATE_SOURCE_DIR := \ $(ALL_MODULES.$(my_register_name).INTERMEDIATE_SOURCE_DIR) $(LOCAL_INTERMEDIATE_SOURCE_DIR) -########################################################## -# Copy NOTICE files of transitive static dependencies -# Don't do this in mm, since many of the targets won't exist. -installed_static_library_notice_file_targets := \ - $(foreach lib,$(LOCAL_STATIC_JAVA_LIBRARIES), \ - NOTICE-$(if $(LOCAL_IS_HOST_MODULE),HOST$(if $(my_host_cross),_CROSS,),TARGET)-JAVA_LIBRARIES-$(lib)) - -$(notice_target): | $(installed_static_library_notice_file_targets) -$(LOCAL_INSTALLED_MODULE): | $(notice_target) - ########################################################### # Verify that all libraries are safe to use ########################################################### diff --git a/core/soong_cc_rust_prebuilt.mk b/core/soong_cc_rust_prebuilt.mk index 05b4b6b596..143931bba7 100644 --- a/core/soong_cc_rust_prebuilt.mk +++ b/core/soong_cc_rust_prebuilt.mk @@ -251,30 +251,6 @@ endif $(LOCAL_BUILT_MODULE): $(LOCAL_ADDITIONAL_DEPENDENCIES) -# We don't care about installed rlib/static libraries, since the libraries have -# already been linked into the module at that point. We do, however, care -# about the NOTICE files for any rlib/static libraries that we use. -# (see notice_files.mk) -# -# Filter out some NDK libraries that are not being exported. -my_static_libraries := \ - $(filter-out ndk_libc++_static ndk_libc++abi ndk_libandroid_support ndk_libunwind \ - ndk_libc++_static.native_bridge ndk_libc++abi.native_bridge \ - ndk_libandroid_support.native_bridge ndk_libunwind.native_bridge, \ - $(LOCAL_STATIC_LIBRARIES)) -installed_static_library_notice_file_targets := \ - $(foreach lib,$(my_static_libraries) $(LOCAL_WHOLE_STATIC_LIBRARIES), \ - NOTICE-$(if $(LOCAL_IS_HOST_MODULE),HOST$(if $(my_host_cross),_CROSS,),TARGET)-STATIC_LIBRARIES-$(lib)) -installed_static_library_notice_file_targets += \ - $(foreach lib,$(LOCAL_RLIB_LIBRARIES), \ - NOTICE-$(if $(LOCAL_IS_HOST_MODULE),HOST$(if $(my_host_cross),_CROSS,),TARGET)-RLIB_LIBRARIES-$(lib)) -installed_static_library_notice_file_targets += \ - $(foreach lib,$(LOCAL_PROC_MACRO_LIBRARIES), \ - NOTICE-$(if $(LOCAL_IS_HOST_MODULE),HOST$(if $(my_host_cross),_CROSS,),TARGET)-PROC_MACRO_LIBRARIES-$(lib)) - -$(notice_target): | $(installed_static_library_notice_file_targets) -$(LOCAL_INSTALLED_MODULE): | $(notice_target) - # Reinstall shared library dependencies of fuzz targets to /data/fuzz/ (for # target) or /data/ (for host). ifdef LOCAL_IS_FUZZ_TARGET |