cm: CM-specific build macros

* vendor/*/build/core/definitions.mk is automatically sourced by the
   build system to load custom macros. Start using this for some
   of our own.
 * Adds a "uniq" macro to remove duplicates from a list without changing
   it's order.

Change-Id: Id5f1eb4b9f81bb31ca0b3d5e74c298b3d105da10
This commit is contained in:
Steve Kondik 2015-04-05 10:59:21 -04:00 committed by Steve Kondik
parent da87a7db23
commit ffe07b85eb
1 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1,6 @@
#
# CM-specific macros
#
define uniq
$(if $1,$(firstword $1) $(call uniq,$(filter-out $(firstword $1),$1)))
endef