diff options
author | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2011-07-04 22:38:08 +0200 |
---|---|---|
committer | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2011-07-06 22:59:54 +0200 |
commit | 5e3252953ed841eafe26862ca8d4710c216c6bb3 (patch) | |
tree | eae0e844b8190ce29674e675e9bfa9ae11ff91d2 /mk/macros.mk | |
parent | 9e160797364275a21dcf04f8aecd3695155e73d1 (diff) | |
download | embtoolkit-5e3252953ed841eafe26862ca8d4710c216c6bb3.tar.gz embtoolkit-5e3252953ed841eafe26862ca8d4710c216c6bb3.tar.bz2 embtoolkit-5e3252953ed841eafe26862ca8d4710c216c6bb3.tar.xz |
Build system: generic macros: add internal strings comparison macro
cherry-pick-from: embtk-0.1.0-rc14-dev:7437654a6ab1fc8df4191cf6704ad971e0edd0ce
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
Diffstat (limited to 'mk/macros.mk')
-rw-r--r-- | mk/macros.mk | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mk/macros.mk b/mk/macros.mk index db0df3a..3297707 100644 --- a/mk/macros.mk +++ b/mk/macros.mk @@ -49,6 +49,16 @@ define embtk_echo_blue endef # +# __embtk_mk_strcmp: +# A macro for two strings comparison. It returns y if the strings are identical +# and nothing if not. +# Note: This macro strips passed parameters +# Usage: +# $(call __embtk_mk_strcmp,str1,str2) +# +__embtk_mk_strcmp=$(shell [ $(strip $(1)) = $(strip $(2)) ] && echo y) + +# # wget wrapper # usage: $(call embtk_wget,$(OUTPUT_FILE),$(SITE),$(FOREIGN_FILE)) # |