Fix unused src tracking for generated .o files

*.o files that are passed in via LOCAL_GENERATED_SOURCES are added
directly to all_objects, they are not mixed with the normal_objects that
we track. So omit them from they my_gen_src_files list so that we don't
warn that they're unused.

Change-Id: I94b85504032e70fbcc00207d6200557700dd0a89
This commit is contained in:
Dan Willemsen 2016-02-04 14:18:48 -08:00
parent 042d589fa2
commit 444c323bc1
1 changed files with 1 additions and 1 deletions

View File

@ -526,7 +526,7 @@ my_generated_sources := $(patsubst $(generated_sources_dir)/%,$(intermediates)/%
# Other files (like headers) are allowed in LOCAL_GENERATED_SOURCES,
# since other compiled sources may depend on them, and we set up
# the dependencies.
my_gen_src_files := $(filter %.c %$(LOCAL_CPP_EXTENSION) %.S %.s %.o,$(my_generated_sources))
my_gen_src_files := $(filter %.c %$(LOCAL_CPP_EXTENSION) %.S %.s,$(my_generated_sources))
ALL_GENERATED_SOURCES += $(my_generated_sources)