at91dataflashboot: fix patch target
authorPeter Korsgaard <jacmet@sunsite.dk>
Mon, 14 Jun 2010 20:59:14 +0000 (22:59 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Mon, 14 Jun 2010 21:06:37 +0000 (23:06 +0200)
Touch destination file so the patch target isn't rerun for every
invocation.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
boot/at91dataflashboot/at91dataflashboot.mk

index d11f842d817c11dd593617e0f3e5355b2087a811..32591f79f3aff225222de2beb6083a7d19e8daf1 100644 (file)
@@ -16,11 +16,12 @@ $(DL_DIR)/$(DATAFLASHBOOT_SOURCE):
 $(DATAFLASHBOOT_DIR)/.unpacked: $(DL_DIR)/$(DATAFLASHBOOT_SOURCE)
        mkdir -p $(@D)
        $(BZCAT) $(DL_DIR)/$(DATAFLASHBOOT_SOURCE) | tar $(TAR_STRIP_COMPONENTS)=1 -C $(@D) $(TAR_OPTIONS) -
-       touch $(DATAFLASHBOOT_DIR)/.unpacked
+       touch $@
 
 $(DATAFLASHBOOT_DIR)/.patched: $(DATAFLASHBOOT_DIR)/.unpacked
        toolchain/patch-kernel.sh $(@D) boot/at91dataflashboot \
                at91dataflashboot-$(DATAFLASHBOOT_VERSION)-\*.patch
+       touch $@
 
 $(DATAFLASHBOOT_DIR)/$(DATAFLASHBOOT_BINARY): $(DATAFLASHBOOT_DIR)/.patched
        ls $(DATAFLASHBOOT_DIR)/.unpacked