summaryrefslogtreecommitdiff
authorTao Zeng <tao.zeng@amlogic.com>2014-12-23 07:29:22 (GMT)
committer Sandy lUo <sandy.luo@amlogic.com>2014-12-29 02:42:53 (GMT)
commitb8c731b14a144f8b9ad715d07651de35e5a5ee61 (patch)
tree225ed61b408ee1351684ed568ce07de431741b32
parent2b6f20575dba5d260a764c72d145732b70b73b8e (diff)
downloadthermal-b8c731b14a144f8b9ad715d07651de35e5a5ee61.zip
thermal-b8c731b14a144f8b9ad715d07651de35e5a5ee61.tar.gz
thermal-b8c731b14a144f8b9ad715d07651de35e5a5ee61.tar.bz2
PD #94468: update Makefile to strip amlogic thermal from kernel source tree
Diffstat
-rwxr-xr-xMakefile22
1 files changed, 20 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index bf7d2f1..fe904ca 100755
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,29 @@
#
#Makefile for the thermal dirver
#
+#$(obj)/aml_thermal.o:
+# $(obj)/aml_thermal.o $(obj)/aml_thermal_f.o FORCE
+
+$(obj)/thermal_clean:
+ $(call cmd,clean)
+
+CONFIG_AMLOGIC_THERMAL=m
obj-$(CONFIG_AMLOGIC_THERMAL)+= aml_thermal.o
+$(obj)/amlogic_thermal.o: $(obj)/thermal_clean FORCE
+
aml_thermal-objs =
aml_thermal-objs += amlogic_thermal.o
aml_thermal-objs += amlogic_thermal_module.o
-
-
+clean:
+ @find $(srctree) \
+ -name "*.mod.*" \
+ -o -name ".*.rej" \
+ -o -name "*%" \
+ -o -name ".*.cmd" \
+ -o -name "*.bak" \
+ -o -name "Module.symvers" \
+ -o -name "modules.order" \
+ -o -name "*.o" \
+ -o -name "*.ko" | xargs rm -f