From e10a8effd088457c7e5fa1183d8432abe930542b Mon Sep 17 00:00:00 2001 From: Abdoulaye Walsimou Gaye Date: Sat, 8 Mar 2014 17:16:44 +0100 Subject: Build system: internal macros: add __embtk_strneq macro Signed-off-by: Abdoulaye Walsimou Gaye --- mk/macros.mk | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'mk') diff --git a/mk/macros.mk b/mk/macros.mk index ffe0a50..571346b 100644 --- a/mk/macros.mk +++ b/mk/macros.mk @@ -51,6 +51,16 @@ __embtk_msg_h = "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # __embtk_streq = $(if $(subst x$(1),,x$(2)),,y) +# +# __embtk_strneq: +# A macro for two strings comparison. It returns y if the strings are different +# and nothing if they are the same. +# Note: This macro strips passed parameters +# Usage: +# $(call __embtk_strneq,str1,str2) +# +__embtk_strneq = $(if $(subst x$(1),,x$(2)),y) + # # __embtk_mk_pathexist # A macro to test if a path exists. It returns y if the path exists and nothing -- cgit v1.2.3