OSDN Git Service

build speedup: Do not use shell 'find' function to look for NOTICE files.
authorDavid 'Digit' Turner <digit@android.com>
Tue, 29 Mar 2011 12:27:27 +0000 (14:27 +0200)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Wed, 3 Aug 2011 04:01:20 +0000 (12:01 +0800)
commit9df9dec3a3cea80acea2c2ab04d48aaaf962160b
treed137ff017cb2938a78a067894be1b6ac717946d8
parentd8ac6832ad2530723e36582016596ba9a3c4399b
build speedup: Do not use shell 'find' function to look for NOTICE files.

The GNU Make wildcard function can be used to look for a specific file and
is _much_ faster than invoking the find command through $(shell ...).

Since notice_files.mk is included by base_rules.mk for each and every module
in the build tree, this represents a considerable speed-up. For example, when
building the full-eng product from the AOSP tree, the no-op "make" goes from
21 seconds to 16 seconds with this patch applied.

Change-Id: Ideb1bb74d5bfbb650834fa4b6e151ff24dcd0150
core/notice_files.mk