From ffe07b85ebc8613b8f93e1f3fa397c2abde064e2 Mon Sep 17 00:00:00 2001 From: Steve Kondik Date: Sun, 5 Apr 2015 10:59:21 -0400 Subject: [PATCH] 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 --- build/core/definitions.mk | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 build/core/definitions.mk diff --git a/build/core/definitions.mk b/build/core/definitions.mk new file mode 100644 index 00000000..c2c157c8 --- /dev/null +++ b/build/core/definitions.mk @@ -0,0 +1,6 @@ +# +# CM-specific macros +# +define uniq +$(if $1,$(firstword $1) $(call uniq,$(filter-out $(firstword $1),$1))) +endef