1 ################################################################################
5 ################################################################################
7 FLASHBENCH_VERSION
= 2e30b1968a66147412f21002ea844122a0d5e2f0
8 FLASHBENCH_SITE
= git
://git.linaro.org
/people
/arnd
/flashbench.git
9 FLASHBENCH_LICENSE
= GPLv2
10 FLASHBENCH_LICENSE_FILES
= COPYING
12 FLASHBENCH_CFLAGS
= $(TARGET_CFLAGS
)
14 ifeq ($(BR2_microblaze
)$(BR2_sh2a
),y
)
15 # microblaze and sh2a toolchains only provide LLONG_MAX when used with gnu99 dialect
16 FLASHBENCH_CFLAGS
+= -std
=gnu99
19 define FLASHBENCH_BUILD_CMDS
20 $(MAKE
) -C
$(@D
) $(TARGET_CONFIGURE_OPTS
) \
21 CFLAGS
="$(FLASHBENCH_CFLAGS)" \
22 LDFLAGS
="$(TARGET_LDFLAGS) -lrt"
25 define FLASHBENCH_INSTALL_TARGET_CMDS
26 $(INSTALL
) -m
755 -D
$(@D
)/flashbench
$(TARGET_DIR
)/usr
/bin
/flashbench
27 $(INSTALL
) -m
755 -D
$(@D
)/erase
$(TARGET_DIR
)/usr
/bin
/erase
30 $(eval
$(generic-package
))