rk screen:fix Makefile,only update lcd.h when the source file is changed
authoryxj <yxj@rock-chips.com>
Sat, 29 Jun 2013 06:11:49 +0000 (14:11 +0800)
committeryxj <yxj@rock-chips.com>
Sat, 29 Jun 2013 06:11:49 +0000 (14:11 +0800)
drivers/video/rockchip/screen/Makefile

index e415adfa24f4ca6f532c643779a580e67493a6be..28cd073029211343c156536e23eba255119c2974 100644 (file)
@@ -65,7 +65,7 @@ obj-$(CONFIG_LCD_LD089WU1_MIPI)   += lcd_LD089WU1_mipi.o
 
 
 quiet_cmd_gen = GEN     $@
-      cmd_gen = cp -a $< $@
+      cmd_gen = cmp -s $< $@ || cp $< $@
 
 lcd-obj := $(filter lcd_%.o,$(obj-y))
 lcd-cfile := $(patsubst %.o,%.c,$(lcd-obj))