Skip to content

Commit

Permalink
easy to port AICP to unoffcial devices.
Browse files Browse the repository at this point in the history
It is troublesome to create device makefile to vendor/aicp/products in each time...

Change-Id: I413cb05b9e1dc609412d222e91dea4c4431ef61d
  • Loading branch information
droidfivex committed Oct 19, 2016
1 parent 6edf41c commit 9e58724
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/product_config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,10 @@ include $(BUILD_SYSTEM)/device.mk
# A AICP build needs only the AICP product makefiles.
ifneq ($(AICP_BUILD),)
all_product_configs := $(shell ls vendor/aicp/products/${AICP_BUILD}.mk)
# easy to port AICP to unoffcial devices.
ifeq ($(strip $(all_product_configs)),)
all_product_configs := $(shell find device -path "*/${AICP_BUILD}/aicp.mk")
endif
else
ifneq ($(strip $(TARGET_BUILD_APPS)),)
# An unbundled app build needs only the core product makefiles.
Expand Down

0 comments on commit 9e58724

Please sign in to comment.