Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4eb079f6 authored by Jean-Baptiste Queru's avatar Jean-Baptiste Queru
Browse files

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

This will allow to create open-sourceable product configurations.

Change-Id: I4e73347c2095935340bfc8c3737c2adf1ef22a9c
parent f925cb32
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -118,6 +118,7 @@ include $(BUILD_SYSTEM)/envsetup.mk
board_config_mk := \
board_config_mk := \
	$(strip $(wildcard \
	$(strip $(wildcard \
		$(SRC_TARGET_DIR)/board/$(TARGET_DEVICE)/BoardConfig.mk \
		$(SRC_TARGET_DIR)/board/$(TARGET_DEVICE)/BoardConfig.mk \
		device/*/$(TARGET_DEVICE)/BoardConfig.mk \
		vendor/*/$(TARGET_DEVICE)/BoardConfig.mk \
		vendor/*/$(TARGET_DEVICE)/BoardConfig.mk \
	))
	))
ifeq ($(board_config_mk),)
ifeq ($(board_config_mk),)
+2 −1
Original line number Original line Diff line number Diff line
@@ -23,6 +23,7 @@
# $(call ) isn't necessary.
# $(call ) isn't necessary.
#
#
define _find-android-products-files
define _find-android-products-files
$(shell test -d device && find device -maxdepth 6 -name AndroidProducts.mk) \
  $(shell test -d vendor && find vendor -maxdepth 6 -name AndroidProducts.mk) \
  $(shell test -d vendor && find vendor -maxdepth 6 -name AndroidProducts.mk) \
  $(SRC_TARGET_DIR)/product/AndroidProducts.mk
  $(SRC_TARGET_DIR)/product/AndroidProducts.mk
endef
endef