kumquat-buildroot/boot/at91dataflashboot/at91dataflashboot.mk

47 lines
1.5 KiB
Makefile
Raw Normal View History

2007-07-17 14:19:56 +02:00
#############################################################
#
# DataFlashBoot
#
#############################################################
DATAFLASHBOOT_VERSION:=1.05
DATAFLASHBOOT_NAME:=DataflashBoot-$(DATAFLASHBOOT_VERSION)
DATAFLASHBOOT_SITE:=ftp://www.at91.com/pub/buildroot/
2007-07-17 14:19:56 +02:00
DATAFLASHBOOT_SOURCE:=$(DATAFLASHBOOT_NAME).tar.bz2
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)
mkdir -p $(@D)
$(BZCAT) $(DL_DIR)/$(DATAFLASHBOOT_SOURCE) | tar $(TAR_STRIP_COMPONENTS)=1 -C $(@D) $(TAR_OPTIONS) -
touch $@
2007-07-17 14:19:56 +02:00
$(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
2007-07-17 14:19:56 +02:00
ls $(DATAFLASHBOOT_DIR)/.unpacked
make -C $(DATAFLASHBOOT_DIR) CROSS_COMPILE=$(TARGET_CROSS)
dataflashboot-clean:
2007-07-17 14:19:56 +02:00
make -C $(DATAFLASHBOOT_DIR) clean
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)
cp $(DATAFLASHBOOT_DIR)/$(DATAFLASHBOOT_BINARY) $(BINARIES_DIR)
2007-07-17 14:19:56 +02:00
#############################################################
#
# Toplevel Makefile options
#
#############################################################
ifeq ($(BR2_TARGET_DATAFLASHBOOT),y)
2007-07-17 14:19:56 +02:00
TARGETS+=dataflash
endif