[Buildroot] [PATCH 1/7] makefile: new qstrip make function

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Sat Sep 5 13:14:43 UTC 2009

Define a qstrip function that strips double quotes and then
whitespaces around a given string. This is a very commonly needed
thing, and having a function allows to remove a large quantity of
hand-written definitions, followed by a dummy comment to make text
editors not crazy because of the unmatching double quote.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
 Makefile |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile
index 5683484..fd272b5 100644
--- a/Makefile
+++ b/Makefile
@@ -40,6 +40,10 @@ else
+# Strip quotes and then whitespaces
+qstrip=$(strip $(subst ",,$(1)))
 # Variables for use in Make constructs

More information about the buildroot mailing list