diff options
author | Colin Cross <ccross@android.com> | 2015-09-28 19:25:15 -0700 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2015-09-28 19:25:15 -0700 |
commit | 6dcda02e4c51fc882742debdc70f03b360c7dc86 (patch) | |
tree | a14b6df2e5e62be98754b7dbfbe732b58123226b /core | |
parent | 00b3248839205674b692a7464bd6df5777b81e83 (diff) | |
parent | 5acaa9dca07141f8123858fc76ce850b4dbbc813 (diff) | |
download | platform_build-6dcda02e4c51fc882742debdc70f03b360c7dc86.tar.gz platform_build-6dcda02e4c51fc882742debdc70f03b360c7dc86.tar.bz2 platform_build-6dcda02e4c51fc882742debdc70f03b360c7dc86.zip |
resolved conflicts for 5acaa9dc to master
Change-Id: Idbadd1127e9524b6ecb571cdc7338d106ca2be3f
Diffstat (limited to 'core')
-rw-r--r-- | core/base_rules.mk | 10 | ||||
-rw-r--r-- | core/binary.mk | 6 | ||||
-rw-r--r-- | core/definitions.mk | 1 | ||||
-rw-r--r-- | core/droiddoc.mk | 2 | ||||
-rw-r--r-- | core/executable_prefer_symlink.mk | 2 | ||||
-rw-r--r-- | core/host_dalvik_java_library.mk | 6 | ||||
-rw-r--r-- | core/host_dalvik_static_java_library.mk | 2 | ||||
-rw-r--r-- | core/host_java_library.mk | 2 | ||||
-rw-r--r-- | core/host_shared_library_internal.mk | 2 | ||||
-rw-r--r-- | core/java.mk | 6 | ||||
-rw-r--r-- | core/phony_package.mk | 2 | ||||
-rw-r--r-- | core/prebuilt_internal.mk | 6 | ||||
-rw-r--r-- | core/shared_library_internal.mk | 2 |
13 files changed, 30 insertions, 19 deletions
diff --git a/core/base_rules.mk b/core/base_rules.mk index 911782efa4..6c94dc1ba1 100644 --- a/core/base_rules.mk +++ b/core/base_rules.mk @@ -56,6 +56,16 @@ ifeq ($(my_host_cross),true) my_module_tags := endif +ifdef BUILDING_WITH_NINJA +# Ninja has an implicit dependency on the command being run, and kati will +# regenerate the ninja manifest if any read makefile changes, so there is no +# need to have dependencies on makefiles. +# This won't catch all the cases where LOCAL_ADDITIONAL_DEPENDENCIES contains +# a .mk file, because a few users of LOCAL_ADDITIONAL_DEPENDENCIES don't include +# base_rules.mk, but it will fix the most common ones. +LOCAL_ADDITIONAL_DEPENDENCIES := $(filter-out %.mk,$(LOCAL_ADDITIONAL_DEPENDENCIES)) +endif + ########################################################### ## Validate and define fallbacks for input LOCAL_* variables. ########################################################### diff --git a/core/binary.mk b/core/binary.mk index e37ae67555..53d2cfaa2e 100644 --- a/core/binary.mk +++ b/core/binary.mk @@ -52,7 +52,7 @@ my_cxx_wrapper := $(CXX_WRAPPER) my_c_includes := $(LOCAL_C_INCLUDES) my_generated_sources := $(LOCAL_GENERATED_SOURCES) my_native_coverage := $(LOCAL_NATIVE_COVERAGE) -my_additional_dependencies := $(LOCAL_MODULE_MAKEFILE) $(LOCAL_ADDITIONAL_DEPENDENCIES) +my_additional_dependencies := $(LOCAL_MODULE_MAKEFILE_DEP) $(LOCAL_ADDITIONAL_DEPENDENCIES) my_export_c_include_dirs := $(LOCAL_EXPORT_C_INCLUDE_DIRS) ifdef LOCAL_IS_HOST_MODULE @@ -1031,7 +1031,7 @@ import_includes_deps := $(strip \ $(foreach l, $(my_static_libraries) $(my_whole_static_libraries), \ $(call intermediates-dir-for,STATIC_LIBRARIES,$(l),$(LOCAL_IS_HOST_MODULE),,$(LOCAL_2ND_ARCH_VAR_PREFIX),$(my_host_cross))/export_includes)) $(import_includes): PRIVATE_IMPORT_EXPORT_INCLUDES := $(import_includes_deps) -$(import_includes) : $(LOCAL_MODULE_MAKEFILE) $(import_includes_deps) +$(import_includes) : $(LOCAL_MODULE_MAKEFILE_DEP) $(import_includes_deps) @echo Import includes file: $@ $(hide) mkdir -p $(dir $@) && rm -f $@ ifdef import_includes_deps @@ -1239,7 +1239,7 @@ $(LOCAL_INSTALLED_MODULE): | $(installed_static_library_notice_file_targets) export_includes := $(intermediates)/export_includes $(export_includes): PRIVATE_EXPORT_C_INCLUDE_DIRS := $(my_export_c_include_dirs) # Make sure .pb.h are already generated before any dependent source files get compiled. -$(export_includes) : $(LOCAL_MODULE_MAKEFILE) $(proto_generated_headers) $(dbus_generated_headers) +$(export_includes) : $(LOCAL_MODULE_MAKEFILE_DEP) $(proto_generated_headers) $(dbus_generated_headers) @echo Export includes file: $< -- $@ $(hide) mkdir -p $(dir $@) && rm -f $@ ifdef my_export_c_include_dirs diff --git a/core/definitions.mk b/core/definitions.mk index ec58764020..a3352ed6bc 100644 --- a/core/definitions.mk +++ b/core/definitions.mk @@ -132,6 +132,7 @@ endef define my-dir $(strip \ $(eval LOCAL_MODULE_MAKEFILE := $$(lastword $$(MAKEFILE_LIST))) \ + $(eval LOCAL_MODULE_MAKEFILE_DEP := $(if $(BUILDING_WITH_NINJA),,$$(LOCAL_MODULE_MAKEFILE))) \ $(if $(filter $(BUILD_SYSTEM)/% $(OUT_DIR)/%,$(LOCAL_MODULE_MAKEFILE)), \ $(error my-dir must be called before including any other makefile.) \ , \ diff --git a/core/droiddoc.mk b/core/droiddoc.mk index 0d174b1c0a..e91984722b 100644 --- a/core/droiddoc.mk +++ b/core/droiddoc.mk @@ -162,7 +162,7 @@ $(full_target): \ $(droiddoc) \ $(html_dir_files) \ $(full_java_lib_deps) \ - $(LOCAL_MODULE_MAKEFILE) \ + $(LOCAL_MODULE_MAKEFILE_DEP) \ $(LOCAL_ADDITIONAL_DEPENDENCIES) @echo Docs droiddoc: $(PRIVATE_OUT_DIR) $(hide) mkdir -p $(dir $@) diff --git a/core/executable_prefer_symlink.mk b/core/executable_prefer_symlink.mk index fc97ad310e..931550f4f7 100644 --- a/core/executable_prefer_symlink.mk +++ b/core/executable_prefer_symlink.mk @@ -42,7 +42,7 @@ endif # $(my_symlink) doesn't need to depend on $(PRIVATE_SRC_BINARY_NAME): we can generate symlink to nonexistent file. # If you add the dependency, make would compare the timestamp of a file against that of its symlink: # they are always equal, because make follows symlink. -$(my_symlink): $(LOCAL_MODULE_MAKEFILE) +$(my_symlink): $(LOCAL_MODULE_MAKEFILE_DEP) @echo "Symlink: $@ -> $(PRIVATE_SRC_BINARY_NAME)" @mkdir -p $(dir $@) @rm -rf $@ diff --git a/core/host_dalvik_java_library.mk b/core/host_dalvik_java_library.mk index 2f769f21ee..8ba657c8dc 100644 --- a/core/host_dalvik_java_library.mk +++ b/core/host_dalvik_java_library.mk @@ -75,7 +75,7 @@ $(full_classes_compiled_jar): \ $(full_java_lib_deps) \ $(jar_manifest_file) \ $(proto_java_sources_file_stamp) \ - $(LOCAL_MODULE_MAKEFILE) \ + $(LOCAL_MODULE_MAKEFILE_DEP) \ $(LOCAL_ADDITIONAL_DEPENDENCIES) $(transform-host-java-to-package) @@ -124,8 +124,8 @@ endif $(built_dex): PRIVATE_CLASSES_JACK := $(full_classes_jack) $(built_dex): PRIVATE_JACK_FLAGS := $(GLOBAL_JAVAC_DEBUG_FLAGS) $(LOCAL_JACK_FLAGS) $(built_dex): $(java_sources) $(java_resource_sources) $(full_jack_lib_deps) \ - $(jar_manifest_file) $(proto_java_sources_file_stamp) $(LOCAL_MODULE_MAKEFILE) \ - $(LOCAL_MODULE_MAKEFILE) $(LOCAL_ADDITIONAL_DEPENDENCIES) $(JACK) + $(jar_manifest_file) $(proto_java_sources_file_stamp) $(LOCAL_MODULE_MAKEFILE_DEP) \ + $(LOCAL_ADDITIONAL_DEPENDENCIES) $(JACK) @echo Building with Jack: $@ $(jack-java-to-dex) diff --git a/core/host_dalvik_static_java_library.mk b/core/host_dalvik_static_java_library.mk index 0914c3ed87..6c2ddb5b5d 100644 --- a/core/host_dalvik_static_java_library.mk +++ b/core/host_dalvik_static_java_library.mk @@ -46,7 +46,7 @@ $(full_classes_jack): \ PRIVATE_JACK_INCREMENTAL_DIR := endif $(full_classes_jack): $(java_sources) $(java_resource_sources) $(full_jack_lib_deps) \ - $(jar_manifest_file) $(layers_file) $(LOCAL_MODULE_MAKEFILE) \ + $(jar_manifest_file) $(layers_file) $(LOCAL_MODULE_MAKEFILE_DEP) \ $(LOCAL_ADDITIONAL_DEPENDENCIES) $(LOCAL_JARJAR_RULES) \ $(JACK) @echo Building with Jack: $@ diff --git a/core/host_java_library.mk b/core/host_java_library.mk index 0a1119ff67..052c571b10 100644 --- a/core/host_java_library.mk +++ b/core/host_java_library.mk @@ -88,6 +88,6 @@ $(full_classes_compiled_jar): \ $(full_java_lib_deps) \ $(jar_manifest_file) \ $(proto_java_sources_file_stamp) \ - $(LOCAL_MODULE_MAKEFILE) \ + $(LOCAL_MODULE_MAKEFILE_DEP) \ $(LOCAL_ADDITIONAL_DEPENDENCIES) $(transform-host-java-to-package) diff --git a/core/host_shared_library_internal.mk b/core/host_shared_library_internal.mk index 740c9414cb..272e76f439 100644 --- a/core/host_shared_library_internal.mk +++ b/core/host_shared_library_internal.mk @@ -44,7 +44,7 @@ $(LOCAL_BUILD_MODULE): PRIVATE_HOST_LIBPROFILE_RT := $(my_host_libprofile_rt) $(LOCAL_BUILT_MODULE): \ $(all_objects) \ $(all_libraries) \ - $(LOCAL_MODULE_MAKEFILE) \ + $(LOCAL_MODULE_MAKEFILE_DEP) \ $(LOCAL_ADDITIONAL_DEPENDENCIES) $(transform-host-o-to-shared-lib) diff --git a/core/java.mk b/core/java.mk index 51b42f7ac9..2cf42cb800 100644 --- a/core/java.mk +++ b/core/java.mk @@ -304,7 +304,7 @@ $(aidl_java_sources): PRIVATE_AIDL_FLAGS := -b $(addprefix -p,$(aidl_preprocess_ $(aidl_java_sources): $(intermediates.COMMON)/src/%.java: \ $(LOCAL_PATH)/%.aidl \ - $(LOCAL_MODULE_MAKEFILE) \ + $(LOCAL_MODULE_MAKEFILE_DEP) \ $(LOCAL_ADDITIONAL_DEPENDENCIES) \ $(AIDL) \ $(aidl_preprocess_import) @@ -412,7 +412,7 @@ $(full_classes_compiled_jar): \ $(layers_file) \ $(RenderScript_file_stamp) \ $(proto_java_sources_file_stamp) \ - $(LOCAL_MODULE_MAKEFILE) \ + $(LOCAL_MODULE_MAKEFILE_DEP) \ $(LOCAL_ADDITIONAL_DEPENDENCIES) $(transform-java-to-classes.jar) @@ -648,7 +648,7 @@ $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_JACK_FLAGS := $(GLOBAL_JAVAC_DEBUG_FLAGS) jack_all_deps := $(java_sources) $(java_resource_sources) $(full_jack_lib_deps) \ $(jar_manifest_file) $(layers_file) $(RenderScript_file_stamp) $(proguard_flag_files) \ $(proto_java_sources_file_stamp) $(LOCAL_ADDITIONAL_DEPENDENCIES) $(LOCAL_JARJAR_RULES) \ - $(LOCAL_MODULE_MAKEFILE) $(JACK) + $(LOCAL_MODULE_MAKEFILE_DEP) $(JACK) ifeq ($(LOCAL_IS_STATIC_JAVA_LIBRARY),true) $(full_classes_jack): $(jack_all_deps) diff --git a/core/phony_package.mk b/core/phony_package.mk index 30e198c65e..866b13c8e3 100644 --- a/core/phony_package.mk +++ b/core/phony_package.mk @@ -7,7 +7,7 @@ LOCAL_MODULE_SUFFIX := -timestamp include $(BUILD_SYSTEM)/base_rules.mk -$(LOCAL_BUILT_MODULE): $(LOCAL_MODULE_MAKEFILE) $(LOCAL_ADDITIONAL_DEPENDENCIES) +$(LOCAL_BUILT_MODULE): $(LOCAL_MODULE_MAKEFILE_DEP) $(LOCAL_ADDITIONAL_DEPENDENCIES) $(hide) echo "Fake: $@" $(hide) mkdir -p $(dir $@) $(hide) touch $@ diff --git a/core/prebuilt_internal.mk b/core/prebuilt_internal.mk index aeca89ef67..505bd45de2 100644 --- a/core/prebuilt_internal.mk +++ b/core/prebuilt_internal.mk @@ -88,7 +88,7 @@ else # LOCAL_STRIP_MODULE and LOCAL_PACK_MODULE_RELOCATIONS not true ifdef prebuilt_module_is_a_library export_includes := $(intermediates)/export_includes $(export_includes): PRIVATE_EXPORT_C_INCLUDE_DIRS := $(LOCAL_EXPORT_C_INCLUDE_DIRS) -$(export_includes) : $(LOCAL_MODULE_MAKEFILE) +$(export_includes) : $(LOCAL_MODULE_MAKEFILE_DEP) @echo Export includes file: $< -- $@ $(hide) mkdir -p $(dir $@) && rm -f $@ ifdef LOCAL_EXPORT_C_INCLUDE_DIRS @@ -312,12 +312,12 @@ endif # TARGET JAVA_LIBRARIES ifeq ($(LOCAL_MODULE_CLASS),JAVA_LIBRARIES) $(intermediates.COMMON)/classes.jack : PRIVATE_JILL_FLAGS:=$(LOCAL_JILL_FLAGS) -$(intermediates.COMMON)/classes.jack : $(my_src_jar) $(LOCAL_MODULE_MAKEFILE) \ +$(intermediates.COMMON)/classes.jack : $(my_src_jar) $(LOCAL_MODULE_MAKEFILE_DEP) \ $(LOCAL_ADDITIONAL_DEPENDENCIES) $(JILL_JAR) $(JACK) $(transform-jar-to-jack) endif # JAVA_LIBRARIES -$(built_module) : $(LOCAL_MODULE_MAKEFILE) $(LOCAL_ADDITIONAL_DEPENDENCIES) +$(built_module) : $(LOCAL_MODULE_MAKEFILE_DEP) $(LOCAL_ADDITIONAL_DEPENDENCIES) my_prebuilt_src_file := diff --git a/core/shared_library_internal.mk b/core/shared_library_internal.mk index 1507502613..075bd02aad 100644 --- a/core/shared_library_internal.mk +++ b/core/shared_library_internal.mk @@ -80,7 +80,7 @@ $(linked_module): \ $(all_libraries) \ $(my_target_crtbegin_so_o) \ $(my_target_crtend_so_o) \ - $(LOCAL_MODULE_MAKEFILE) \ + $(LOCAL_MODULE_MAKEFILE_DEP) \ $(LOCAL_ADDITIONAL_DEPENDENCIES) $(transform-o-to-shared-lib) |