forked from prabindh/peemuperf
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (28 loc) · 812 Bytes
/
Makefile
File metadata and controls
40 lines (28 loc) · 812 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
KERNEL_SRC ?= kernel
CROSS_COMPILE ?= arm-eabi-
# Comment this out if you build your kernel in-tree
KERNEL_BUILD ?= out/KERNEL
TARGET = armperf.ko
obj-m = armperf.o
armperf-objs = armperf_entry.o v7_pmu.o
MAKE_ENV = ARCH=arm CROSS_COMPILE=$(CROSS_COMPILE)
ifneq ($(KERNEL_BUILD),)
MAKE_ENV += O=$(KERNEL_BUILD)
endif
.PHONY: release clean
default: release
release:
make -C $(KERNEL_SRC) M=`pwd` $(MAKE_ENV) modules
android_install: release
adb remount
adb shell "mkdir /system/lib/modules"
adb push $(TARGET) /system/lib/modules/
android_measure: android_install
adb push android_measure.sh /data/local/
adb shell "/data/local/android_measure.sh" | tee perf.log
clean:
rm -f Module.symvers modules.order
rm -f armperf.mod.* armperf.o
rm -f $(armperf-objs)
distclean: clean
rm -f $(TARGET)