diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2017-03-22 02:28:03 +0100 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-03-22 02:28:04 +0100 |
commit | 6d0262218a712afe48d836b9ebf5ae0a2148aa10 (patch) | |
tree | 37243c939163c3cd259fbd1bfe917be78da74e9a | |
parent | Merge "verify_file: Add constness to a few addresses." (diff) | |
parent | Fix updater include generation w/installclean (diff) | |
download | android_bootable_recovery-6d0262218a712afe48d836b9ebf5ae0a2148aa10.tar android_bootable_recovery-6d0262218a712afe48d836b9ebf5ae0a2148aa10.tar.gz android_bootable_recovery-6d0262218a712afe48d836b9ebf5ae0a2148aa10.tar.bz2 android_bootable_recovery-6d0262218a712afe48d836b9ebf5ae0a2148aa10.tar.lz android_bootable_recovery-6d0262218a712afe48d836b9ebf5ae0a2148aa10.tar.xz android_bootable_recovery-6d0262218a712afe48d836b9ebf5ae0a2148aa10.tar.zst android_bootable_recovery-6d0262218a712afe48d836b9ebf5ae0a2148aa10.zip |
-rw-r--r-- | updater/Android.mk | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/updater/Android.mk b/updater/Android.mk index 3a47dacd5..a113fe86c 100644 --- a/updater/Android.mk +++ b/updater/Android.mk @@ -110,21 +110,11 @@ LOCAL_STATIC_LIBRARIES := \ # any subsidiary static libraries required for your registered # extension libs. -inc := $(call intermediates-dir-for,PACKAGING,updater_extensions)/register.inc - -# Encode the value of TARGET_RECOVERY_UPDATER_LIBS into the filename of the dependency. -# So if TARGET_RECOVERY_UPDATER_LIBS is changed, a new dependency file will be generated. -# Note that we have to remove any existing depency files before creating new one, -# so no obsolete dependecy file gets used if you switch back to an old value. -inc_dep_file := $(inc).dep.$(subst $(space),-,$(sort $(TARGET_RECOVERY_UPDATER_LIBS))) -$(inc_dep_file): stem := $(inc).dep -$(inc_dep_file) : - $(hide) mkdir -p $(dir $@) - $(hide) rm -f $(stem).* - $(hide) touch $@ +LOCAL_MODULE_CLASS := EXECUTABLES +inc := $(call local-generated-sources-dir)/register.inc $(inc) : libs := $(TARGET_RECOVERY_UPDATER_LIBS) -$(inc) : $(inc_dep_file) +$(inc) : $(hide) mkdir -p $(dir $@) $(hide) echo "" > $@ $(hide) $(foreach lib,$(libs),echo "extern void Register_$(lib)(void);" >> $@;) @@ -132,11 +122,9 @@ $(inc) : $(inc_dep_file) $(hide) $(foreach lib,$(libs),echo " Register_$(lib)();" >> $@;) $(hide) echo "}" >> $@ -$(call intermediates-dir-for,EXECUTABLES,updater,,,$(TARGET_PREFER_32_BIT))/updater.o : $(inc) -LOCAL_C_INCLUDES += $(dir $(inc)) +LOCAL_GENERATED_SOURCES := $(inc) inc := -inc_dep_file := LOCAL_FORCE_STATIC_EXECUTABLE := true |