summaryrefslogtreecommitdiffstats
path: root/boot/at91dataflashboot/at91dataflashboot.mk
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2010-03-17 09:15:26 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2010-06-12 13:38:48 +0200
commit470888bede7d604c870a6d47c6f41fa53a47a5d3 (patch)
tree497b8769c72e2f62cc8fa6ea393428c86737420d /boot/at91dataflashboot/at91dataflashboot.mk
parenta4c1f0635036f3fed16c1290281bfdc6f2c9ccb8 (diff)
downloadbuildroot-novena-470888bede7d604c870a6d47c6f41fa53a47a5d3.tar.gz
buildroot-novena-470888bede7d604c870a6d47c6f41fa53a47a5d3.zip
at91dataflashboot: add a patch step
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'boot/at91dataflashboot/at91dataflashboot.mk')
-rw-r--r--boot/at91dataflashboot/at91dataflashboot.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/boot/at91dataflashboot/at91dataflashboot.mk b/boot/at91dataflashboot/at91dataflashboot.mk
index dcbe1ef03..d11f842d8 100644
--- a/boot/at91dataflashboot/at91dataflashboot.mk
+++ b/boot/at91dataflashboot/at91dataflashboot.mk
@@ -18,7 +18,11 @@ $(DATAFLASHBOOT_DIR)/.unpacked: $(DL_DIR)/$(DATAFLASHBOOT_SOURCE)
$(BZCAT) $(DL_DIR)/$(DATAFLASHBOOT_SOURCE) | tar $(TAR_STRIP_COMPONENTS)=1 -C $(@D) $(TAR_OPTIONS) -
touch $(DATAFLASHBOOT_DIR)/.unpacked
-$(DATAFLASHBOOT_DIR)/$(DATAFLASHBOOT_BINARY): $(DATAFLASHBOOT_DIR)/.unpacked
+$(DATAFLASHBOOT_DIR)/.patched: $(DATAFLASHBOOT_DIR)/.unpacked
+ toolchain/patch-kernel.sh $(@D) boot/at91dataflashboot \
+ at91dataflashboot-$(DATAFLASHBOOT_VERSION)-\*.patch
+
+$(DATAFLASHBOOT_DIR)/$(DATAFLASHBOOT_BINARY): $(DATAFLASHBOOT_DIR)/.patched
ls $(DATAFLASHBOOT_DIR)/.unpacked
make -C $(DATAFLASHBOOT_DIR) CROSS_COMPILE=$(TARGET_CROSS)