aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew Richardson <drew.richardson@arm.com>2014-08-07 10:05:00 -0700
committerJon Medhurst <tixy@linaro.org>2014-08-07 18:54:00 +0100
commit892ee55f71cdbbe0d8a471dcc0758cf9620b9944 (patch)
tree3548d5698ee759855b4a1b531bbca50d4ba23554
parentbc8a84cf0b138a2951679581453da7bd93003db6 (diff)
gator: Fix error when when building out of tree
The gator driver Makefile uses a grep to see if the block_rq_complete tracepoint api change has been backported, fix it to work when building out of tree. Signed-off-by: Drew Richardson <drew.richardson@arm.com>
-rw-r--r--driver/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/driver/Makefile b/driver/Makefile
index 2f86823..0dfa315 100644
--- a/driver/Makefile
+++ b/driver/Makefile
@@ -54,7 +54,7 @@ GATOR_TEST ?= 0
EXTRA_CFLAGS += -DGATOR_TEST=$(GATOR_TEST)
# Should the original or new block_rq_complete API be used?
-OLD_BLOCK_RQ_COMPLETE := $(shell grep -A3 block_rq_complete include/trace/events/block.h | grep nr_bytes > /dev/null; echo $$?)
+OLD_BLOCK_RQ_COMPLETE := $(shell grep -A3 block_rq_complete $(srctree)/include/trace/events/block.h | grep nr_bytes -q; echo $$?)
EXTRA_CFLAGS += -DOLD_BLOCK_RQ_COMPLETE=$(OLD_BLOCK_RQ_COMPLETE)
gator-$(CONFIG_ARM) += gator_events_armv6.o \