Kbuild.include: add function for unquoting strings

Useful for extracting values from CONFIG_* variables which are always
quoted.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2017-05-17 10:02:05 -07:00 committed by Anas Nashif
commit 074b806f07

View file

@ -29,6 +29,11 @@ baseprereq = $(basename $(notdir $<))
# Escape single quote for use in echo statements
escsq = $(subst $(squote),'\$(squote)',$1)
###
# Transform quoted string into a normal one
unquote = $(subst $\",,$(1))
###
# Easy method for doing a status message
kecho := :