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:
parent
da87a7db23
commit
ffe07b85eb
6
build/core/definitions.mk
Normal file
6
build/core/definitions.mk
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
#
|
||||||
|
# CM-specific macros
|
||||||
|
#
|
||||||
|
define uniq
|
||||||
|
$(if $1,$(firstword $1) $(call uniq,$(filter-out $(firstword $1),$1)))
|
||||||
|
endef
|
Loading…
Reference in New Issue
Block a user