]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/arm-ds5-gator.git/blob - driver/Makefile
gator-driver: Revert #error about lack of CONFIG_PERF_EVENTS
[android-sdk/arm-ds5-gator.git] / driver / Makefile
1 ifneq ($(KERNELRELEASE),)
3 # Uncomment the following line to enable kernel stack unwinding within gator, or update gator_backtrace.c
4 # EXTRA_CFLAGS +=       -DGATOR_KERNEL_STACK_UNWINDING
6 obj-m := gator.o
8 gator-y :=      gator_main.o \
9                 gator_events_irq.o \
10                 gator_events_sched.o \
11                 gator_events_net.o \
12                 gator_events_block.o \
13                 gator_events_meminfo.o \
14                 gator_events_perf_pmu.o
16 gator-y +=      gator_events_mmaped.o
18 ifneq ($(GATOR_WITH_MALI_SUPPORT),)
19 ifeq ($(GATOR_WITH_MALI_SUPPORT),MALI_T6xx)
20 gator-y +=      gator_events_mali_t6xx.o \
21                 gator_events_mali_t6xx_hw.o
22 include $(M)/mali_t6xx.mk
23 else
24 gator-y +=      gator_events_mali_400.o
25 endif
26 gator-y +=      gator_events_mali_common.o
27 EXTRA_CFLAGS += -DMALI_SUPPORT=$(GATOR_WITH_MALI_SUPPORT)
28 endif
30 # GATOR_TEST controls whether to include (=1) or exclude (=0) test code. 
31 GATOR_TEST ?= 0
32 EXTRA_CFLAGS += -DGATOR_TEST=$(GATOR_TEST)
34 gator-$(CONFIG_ARM) +=  gator_events_armv6.o \
35                         gator_events_armv7.o \
36                         gator_events_l2c-310.o \
37                         gator_events_scorpion.o
39 $(obj)/gator_main.o: gator_events.h
41 clean-files := gator_events.h
43        chk_events.h = :
44  quiet_chk_events.h = echo '  CHK     $@'
45 silent_chk_events.h = :
46 gator_events.h: FORCE
47         @$($(quiet)chk_events.h)
48         $(Q)cd $(obj) ; $(CONFIG_SHELL) $(obj)/gator_events.sh $@
50 else
52 all:
53         @echo
54         @echo "usage:"
55         @echo "      make -C <kernel_build_dir> M=\`pwd\` ARCH=arm CROSS_COMPILE=<...> modules"
56         @echo
57         $(error)
59 clean:
60         rm -f *.o .*.cmd gator_events.h modules.order Module.symvers gator.ko gator.mod.c
61         rm -rf .tmp_versions
63 endif