2007-07-17 14:19:56 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# DataFlashBoot
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
DATAFLASHBOOT_VERSION:=1.05
|
|
|
|
DATAFLASHBOOT_NAME:=DataflashBoot-$(DATAFLASHBOOT_VERSION)
|
2010-03-17 08:57:54 +01:00
|
|
|
DATAFLASHBOOT_SITE:=ftp://www.at91.com/pub/buildroot/
|
2007-07-17 14:19:56 +02:00
|
|
|
DATAFLASHBOOT_SOURCE:=$(DATAFLASHBOOT_NAME).tar.bz2
|
2010-03-17 08:57:54 +01:00
|
|
|
DATAFLASHBOOT_DIR:=$(BUILD_DIR)/at91dataflashboot-$(DATAFLASHBOOT_VERSION)
|
2007-07-17 14:19:56 +02:00
|
|
|
DATAFLASHBOOT_BINARY:=$(DATAFLASHBOOT_NAME).bin
|
|
|
|
|
|
|
|
$(DL_DIR)/$(DATAFLASHBOOT_SOURCE):
|
2009-01-16 12:48:43 +01:00
|
|
|
$(call DOWNLOAD,$(DATAFLASHBOOT_SITE),$(DATAFLASHBOOT_SOURCE))
|
2007-07-17 14:19:56 +02:00
|
|
|
|
|
|
|
$(DATAFLASHBOOT_DIR)/.unpacked: $(DL_DIR)/$(DATAFLASHBOOT_SOURCE)
|
2010-03-17 08:57:54 +01:00
|
|
|
mkdir -p $(@D)
|
|
|
|
$(BZCAT) $(DL_DIR)/$(DATAFLASHBOOT_SOURCE) | tar $(TAR_STRIP_COMPONENTS)=1 -C $(@D) $(TAR_OPTIONS) -
|
2010-06-14 22:59:14 +02:00
|
|
|
touch $@
|
2007-07-17 14:19:56 +02:00
|
|
|
|
2010-03-17 09:15:26 +01:00
|
|
|
$(DATAFLASHBOOT_DIR)/.patched: $(DATAFLASHBOOT_DIR)/.unpacked
|
|
|
|
toolchain/patch-kernel.sh $(@D) boot/at91dataflashboot \
|
|
|
|
at91dataflashboot-$(DATAFLASHBOOT_VERSION)-\*.patch
|
2010-06-14 22:59:14 +02:00
|
|
|
touch $@
|
2010-03-17 09:15:26 +01:00
|
|
|
|
|
|
|
$(DATAFLASHBOOT_DIR)/$(DATAFLASHBOOT_BINARY): $(DATAFLASHBOOT_DIR)/.patched
|
2007-07-17 14:19:56 +02:00
|
|
|
ls $(DATAFLASHBOOT_DIR)/.unpacked
|
|
|
|
make -C $(DATAFLASHBOOT_DIR) CROSS_COMPILE=$(TARGET_CROSS)
|
|
|
|
|
2010-03-17 08:57:54 +01:00
|
|
|
dataflashboot-clean:
|
2007-07-17 14:19:56 +02:00
|
|
|
make -C $(DATAFLASHBOOT_DIR) clean
|
|
|
|
|
2010-03-17 08:57:54 +01:00
|
|
|
dataflashboot-dirclean:
|
2007-07-17 14:19:56 +02:00
|
|
|
rm -rf $(DATAFLASHBOOT_DIR)
|
|
|
|
|
2008-03-06 19:59:14 +01:00
|
|
|
dataflash: $(DATAFLASHBOOT_DIR)/$(DATAFLASHBOOT_BINARY)
|
2010-03-14 18:25:25 +01:00
|
|
|
cp $(DATAFLASHBOOT_DIR)/$(DATAFLASHBOOT_BINARY) $(BINARIES_DIR)
|
2007-07-17 14:19:56 +02:00
|
|
|
|
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
2008-12-08 09:15:58 +01:00
|
|
|
ifeq ($(BR2_TARGET_DATAFLASHBOOT),y)
|
2007-07-17 14:19:56 +02:00
|
|
|
TARGETS+=dataflash
|
|
|
|
endif
|