2007-07-17 14:19:56 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# DataFlashBoot
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
DATAFLASHBOOT_VERSION:=1.05
|
|
|
|
DATAFLASHBOOT_NAME:=DataflashBoot-$(DATAFLASHBOOT_VERSION)
|
2008-03-06 19:59:14 +01:00
|
|
|
ATMEL_MIRROR:=$(strip $(subst ",, $(BR2_ATMEL_MIRROR)))
|
|
|
|
DATAFLASHBOOT_SITE:=$(ATMEL_MIRROR)/Source
|
2007-07-17 14:19:56 +02:00
|
|
|
DATAFLASHBOOT_SOURCE:=$(DATAFLASHBOOT_NAME).tar.bz2
|
|
|
|
DATAFLASHBOOT_DIR:=$(PROJECT_BUILD_DIR)/$(DATAFLASHBOOT_NAME)
|
|
|
|
DATAFLASHBOOT_BINARY:=$(DATAFLASHBOOT_NAME).bin
|
|
|
|
|
|
|
|
$(DL_DIR)/$(DATAFLASHBOOT_SOURCE):
|
|
|
|
$(WGET) -P $(DL_DIR) $(DATAFLASHBOOT_SITE)/$(DATAFLASHBOOT_SOURCE)
|
|
|
|
|
|
|
|
$(DATAFLASHBOOT_DIR)/.unpacked: $(DL_DIR)/$(DATAFLASHBOOT_SOURCE)
|
|
|
|
mkdir -p $(PROJECT_BUILD_DIR)
|
|
|
|
ls $(DL_DIR)/$(DATAFLASHBOOT_SOURCE)
|
|
|
|
$(BZCAT) $(DL_DIR)/$(DATAFLASHBOOT_SOURCE) | tar -C $(PROJECT_BUILD_DIR) $(TAR_OPTIONS) -
|
|
|
|
touch $(DATAFLASHBOOT_DIR)/.unpacked
|
|
|
|
|
|
|
|
$(DATAFLASHBOOT_DIR)/$(DATAFLASHBOOT_BINARY): $(DATAFLASHBOOT_DIR)/.unpacked
|
|
|
|
ls $(DATAFLASHBOOT_DIR)/.unpacked
|
|
|
|
make -C $(DATAFLASHBOOT_DIR) CROSS_COMPILE=$(TARGET_CROSS)
|
|
|
|
|
|
|
|
DataflashBoot-clean:
|
|
|
|
make -C $(DATAFLASHBOOT_DIR) clean
|
|
|
|
|
|
|
|
DataflashBoot-dirclean:
|
|
|
|
rm -rf $(DATAFLASHBOOT_DIR)
|
|
|
|
|
2008-03-06 19:59:14 +01:00
|
|
|
dataflash: $(DATAFLASHBOOT_DIR)/$(DATAFLASHBOOT_BINARY)
|
2007-07-17 14:19:56 +02:00
|
|
|
mkdir -p $(BINARIES_DIR)
|
2008-03-06 19:59:14 +01:00
|
|
|
cp $(DATAFLASHBOOT_DIR)/$(DATAFLASHBOOT_BINARY) $(BINARIES_DIR)/$(BOARD_NAME)-$(DATAFLASHBOOT_BINARY)
|
|
|
|
ifneq ($(TARGET_ATMEL_COPYTO),)
|
2008-04-10 23:02:12 +02:00
|
|
|
cp $(DATAFLASHBOOT_DIR)/$(DATAFLASHBOOT_BINARY) $(TARGET_ATMEL_COPYTO)/$(BOARD_NAME)-$(DATAFLASHBOOT_BINARY)
|
2007-07-17 14:19:56 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
ifeq ($(strip $(BR2_TARGET_DATAFLASHBOOT)),y)
|
|
|
|
TARGETS+=dataflash
|
|
|
|
endif
|