Look for product configs in device/ in addition to vendor/

This will allow to create open-sourceable product configurations.

Change-Id: I4e73347c2095935340bfc8c3737c2adf1ef22a9c
This commit is contained in:
Jean-Baptiste Queru
2010-01-22 13:25:24 -08:00
parent f925cb322e
commit 4eb079f67f
2 changed files with 3 additions and 1 deletions

View File

@@ -118,6 +118,7 @@ include $(BUILD_SYSTEM)/envsetup.mk
board_config_mk := \
$(strip $(wildcard \
$(SRC_TARGET_DIR)/board/$(TARGET_DEVICE)/BoardConfig.mk \
device/*/$(TARGET_DEVICE)/BoardConfig.mk \
vendor/*/$(TARGET_DEVICE)/BoardConfig.mk \
))
ifeq ($(board_config_mk),)

View File

@@ -23,7 +23,8 @@
# $(call ) isn't necessary.
#
define _find-android-products-files
$(shell test -d vendor && find vendor -maxdepth 6 -name AndroidProducts.mk) \
$(shell test -d device && find device -maxdepth 6 -name AndroidProducts.mk) \
$(shell test -d vendor && find vendor -maxdepth 6 -name AndroidProducts.mk) \
$(SRC_TARGET_DIR)/product/AndroidProducts.mk
endef