aboutsummaryrefslogtreecommitdiff
path: root/drivers/gator/Makefile
diff options
context:
space:
mode:
authorKevin Hilman <khilman@linaro.org>2015-05-12 15:35:14 -0700
committerKevin Hilman <khilman@linaro.org>2015-05-12 15:35:14 -0700
commit106f1ce29f1fa7ad18e47823789c176df57d75ee (patch)
tree44f6a51ff81fefba6834383dc2bcb45aa4ebe60e /drivers/gator/Makefile
parent1f8fdf83fe376cc83e96e942689a6cfac01e9634 (diff)
parent0ed41f1a9564c0733ad155b742ac66fb41d2f9d3 (diff)
downloadlinux-linaro-stable-106f1ce29f1fa7ad18e47823789c176df57d75ee.tar.gz
Merge branch 'v3.10/topic/gator' into linux-linaro-lsk-v3.10
* v3.10/topic/gator: gator: Enable multiple source copies to exist in Android build environments gator: Add config for building the module in-tree gator: Version 5.21.1
Diffstat (limited to 'drivers/gator/Makefile')
-rw-r--r--drivers/gator/Makefile18
1 files changed, 17 insertions, 1 deletions
diff --git a/drivers/gator/Makefile b/drivers/gator/Makefile
index 28d2070b11d5..d14e2a02fee0 100644
--- a/drivers/gator/Makefile
+++ b/drivers/gator/Makefile
@@ -63,6 +63,22 @@ gator-$(CONFIG_ARM) += gator_events_armv6.o \
gator-$(CONFIG_ARM64) +=
+$(obj)/gator_main.o: $(obj)/gator_src_md5.h
+
+clean-files := gator_src_md5.h
+
+# Note, in the recipe below we use "cd $(srctree) && cd $(src)" rather than
+# "cd $(srctree)/$(src)" because under DKMS $(src) is an absolute path, and we
+# can't just use $(src) because for normal kernel builds this is relative to
+# $(srctree)
+
+ chk_events.h = :
+ quiet_chk_events.h = echo ' CHK $@'
+silent_chk_events.h = :
+$(obj)/gator_src_md5.h: FORCE
+ @$($(quiet)chk_events.h)
+ $(Q)cd $(srctree) && cd $(src) ; $(CONFIG_SHELL) -c "echo 'static char *gator_src_md5 = \"'\`ls *.c *.h mali/*.h | grep -Ev '^(gator_src_md5\.c|gator\.mod\.c)$$' | LC_ALL=C sort | xargs cat | md5sum | cut -b 1-32\`'\";'" > $(abspath $@)
+
else
all:
@@ -73,7 +89,7 @@ all:
$(error)
clean:
- rm -f *.o .*.cmd modules.order Module.symvers gator.ko gator.mod.c
+ rm -f *.o .*.cmd gator_src_md5.h modules.order Module.symvers gator.ko gator.mod.c
rm -rf .tmp_versions
endif