blob: 189834c86694c02d690b9caac8ac97bb682909f2
1 | # |
2 | #Makefile for the thermal dirver |
3 | # |
4 | #$(obj)/aml_thermal.o: |
5 | # $(obj)/aml_thermal.o $(obj)/aml_thermal_f.o FORCE |
6 | |
7 | $(obj)/thermal_clean: |
8 | $(call cmd,clean) |
9 | |
10 | KBUILD_CFLAGS += -Wno-error=date-time |
11 | CONFIG_AMLOGIC_THERMAL=m |
12 | obj-$(CONFIG_AMLOGIC_THERMAL)+= aml_thermal.o |
13 | |
14 | $(obj)/amlogic_thermal.o: $(obj)/thermal_clean FORCE |
15 | |
16 | aml_thermal-objs = |
17 | aml_thermal-objs += amlogic_thermal.o |
18 | aml_thermal-objs += amlogic_thermal_module.o |
19 | |
20 | clean: |
21 | @find $(srctree) \ |
22 | -name "*.mod.*" \ |
23 | -o -name ".*.rej" \ |
24 | -o -name "*%" \ |
25 | -o -name ".*.cmd" \ |
26 | -o -name "*.bak" \ |
27 | -o -name "Module.symvers" \ |
28 | -o -name "modules.order" \ |
29 | -o -name "*.o" \ |
30 | -o -name "*.ko" | xargs rm -f |
31 |