From 892ee55f71cdbbe0d8a471dcc0758cf9620b9944 Mon Sep 17 00:00:00 2001 From: Drew Richardson Date: Thu, 7 Aug 2014 10:05:00 -0700 Subject: 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 --- driver/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 \ -- cgit v1.2.3