Skip to content

Commit

Permalink
qcom_utils: allow overriding get-vendor-board-platforms
Browse files Browse the repository at this point in the history
* Some devices need this function to return something, yet also do not
  set BOARD_USES_QCOM_HARDWARE. Allow them to override this.

Change-Id: I3cf78da39b006ba805ae35fde7379357faa10250
  • Loading branch information
invisiblek authored and STELIX committed Dec 12, 2017
1 parent d9450fa commit 78fc57c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build/core/qcom_utils.mk
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,13 @@ endef
# The following utilities are meant for board platform specific
# featurisation

ifndef get-vendor-board-platforms
# $(call get-vendor-board-platforms,v)
# returns list of board platforms for vendor v
define get-vendor-board-platforms
$(if $(call match-word,$(BOARD_USES_$(1)_HARDWARE),true),$($(1)_BOARD_PLATFORMS))
endef
endif # get-vendor-board-platforms

# $(call is-board-platform,bp)
# returns true or empty
Expand Down

0 comments on commit 78fc57c

Please sign in to comment.