From: Jiri Olsa Date: Thu, 3 Jan 2019 16:13:50 +0000 (+0100) Subject: tools iio: Override CFLAGS assignments X-Git-Tag: v5.4-rc1~1811^2~2^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=536cdb684d2d5139708d290b9dc124b1420886c1;p=platform%2Fkernel%2Flinux-rpi.git tools iio: Override CFLAGS assignments So user could specify outside CFLAGS values. Signed-off-by: Jiri Olsa Cc: Alexander Shishkin Cc: Andy Shevchenko Cc: Hartmut Knaack Cc: Jonathan Cameron Cc: Lars-Peter Clausen Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/20190103161350.11446-3-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/tools/iio/Makefile b/tools/iio/Makefile index 332ed2f6..e22378d 100644 --- a/tools/iio/Makefile +++ b/tools/iio/Makefile @@ -12,7 +12,7 @@ endif # (this improves performance and avoids hard-to-debug behaviour); MAKEFLAGS += -r -CFLAGS += -O2 -Wall -g -D_GNU_SOURCE -I$(OUTPUT)include +override CFLAGS += -O2 -Wall -g -D_GNU_SOURCE -I$(OUTPUT)include ALL_TARGETS := iio_event_monitor lsiio iio_generic_buffer ALL_PROGRAMS := $(patsubst %,$(OUTPUT)%,$(ALL_TARGETS))