2013-06-06 23:54:13 +02:00
|
|
|
################################################################################
|
2007-07-17 14:19:56 +02:00
|
|
|
#
|
2013-06-06 23:54:12 +02:00
|
|
|
# at91dataflashboot
|
2007-07-17 14:19:56 +02:00
|
|
|
#
|
2013-06-06 23:54:13 +02:00
|
|
|
################################################################################
|
2007-07-17 14:19:56 +02:00
|
|
|
|
2011-07-05 21:54:02 +02:00
|
|
|
AT91DATAFLASHBOOT_VERSION = 1.05
|
|
|
|
AT91DATAFLASHBOOT_SOURCE = DataflashBoot-$(AT91DATAFLASHBOOT_VERSION).tar.bz2
|
2014-07-31 10:46:58 +02:00
|
|
|
AT91DATAFLASHBOOT_SITE = ftp://www.at91.com/pub/buildroot
|
2007-07-17 14:19:56 +02:00
|
|
|
|
2011-07-05 21:54:02 +02:00
|
|
|
AT91DATAFLASHBOOT_INSTALL_TARGET = NO
|
|
|
|
AT91DATAFLASHBOOT_INSTALL_IMAGES = YES
|
2007-07-17 14:19:56 +02:00
|
|
|
|
2023-08-02 22:31:46 +02:00
|
|
|
AT91DATAFLASHBOOT_CFLAGS = $(TARGET_CFLAGS) -fno-stack-protector
|
|
|
|
ifeq ($(BR2_ARM_INSTRUCTIONS_THUMB),y)
|
|
|
|
AT91DATAFLASHBOOT_CFLAGS += -marm
|
|
|
|
endif
|
|
|
|
|
2011-07-05 21:54:02 +02:00
|
|
|
define AT91DATAFLASHBOOT_BUILD_CMDS
|
2023-02-22 11:32:42 +01:00
|
|
|
make -C $(@D) CROSS_COMPILE=$(TARGET_CROSS) \
|
2023-08-02 22:31:46 +02:00
|
|
|
CFLAGS="$(AT91DATAFLASHBOOT_CFLAGS)"
|
2011-07-05 21:54:02 +02:00
|
|
|
endef
|
2010-03-17 09:15:26 +01:00
|
|
|
|
2011-07-05 21:54:02 +02:00
|
|
|
define AT91DATAFLASHBOOT_INSTALL_IMAGES_CMDS
|
|
|
|
cp $(@D)/DataflashBoot-$(AT91DATAFLASHBOOT_VERSION).bin $(BINARIES_DIR)
|
|
|
|
endef
|
2007-07-17 14:19:56 +02:00
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(generic-package))
|