2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-12-15 00:58:02 +01:00
|
|
|
#
|
|
|
|
# flashbench
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-12-15 00:58:02 +01:00
|
|
|
|
|
|
|
FLASHBENCH_VERSION = 2e30b1968a66147412f21002ea844122a0d5e2f0
|
|
|
|
FLASHBENCH_SITE = git://git.linaro.org/people/arnd/flashbench.git
|
|
|
|
FLASHBENCH_LICENSE = GPLv2
|
|
|
|
FLASHBENCH_LICENSE_FILES = COPYING
|
|
|
|
|
2012-12-16 00:49:44 +01:00
|
|
|
FLASHBENCH_CFLAGS = $(TARGET_CFLAGS)
|
|
|
|
|
2013-02-26 16:22:38 +01:00
|
|
|
ifeq ($(BR2_microblaze)$(BR2_sh2a),y)
|
|
|
|
# microblaze and sh2a toolchains only provide LLONG_MAX when used with gnu99 dialect
|
2012-12-16 00:49:44 +01:00
|
|
|
FLASHBENCH_CFLAGS += -std=gnu99
|
|
|
|
endif
|
|
|
|
|
2012-12-15 00:58:02 +01:00
|
|
|
define FLASHBENCH_BUILD_CMDS
|
|
|
|
$(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) \
|
2012-12-16 00:49:44 +01:00
|
|
|
CFLAGS="$(FLASHBENCH_CFLAGS)" \
|
2012-12-15 00:58:02 +01:00
|
|
|
LDFLAGS="$(TARGET_LDFLAGS) -lrt"
|
|
|
|
endef
|
|
|
|
|
|
|
|
define FLASHBENCH_INSTALL_TARGET_CMDS
|
|
|
|
$(INSTALL) -m 755 -D $(@D)/flashbench $(TARGET_DIR)/usr/bin/flashbench
|
|
|
|
$(INSTALL) -m 755 -D $(@D)/erase $(TARGET_DIR)/usr/bin/erase
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|