OSDN Git Service

Fix "make product-graph" and "make dump-products".
authorYing Wang <wangying@google.com>
Wed, 28 Oct 2015 23:42:39 +0000 (16:42 -0700)
committerYing Wang <wangying@google.com>
Wed, 28 Oct 2015 23:49:44 +0000 (16:49 -0700)
commit67132baa4d11917030c5156f507a50110c4cd935
treecaa89a87c2457855e9111b13ff76d0e91c0c8f45
parentdda5e96b144c15a75d625ceac7e92b50cf9c363a
Fix "make product-graph" and "make dump-products".

- For unmodified "make product-graph" and "make dump-products",
  load only the current product configuration makefiles. This is much
  faster than loading all product makefiles.
- For "make product-graph ANDROID_PRODUCT_GRAPH=--all",
  "make dump-products ANDROID_DUMP_PRODUCTS=all", load all product
  makefiles.
- Move product-graph.mk out of build tasks, so we can skip loading all
  the Android.mks, which takes long and we don't really need them.
  More importantly, with all product makefiles loaded, modules in
  Android.mks are prone to clash (if they are conditionally included
  by variables set up in product makefiles) and lead to parse-time
  error.

Change-Id: Idc1d6b0c23eb2c8bb34fdd7a1fa4d56171768d21
core/Makefile
core/main.mk
core/product-graph.mk [moved from core/tasks/product-graph.mk with 99% similarity]
core/product_config.mk