From b8c731b14a144f8b9ad715d07651de35e5a5ee61 Mon Sep 17 00:00:00 2001 From: Tao Zeng Date: Tue, 23 Dec 2014 07:29:22 +0000 Subject: PD #94468: update Makefile to strip amlogic thermal from kernel source tree --- 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 -- cgit